ARM: k2g: Enable SPI flash
authorLokesh Vutla <lokeshvutla@ti.com>
Sat, 19 Sep 2015 10:56:54 +0000 (16:26 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:22:26 +0000 (14:22 -0400)
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>
board/ti/ks2_evm/board_k2g.c

index 3e1dd4c3aa85b7be0ff75bcb255f877effef8216..cdeb056a76c4838db6717dd0f7d1f3627b673a7d 100644 (file)
@@ -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