mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
nano2g: fix dangerous mutex in hold switch
This is a quick patch to solve FS#13104, we can not disable the clickwheel LDO from within interrupt code, so for the moment we leave it enabled all the time, it is unknown how power comsumption is affected when the hold switch is locked. Change-Id: I8f675702e2b5becbcd9197c8b044e6b8daeea79f
This commit is contained in:
parent
248bff5eb8
commit
96a7603bf9
1 changed files with 2 additions and 2 deletions
|
|
@ -435,7 +435,7 @@ int button_read_device(void)
|
|||
/* lock -> disable wheel sensor */
|
||||
DEV_EN &= ~DEV_OPTO;
|
||||
#elif CONFIG_CPU==S5L8701
|
||||
pmu_ldo_power_off(1); /* disable clickwheel power supply */
|
||||
/*pmu_ldo_power_off(1);*/ /* disable clickwheel power supply */
|
||||
WHEEL00 = 0;
|
||||
WHEEL10 = 0;
|
||||
PWRCONEXT |= 1;
|
||||
|
|
@ -452,7 +452,7 @@ int button_read_device(void)
|
|||
DEV_EN |= DEV_OPTO;
|
||||
opto_i2c_init();
|
||||
#elif CONFIG_CPU==S5L8701
|
||||
pmu_ldo_power_on(1); /* enable clickwheel power supply */
|
||||
/*pmu_ldo_power_on(1);*/ /* enable clickwheel power supply */
|
||||
s5l_clickwheel_init();
|
||||
#elif CONFIG_CPU==S5L8702
|
||||
s5l_clickwheel_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue