aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@stericsson.com>2011-05-11 15:40:30 +0200
committerSebastian RASMUSSEN <sebastian.rasmussen@stericsson.com>2011-05-11 16:12:27 +0200
commitbc9540c9e88d4048214dcdf2f66f9fd5c6710a77 (patch)
treef2530d4d1e74e32305fbe97534acfa426f56e14e
parentc936397fe5f463e12ba25a9f9cc03ab7f6ab7f9d (diff)
mach-ux500: Add delay when enable SD levelshifter
The SD-card levelshifter (ST6G3244ME) has an enabling-time to drive the voltage to aquired level. The maximum time it needs according to the spec is 100us. Thus we need to add this delay to be safe. Change-Id: Ie48ecb3143c9ddd202c48f53e7c9cb47e15c7431 Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22895 Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com>
-rw-r--r--arch/arm/mach-ux500/board-mop500-sdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index eec3cbd58e8..59870386b9f 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -97,6 +97,7 @@ static void sdi0_vdd_handler(struct device *dev, unsigned int vdd,
gpio_direction_output(gpio[1], 0);
/* Enable level shifter */
gpio_direction_output(gpio[0], 1);
+ udelay(100);
break;
case MMC_POWER_OFF:
gpio_direction_output(gpio[1], 0);