From: Lokesh Vutla Date: Sat, 19 Sep 2015 10:56:54 +0000 (+0530) Subject: ARM: k2g: Enable SPI flash X-Git-Tag: v2016.01-rc1~249 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=83b9bf11feb1a88588eaf7f89c763bc59a7010d1;p=oweals%2Fu-boot.git 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 --- diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c index 3e1dd4c3aa..cdeb056a76 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