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>
master
Lokesh Vutla 9 years ago committed by Tom Rini
parent 3b68939fa0
commit 83b9bf11fe
  1. 6
      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

Loading…
Cancel
Save