summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorVaibhav Hiremath <hvaibhav@ti.com>2009-07-17 15:00:03 +0530
committerJustin Waters <justin.waters@timesys.com>2009-10-21 16:46:34 -0400
commit381c48601ce27cfd0dc1148384a2519fa04d819a (patch)
tree319d67c90412efedc9dcc5a749891c56b887c5b3 /drivers/mmc
parentf45bad3457e88728493e6cdaa68fa22405932bd5 (diff)
OMAP3517 ALPHA: Changes for MMC2 support in Kernel
Some initialization like, Pad configuration, clock settings needs to be done from U-Boot for MMC2 port to be accessed from Kernel. Please note that u-boot still only supports MMC1 Port. To enable MMC2 from U-Boot one should only change the BASE address and it should work.
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/omap3_mmc.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/mmc/omap3_mmc.c b/drivers/mmc/omap3_mmc.c
index 2d9ec5ef60..c9146e16dd 100644
--- a/drivers/mmc/omap3_mmc.c
+++ b/drivers/mmc/omap3_mmc.c
@@ -75,13 +75,19 @@ unsigned char mmc_board_init(void)
#if defined (CONFIG_OMAP3_EVM)
twl4030_mmc_config();
#endif
-
- writel(readl(&t2_base->pbias_lite) | PBIASLITEPWRDNZ1 |
- PBIASSPEEDCTRL0 | PBIASLITEPWRDNZ0,
- &t2_base->pbias_lite);
+ /*MMC1*/
+ writel(readl(&t2_base->pbias_lite) | PBIASSPEEDCTRL0
+ | PBIASLITEPWRDNZ0, &t2_base->pbias_lite);
writel(readl(&t2_base->devconf0) | MMCSDIO1ADPCLKISEL,
&t2_base->devconf0);
+ /*MMC2*/
+ writel(readl(&t2_base->pbias_lite) | PBIASSPEEDCTRL1
+ | PBIASLITEPWRDNZ1, &t2_base->pbias_lite);
+
+ writel(readl(&t2_base->devconf1) | MMCSDIO2ADPCLKISEL,
+ &t2_base->devconf1);
+
return 1;
}