omap: rx51: Set regulator V28 always on
authorJarkko Nikula <jhnikula@gmail.com>
Tue, 6 Jul 2010 14:05:32 +0000 (17:05 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 7 Jul 2010 09:37:28 +0000 (12:37 +0300)
commitaa0441fe5a19709f60c917eab0f6e716ac159ff1
treed65c7f64a33180fedaa2a4dbfcaf494fc70c641c
parent7c5b579749feb63089c98e0dbb3b74af31946e27
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>
arch/arm/mach-omap2/board-rx51-peripherals.c