diff mbox

Patch: Fix N770 MMC support

Message ID 20090523174939.45129s043kunkc2o@lidskialf.net (mailing list archive)
State Accepted
Commit ed7f50cfdf4f40f6f153ea0623c86bb2fa6cb7ad
Headers show

Commit Message

Andrew de Quincey May 23, 2009, 4:49 p.m. UTC
Some of the N770's MMC configuration options seem to have been  
dropped. This patch adds them back in again.

Note that only the .ocr_mask change was /critical/, but I've added the  
.max_freq setting back as well, as the original sources had it. Can  
anyone confirm if this is unnecessary?

Secondly, there is support in the original code for a 4wire/higher  
speed mode. As I don't have the requisite N770 hardware (I think it  
was a rev2 N770?) to test this, I can't really add it back.

Comments

Tony Lindgren June 1, 2009, 11:09 p.m. UTC | #1
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Initial commit ID (Likely to change): ed7f50cfdf4f40f6f153ea0623c86bb2fa6cb7ad

PatchWorks
http://patchwork.kernel.org/patch/25537/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=ed7f50cfdf4f40f6f153ea0623c86bb2fa6cb7ad


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

commit b67345993d494a1dd5021e29de9611af80cbf1cd
Author: Andrew de Quincey <adq@lidskialf.net>
Date:   Sat May 23 17:43:19 2009 +0100

    Fix n770 MMC support
    
    Some of the necessary configuration settings for the N770's MMC support had been
    dropped. Add them back in again.
    
    Signed-off-by: Andrew de Quincey <adq@lidskialf.net>

diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c
index 2c4785e..bfed959 100644
--- a/arch/arm/mach-omap1/board-nokia770.c
+++ b/arch/arm/mach-omap1/board-nokia770.c
@@ -209,9 +209,11 @@  static int nokia770_mmc_get_cover_state(struct device *dev, int slot)
 static struct omap_mmc_platform_data nokia770_mmc2_data = {
 	.nr_slots                       = 1,
 	.dma_mask			= 0xffffffff,
+	.max_freq                       = 12000000,
 	.slots[0]       = {
 		.set_power		= nokia770_mmc_set_power,
 		.get_cover_state	= nokia770_mmc_get_cover_state,
+		.ocr_mask               = MMC_VDD_32_33|MMC_VDD_33_34,
 		.name                   = "mmcblk",
 	},
 };