summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2018-09-05 04:11:08 -0500
committerTom Rini <trini@konsulko.com>2018-09-25 21:49:18 -0400
commit03190a7888493058c3a0fd6c50fd0b8dadd165ee (patch)
treeda43ec05246117a978feac86a0167ec6e8242dd0 /drivers/mmc
parent15416c86b494cd861d9f60d5a1940cfbf3bcc7f1 (diff)
downloadu-boot-03190a7888493058c3a0fd6c50fd0b8dadd165ee.tar.gz
u-boot-03190a7888493058c3a0fd6c50fd0b8dadd165ee.tar.xz
u-boot-03190a7888493058c3a0fd6c50fd0b8dadd165ee.zip
mmc: omap_hsmmc: Fix pbias for omap3_logic to enable CD pin
The MMC card detect pin is connected to gpio127 on omap3_logic. When setting up the pbias register for MMC, let's also enable gpio_127 for the card detect. As part of the package deal, gpio_126 and gpio_129 are also enabled. Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/omap_hsmmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index 4d171f457e..8ab56d247d 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -216,6 +216,10 @@ static unsigned char mmc_board_init(struct mmc *mmc)
/* for cairo board, we need to set up 1.8 Volt bias level on MMC1 */
pbias_lite &= ~PBIASLITEVMODE0;
#endif
+#ifdef CONFIG_TARGET_OMAP3_LOGIC
+ /* For Logic PD board, 1.8V bias to go enable gpio127 for mmc_cd */
+ pbias_lite &= ~PBIASLITEVMODE1;
+#endif
#ifdef CONFIG_MMC_OMAP36XX_PINS
if (get_cpu_family() == CPU_OMAP36XX) {
/* Disable extended drain IO before changing PBIAS */