aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-rx51-peripherals.c
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2010-08-02 06:18:02 -0400
committerTony Lindgren <tony@atomide.com>2010-08-02 06:18:02 -0400
commit000d534ed7adf976652921f0bdd1dae14484bce8 (patch)
treebe91c78b6a8943f46f602b83744d6b94ee8c635c /arch/arm/mach-omap2/board-rx51-peripherals.c
parent79ccf549b33c613b57eebcb03f8b24644c545a88 (diff)
omap: rx51: Set regulator V28 always on
It seems that the battery cover sensor in Nokia N900 is powered from the V28 domain. Now if this regulator is disabled it causes that the gpio 160 reads only zero which effectively causes uSD removal detection. Currently the bootloader enabled V28 is kept on but this may change in the future according to comment in drivers/regulator/core.c: regulator_has_full_constraints. Also if there are any consumers on the V28 domain doing regulator_enable regulator_disable cycle the V28 will be disabled after that. Prepare for these by defining the V28 as always_on regulator. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Cc: Adrian Hunter <adrian.hunter@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r--arch/arm/mach-omap2/board-rx51-peripherals.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index 5ddf15664ff1..3d95534215d0 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -361,6 +361,7 @@ static struct regulator_init_data rx51_vaux1 = {
361 .name = "V28", 361 .name = "V28",
362 .min_uV = 2800000, 362 .min_uV = 2800000,
363 .max_uV = 2800000, 363 .max_uV = 2800000,
364 .always_on = true, /* due battery cover sensor */
364 .valid_modes_mask = REGULATOR_MODE_NORMAL 365 .valid_modes_mask = REGULATOR_MODE_NORMAL
365 | REGULATOR_MODE_STANDBY, 366 | REGULATOR_MODE_STANDBY,
366 .valid_ops_mask = REGULATOR_CHANGE_MODE 367 .valid_ops_mask = REGULATOR_CHANGE_MODE