提交 ba54b927 编写于 作者: E Eric Nelson 提交者: Albert ARIBAUD

mx6q: mx6qsabrelite: Provide default serial flash bus and chip-select

Signed-off-by: NEric Nelson <eric.nelson@boundarydevices.com>
Acked-by: NDirk Behme <dirk.behme@de.bosch.com>
Acked-by: NStefano Babic <sbabic@denx.de>
Acked-by: NJason Liu <jason.hui@linaro.org>
Tested-by: NJason Liu <jason.hui@linaro.org>
上级 373a1d8c
......@@ -208,7 +208,7 @@ iomux_v3_cfg_t ecspi1_pads[] = {
void setup_spi(void)
{
gpio_direction_output(GPIO_NUMBER(3, 19), 1);
gpio_direction_output(CONFIG_SF_DEFAULT_CS, 1);
imx_iomux_v3_setup_multiple_pads(ecspi1_pads,
ARRAY_SIZE(ecspi1_pads));
}
......
......@@ -49,6 +49,8 @@
#define CONFIG_SPI_FLASH
#define CONFIG_SPI_FLASH_SST
#define CONFIG_MXC_SPI
#define CONFIG_SF_DEFAULT_BUS 0
#define CONFIG_SF_DEFAULT_CS (0|(GPIO_NUMBER(3, 19)<<8))
#define CONFIG_SF_DEFAULT_SPEED 25000000
#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0)
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册