mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 01:22:38 -05:00
mkimxboot: remove code for NWZ-370/380
Since the stub code is shared with NWZ-360, it enables the pullup for the hold button, but the NWZ-370/380 doesn't have a hold button so don't compile this code in, it could potentially have unexpected effets or increase consumption Change-Id: I28c8aa40fc7f9373593ff105fb6df557a6f57ccd
This commit is contained in:
parent
b40ad7d269
commit
a6b4bf3a33
3 changed files with 42 additions and 41 deletions
|
|
@ -160,8 +160,10 @@ static int local_decision(void)
|
|||
* if back is pressed, boot to OF
|
||||
* if play is pressed, boot RB
|
||||
* otherwise power off */
|
||||
#ifdef SONY_NWZE360
|
||||
if(read_gpio(0, 9) == 0)
|
||||
return BOOT_STOP;
|
||||
#endif
|
||||
if(val >= 1050 && val < 1150)
|
||||
return BOOT_OF;
|
||||
if(val >= 1420 && val < 1520)
|
||||
|
|
@ -172,7 +174,9 @@ static int local_decision(void)
|
|||
static int boot_decision(int context)
|
||||
{
|
||||
setup_lradc(0); // setup LRADC channel 0 to read keys
|
||||
#ifdef SONY_NWZE360
|
||||
HW_PINCTRL_PULLn_SET(0) = 1 << 9; // enable pullup on hold key (B0P09)
|
||||
#endif
|
||||
/* make a decision */
|
||||
int decision = local_decision();
|
||||
/* in USB or alarm context, stick to it */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue