mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Cc: Adrian Hunter <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
This commit is contained in:
parent
79ccf549b3
commit
000d534ed7
1 changed files with 1 additions and 0 deletions
|
|
@ -361,6 +361,7 @@ static struct regulator_init_data rx51_vaux1 = {
|
|||
.name = "V28",
|
||||
.min_uV = 2800000,
|
||||
.max_uV = 2800000,
|
||||
.always_on = true, /* due battery cover sensor */
|
||||
.valid_modes_mask = REGULATOR_MODE_NORMAL
|
||||
| REGULATOR_MODE_STANDBY,
|
||||
.valid_ops_mask = REGULATOR_CHANGE_MODE
|
||||
|
|
|
|||
Loading…
Reference in a new issue