mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 03:22:48 -05:00
Add support for the sony NWZ-E360/E370 to mkimxboot
Change-Id: Ied73591326339d22b4f21d311da9e6b1b9c223ed
This commit is contained in:
parent
9392d036c4
commit
6ac481e8bc
6 changed files with 51 additions and 5 deletions
|
|
@ -119,6 +119,13 @@ static int boot_decision(int context)
|
|||
/* if volume down is hold, boot to OF */
|
||||
return !read_gpio(2, 7) ? BOOT_OF : BOOT_ROCK;
|
||||
}
|
||||
#elif defined(SONY_NWZE360) || defined(SONY_NWZE370)
|
||||
static int boot_decision(int context)
|
||||
{
|
||||
/* Power button set PSWITCH to 3, all other buttons to 1. So any
|
||||
* button press will boot OF */
|
||||
return read_pswitch() == 1 ? BOOT_OF : BOOT_ROCK;
|
||||
}
|
||||
#else
|
||||
#warning You should define a target specific boot decision function
|
||||
static int boot_decision(int context)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue