mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
3b68939fa0
commit
83b9bf11fe
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue