summaryrefslogtreecommitdiff
path: root/board/ti/ks2_evm
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2015-09-19 16:26:54 +0530
committerTom Rini <trini@konsulko.com>2015-10-22 14:22:26 -0400
commit83b9bf11feb1a88588eaf7f89c763bc59a7010d1 (patch)
tree3df877bcc4f455409cd5dc615c6ee571788531d9 /board/ti/ks2_evm
parent3b68939fa0b4191028e4cc5817b59219fd4baecd (diff)
downloadu-boot-imx-83b9bf11feb1a88588eaf7f89c763bc59a7010d1.zip
u-boot-imx-83b9bf11feb1a88588eaf7f89c763bc59a7010d1.tar.gz
u-boot-imx-83b9bf11feb1a88588eaf7f89c763bc59a7010d1.tar.bz2
ARM: k2g: Enable SPI flash
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@ti.com>
Diffstat (limited to 'board/ti/ks2_evm')
-rw-r--r--board/ti/ks2_evm/board_k2g.c6
1 files changed, 6 insertions, 0 deletions
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