Skip to content
Snippets Groups Projects
Commit 4f490402 authored by Cooper Jr., Franklin's avatar Cooper Jr., Franklin Committed by Tom Rini
Browse files

ARM: k2g: Use board detection to wrap K2G GP specific calls


Certain peripherals used by K2G GP aren't used on K2G ICE evm. Or
configuration is slightly different. Therefore, use board detection to
deal with these variations.

Signed-off-by: default avatarFranklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent e66a5da3
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,9 @@ int board_mmc_init(bd_t *bis) ...@@ -208,7 +208,9 @@ int board_mmc_init(bd_t *bis)
return -1; return -1;
} }
omap_mmc_init(0, 0, 0, -1, -1); if (board_is_k2g_gp())
omap_mmc_init(0, 0, 0, -1, -1);
omap_mmc_init(1, 0, 0, -1, -1); omap_mmc_init(1, 0, 0, -1, -1);
return 0; return 0;
} }
...@@ -278,11 +280,13 @@ int embedded_dtb_select(void) ...@@ -278,11 +280,13 @@ int embedded_dtb_select(void)
k2g_reset_mux_config(); k2g_reset_mux_config();
/* deassert FLASH_HOLD */ if (board_is_k2g_gp()) {
clrbits_le32(K2G_GPIO1_BANK2_BASE + K2G_GPIO_DIR_OFFSET, /* deassert FLASH_HOLD */
BIT(9)); clrbits_le32(K2G_GPIO1_BANK2_BASE + K2G_GPIO_DIR_OFFSET,
setbits_le32(K2G_GPIO1_BANK2_BASE + K2G_GPIO_SETDATA_OFFSET, BIT(9));
BIT(9)); setbits_le32(K2G_GPIO1_BANK2_BASE + K2G_GPIO_SETDATA_OFFSET,
BIT(9));
}
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment