From dc9d92ec7953673c375e5fd165999375e22142dd Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 29 Jun 2012 08:33:11 +0200 Subject: [PATCH] --- yaml --- r: 319313 b: refs/heads/master c: f65ad7e36cbae24f05ea2314ad63e9dd23294c60 h: refs/heads/master i: 319311: 6f778acc2a3d90f3b7d9a058f2902f4c02d70001 v: v3 --- [refs] | 2 +- .../arm/mach-shmobile/board-armadillo800eva.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index fc58182dba7a..ff48040628a6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8c8fb1361af8e2fce94edf2a49f97a4469ae1aeb +refs/heads/master: f65ad7e36cbae24f05ea2314ad63e9dd23294c60 diff --git a/trunk/arch/arm/mach-shmobile/board-armadillo800eva.c b/trunk/arch/arm/mach-shmobile/board-armadillo800eva.c index 5f8f571665a0..12f9666302fc 100644 --- a/trunk/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/trunk/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -28,6 +28,8 @@ #include #include #include +#include +#include #include #include #include @@ -520,6 +522,17 @@ static struct platform_device gpio_keys_device = { }, }; +/* Fixed 3.3V regulator to be used by SDHI0, SDHI1, MMCIF */ +static struct regulator_consumer_supply fixed3v3_power_consumers[] = +{ + REGULATOR_SUPPLY("vmmc", "sh_mobile_sdhi.0"), + REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.0"), + REGULATOR_SUPPLY("vmmc", "sh_mobile_sdhi.1"), + REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.1"), + REGULATOR_SUPPLY("vmmc", "sh_mmcif"), + REGULATOR_SUPPLY("vqmmc", "sh_mmcif"), +}; + /* SDHI0 */ /* * FIXME @@ -920,6 +933,9 @@ static void __init eva_clock_init(void) #define GPIO_PORT8CR 0xe6050008 static void __init eva_init(void) { + regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers, + ARRAY_SIZE(fixed3v3_power_consumers), 3300000); + r8a7740_pinmux_init(); r8a7740_meram_workaround();