[U-Boot] [PATCH 17/19] ARM: k2g: Enable SPI flash
Lokesh Vutla
lokeshvutla at ti.com
Sat Sep 19 12:56:54 CEST 2015
GPIO1_9 controls SPI flash on k2g evm.
So make GPIO1_9 as output pin, inorder to use SPI.
Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
---
board/ti/ks2_evm/board_k2g.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
index 3e1dd4c..cdeb056 100644
--- a/board/ti/ks2_evm/board_k2g.c
+++ b/board/ti/ks2_evm/board_k2g.c
@@ -81,6 +81,12 @@ int board_early_init_f(void)
k2g_mux_config();
+ /* deassert FLASH_HOLD */
+ clrbits_le32(K2G_GPIO1_BANK2_BASE + K2G_GPIO_DIR_OFFSET,
+ BIT(9));
+ setbits_le32(K2G_GPIO1_BANK2_BASE + K2G_GPIO_SETDATA_OFFSET,
+ BIT(9));
+
return 0;
}
#endif
--
2.1.4
More information about the U-Boot
mailing list