Add support for the sony NWZ-E360/E370 to mkimxboot

Change-Id: Ied73591326339d22b4f21d311da9e6b1b9c223ed
This commit is contained in:
Amaury Pouly 2013-09-25 14:30:35 +02:00
parent 9392d036c4
commit 6ac481e8bc
6 changed files with 51 additions and 5 deletions

View file

@ -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)