summaryrefslogtreecommitdiff
path: root/board/bachmann/ot1200
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2014-10-22 11:29:51 +0200
committerStefano Babic <sbabic@denx.de>2014-10-23 10:02:16 +0200
commit2e3a1f4d1d38eeb641b7f2e40b234372c45a44b5 (patch)
tree6675575e5f08aa39e9d638cf636f6762274e2650 /board/bachmann/ot1200
parent04451ba347385ee598e485c3406712819a847459 (diff)
downloadu-boot-imx-2e3a1f4d1d38eeb641b7f2e40b234372c45a44b5.zip
u-boot-imx-2e3a1f4d1d38eeb641b7f2e40b234372c45a44b5.tar.gz
u-boot-imx-2e3a1f4d1d38eeb641b7f2e40b234372c45a44b5.tar.bz2
ot1200: fix sf detection
Commit 155fa9af95ac5be857a7327e7a968a296e60d4c8 changed the way to define a GPIO line, which can be used to force CS high across multiple transactions. In order to fix sf detection change board code to make use of board_spi_cs_gpio(..). Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Acked-by: Stefano Babic <sbabic@denx.de> Acked-by: Nikita Kiryanov <nikita@compulab.co.il>
Diffstat (limited to 'board/bachmann/ot1200')
-rw-r--r--board/bachmann/ot1200/ot1200.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c
index 0d5ede5..2962e0c 100644
--- a/board/bachmann/ot1200/ot1200.c
+++ b/board/bachmann/ot1200/ot1200.c
@@ -98,6 +98,11 @@ static void setup_iomux_spi(void)
imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads));
}
+int board_spi_cs_gpio(unsigned bus, unsigned cs)
+{
+ return (bus == 2 && cs == 0) ? (IMX_GPIO_NR(1, 3)) : -1;
+}
+
int board_early_init_f(void)
{
setup_iomux_uart();