summaryrefslogtreecommitdiff
path: root/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c')
-rw-r--r--board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c b/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c
index 1db32a3..7236d57 100644
--- a/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c
+++ b/board/freescale/mx6sx_19x19_arm2/mx6sx_19x19_arm2.c
@@ -507,6 +507,11 @@ void setup_spinor(void)
ARRAY_SIZE(ecspi4_pads));
gpio_direction_output(IMX_GPIO_NR(6, 10), 0);
}
+
+int board_spi_cs_gpio(unsigned bus, unsigned cs)
+{
+ return (bus == 0 && cs == 0) ? (IMX_GPIO_NR(6, 10)) : -1;
+}
#endif
#ifdef CONFIG_SYS_USE_EIMNOR