From 5d92f256f768c38ea345bcbd8434944d8d03a734 Mon Sep 17 00:00:00 2001 From: Ulf Hansson Date: Fri, 4 Nov 2011 15:13:19 +0100 Subject: ARM: ux500: Enable levelshifter at MMC_POWER_ON only There is no need to enable the levelshifter in the MMC_POWER_UP state. Moreover we are not in a stable state for starting to communicate with the SD-card. Thus we shall not enable the levelshifter in this state. Change-Id: I6fbcb5643513ebf658a2eb198d4a6ac24fbac872 Signed-off-by: Ulf Hansson Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36502 Reviewed-by: P.Hanumath PRASAD Tested-by: P.Hanumath PRASAD Reviewed-by: Stefan NILSSON9 Reviewed-by: Srinidhi KASAGAR --- arch/arm/mach-ux500/board-mop500-sdi.c | 1 + arch/arm/mach-ux500/board-u5500-sdi.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c index d6a42ddd68a..334a41a50ce 100644 --- a/arch/arm/mach-ux500/board-mop500-sdi.c +++ b/arch/arm/mach-ux500/board-mop500-sdi.c @@ -45,6 +45,7 @@ static int mop500_sdi0_ios_handler(struct device *dev, struct mmc_ios *ios) switch (ios->power_mode) { case MMC_POWER_UP: + break; case MMC_POWER_ON: /* * Level shifter voltage should depend on vdd to when deciding diff --git a/arch/arm/mach-ux500/board-u5500-sdi.c b/arch/arm/mach-ux500/board-u5500-sdi.c index c7b828942e7..31a8c8ecdc9 100644 --- a/arch/arm/mach-ux500/board-u5500-sdi.c +++ b/arch/arm/mach-ux500/board-u5500-sdi.c @@ -73,6 +73,7 @@ static int u5500_sdi1_ios_handler(struct device *dev, struct mmc_ios *ios) switch (ios->power_mode) { case MMC_POWER_UP: + break; case MMC_POWER_ON: /* * Level shifter voltage should depend on vdd to when deciding -- cgit v1.2.3