davinci: dm365: disable pulldowns for all MMC/SD1 pins.
authorSekhar Nori <nsekhar@ti.com>
Wed, 14 Jul 2010 11:39:45 +0000 (17:09 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 24 Sep 2010 14:40:24 +0000 (07:40 -0700)
This patch disables internal pulldowns for all MMC/SD1
pins. Presently only MMCSD1_CMD pin's pull down is
disabled, but with this some MMC/SD cards do not get
detected on MMC/SD1 slot of the EVM.

The problem was reproducible with SanDisk 4GB SDHC card.

Reported-by: Stephane Bovagne <s-bovagne@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/devices.c

index 8b7201e4c79c6aabd616a11a696bf183357a911b..2a9a252327d8d1600368cab1f8b3cf49382f89b3 100644 (file)
@@ -213,7 +213,7 @@ void __init davinci_setup_mmc(int module, struct davinci_mmc_config *config)
                                IO_ADDRESS(DAVINCI_SYSTEM_MODULE_BASE + 0x7c);
 
                        /* Configure pull down control */
-                       __raw_writel((__raw_readl(pupdctl1) & ~0x400),
+                       __raw_writel((__raw_readl(pupdctl1) & ~0xfc0),
                                        pupdctl1);
 
                        mmcsd1_resources[0].start = DM365_MMCSD1_BASE;