summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-06-19 10:34:16 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-09 14:42:40 +0100
commit7873892b3c51da35b6f5bcb4c89a92d42fdff880 (patch)
tree73885051e9028e45b167b5e9fe54ba7f9b3be9b8 /board
parent84fb7e1fbe09c823447367188a7bb0a35538dc6f (diff)
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 <Peng.Fan@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mx7d_12x12_ddr3_arm2/mx7d_12x12_ddr3_arm2.c5
1 files changed, 5 insertions, 0 deletions
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 3f5dcf5f3d..91fa798b7f 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)