From 4209e0a4d324a99511a85dfe1fb3107518ff02c4 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 19 Jun 2015 10:34:16 +0800 Subject: MLK-11134-2 imx: mx7d_12x12_ddr3_arm2 update spi nor code We should use board_spi_cs_gpio and remove the GPIO from CONFIG_SF_DEFAULT_CS. Signed-off-by: Peng Fan --- board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/freescale') diff --git a/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c b/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c index 3f5dcf5..91fa798 100644 --- a/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c +++ b/board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c @@ -252,6 +252,11 @@ void setup_spinor(void) ARRAY_SIZE(ecspi1_pads)); gpio_direction_output(IMX_GPIO_NR(5, 3), 0); } + +int board_spi_cs_gpio(unsigned bus, unsigned cs) +{ + return (bus == 3 && cs == 0) ? (IMX_GPIO_NR(5, 3)) : -1; +} #endif int board_early_init_f(void) -- cgit v1.1