diff options
Diffstat (limited to 'rbutil/mkimxboot/dualboot/dualboot.c')
-rw-r--r-- | rbutil/mkimxboot/dualboot/dualboot.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/mkimxboot/dualboot/dualboot.c b/rbutil/mkimxboot/dualboot/dualboot.c index 4aa128e15b..17d02ebe08 100644 --- a/rbutil/mkimxboot/dualboot/dualboot.c +++ b/rbutil/mkimxboot/dualboot/dualboot.c | |||
@@ -160,8 +160,10 @@ static int local_decision(void) | |||
160 | * if back is pressed, boot to OF | 160 | * if back is pressed, boot to OF |
161 | * if play is pressed, boot RB | 161 | * if play is pressed, boot RB |
162 | * otherwise power off */ | 162 | * otherwise power off */ |
163 | #ifdef SONY_NWZE360 | ||
163 | if(read_gpio(0, 9) == 0) | 164 | if(read_gpio(0, 9) == 0) |
164 | return BOOT_STOP; | 165 | return BOOT_STOP; |
166 | #endif | ||
165 | if(val >= 1050 && val < 1150) | 167 | if(val >= 1050 && val < 1150) |
166 | return BOOT_OF; | 168 | return BOOT_OF; |
167 | if(val >= 1420 && val < 1520) | 169 | if(val >= 1420 && val < 1520) |
@@ -172,7 +174,9 @@ static int local_decision(void) | |||
172 | static int boot_decision(int context) | 174 | static int boot_decision(int context) |
173 | { | 175 | { |
174 | setup_lradc(0); // setup LRADC channel 0 to read keys | 176 | setup_lradc(0); // setup LRADC channel 0 to read keys |
177 | #ifdef SONY_NWZE360 | ||
175 | HW_PINCTRL_PULLn_SET(0) = 1 << 9; // enable pullup on hold key (B0P09) | 178 | HW_PINCTRL_PULLn_SET(0) = 1 << 9; // enable pullup on hold key (B0P09) |
179 | #endif | ||
176 | /* make a decision */ | 180 | /* make a decision */ |
177 | int decision = local_decision(); | 181 | int decision = local_decision(); |
178 | /* in USB or alarm context, stick to it */ | 182 | /* in USB or alarm context, stick to it */ |