public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [09/17 PATCH] MMC: OMAP: Using correct MMC_VDD flags of low-voltage cards.
@ 2007-08-17 19:02 Carlos Aguiar
  0 siblings, 0 replies; only message in thread
From: Carlos Aguiar @ 2007-08-17 19:02 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: omap-linux

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

From: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>

Using correct MMC_VDD flags of low-voltage cards, according with commit
55556da01284af8c2174b786b3eca8e11301b656.

Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: Philip Langdale <philipl@overt.org>

[-- Attachment #2: 0009-MMC-OMAP-Using-correct-voltage-definitions.diff --]
[-- Type: text/plain, Size: 2198 bytes --]

Using correct MMC_VDD flags of low-voltage cards, according with commit
55556da01284af8c2174b786b3eca8e11301b656.

Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: Philip Langdale <philipl@overt.org>

Index: linux-omap/arch/arm/mach-omap2/board-n800-mmc.c
===================================================================
--- linux-omap.orig/arch/arm/mach-omap2/board-n800-mmc.c	2007-08-13 13:05:04.000000000 -0400
+++ linux-omap/arch/arm/mach-omap2/board-n800-mmc.c	2007-08-14 12:09:48.000000000 -0400
@@ -64,7 +64,7 @@ static int n800_mmc_set_power(struct dev
 		case MMC_VDD_28_29:
 			mV = 2800;
 			break;
-		case MMC_VDD_18_19:
+		case MMC_VDD_165_195:
 			mV = 1850;
 			break;
 		default:
@@ -96,17 +96,11 @@ static int n800_mmc_set_power(struct dev
 			mV = 2200;
 			break;
 		case MMC_VDD_20_21:
-		case MMC_VDD_19_20:
 			mV = 2000;
 			break;
-		case MMC_VDD_18_19:
-		case MMC_VDD_17_18:
+		case MMC_VDD_165_195:
 			mV = 1800;
 			break;
-		case MMC_VDD_150_155:
-		case MMC_VDD_145_150:
-			mV = 1500;
-			break;
 		default:
 			BUG();
 		}
@@ -235,7 +229,7 @@ static struct omap_mmc_platform_data n80
 		.set_bus_mode	= n800_mmc_set_bus_mode,
 		.get_ro		= NULL,
 		.get_cover_state= n800_mmc_get_cover_state,
-		.ocr_mask	= MMC_VDD_18_19 | MMC_VDD_28_29 | MMC_VDD_30_31 |
+		.ocr_mask	= MMC_VDD_165_195 | MMC_VDD_28_29 | MMC_VDD_30_31 |
 				  MMC_VDD_32_33 | MMC_VDD_33_34,
 		.name		= "internal",
 	},
@@ -244,12 +238,10 @@ static struct omap_mmc_platform_data n80
 		.set_bus_mode	= n800_mmc_set_bus_mode,
 		.get_ro		= NULL,
 		.get_cover_state= n800_mmc_get_cover_state,
-		.ocr_mask	= MMC_VDD_150_155 | MMC_VDD_145_150 | MMC_VDD_17_18 |
-				  MMC_VDD_18_19 | MMC_VDD_19_20 | MMC_VDD_20_21 |
-				  MMC_VDD_21_22 | MMC_VDD_22_23 | MMC_VDD_23_24 |
-				  MMC_VDD_24_25 | MMC_VDD_27_28 | MMC_VDD_28_29 |
-				  MMC_VDD_29_30 | MMC_VDD_30_31 | MMC_VDD_32_33 |
-				  MMC_VDD_33_34,
+		.ocr_mask	= MMC_VDD_165_195 | MMC_VDD_20_21 | MMC_VDD_21_22 |
+				  MMC_VDD_22_23 | MMC_VDD_23_24 | MMC_VDD_24_25 |
+				  MMC_VDD_27_28 | MMC_VDD_28_29 | MMC_VDD_29_30 |
+				  MMC_VDD_30_31 | MMC_VDD_32_33 | MMC_VDD_33_34,
 		.name		= "external",
 	},
 };

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-17 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-17 19:02 [09/17 PATCH] MMC: OMAP: Using correct MMC_VDD flags of low-voltage cards Carlos Aguiar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox