summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2015-09-19 16:26:53 +0530
committerTom Rini <trini@konsulko.com>2015-10-22 14:22:25 -0400
commit3b68939fa0b4191028e4cc5817b59219fd4baecd (patch)
tree6c46606c0e116aceeed5728fa919a7020f5fbe4e /board/ti
parent91266ccbb2aaef87f6ff10292470abd65fa9c3ad (diff)
ARM: k2g: add SD card and eMMC support
Add MMC support for k2g Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Tested-by: Mugunthan V N <mugunthanvnm@ti.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/ks2_evm/board_k2g.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
index b2bc7934d5b..3e1dd4c3aa8 100644
--- a/board/ti/ks2_evm/board_k2g.c
+++ b/board/ti/ks2_evm/board_k2g.c
@@ -9,6 +9,8 @@
#include <common.h>
#include <asm/arch/clock.h>
#include <asm/ti-common/keystone_net.h>
+#include <asm/arch/psc_defs.h>
+#include <asm/arch/mmc_host_def.h>
#include "mux-k2g.h"
#define SYS_CLK 24000000
@@ -58,6 +60,20 @@ s16 divn_val[16] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
};
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_GENERIC_MMC)
+int board_mmc_init(bd_t *bis)
+{
+ if (psc_enable_module(KS2_LPSC_MMC)) {
+ printf("%s module enabled failed\n", __func__);
+ return -1;
+ }
+
+ omap_mmc_init(0, 0, 0, -1, -1);
+ omap_mmc_init(1, 0, 0, -1, -1);
+ return 0;
+}
+#endif
+
#ifdef CONFIG_BOARD_EARLY_INIT_F
int board_early_init_f(void)
{