diff options
author | Vikram Pandita <vikram.pandita@ti.com> | 2011-03-24 18:44:31 -0700 |
---|---|---|
committer | Vikram Pandita <vikram.pandita@ti.com> | 2011-03-24 18:53:44 -0700 |
commit | d68dae055100ed9494fe5b09ba13e81e5c759af1 (patch) | |
tree | e5969c2be0fa947dfec3d4599613e0582e13283f | |
parent | 8ad4561aeb4f6c414ea8c87d7bb5151d8166c618 (diff) | |
download | u-boot-pandroid-d68dae055100ed9494fe5b09ba13e81e5c759af1.tar.gz |
omap4: blaze: tablet: enable key detection
On Blaze Tablet:
HOME KEY == Enter Fastboot Mode
BACK KEY == Enter Recovery Mode
F1 Key == Ignore
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
-rw-r--r-- | drivers/fastboot.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/fastboot.c b/drivers/fastboot.c index 18198dcb..5eeedb2f 100644 --- a/drivers/fastboot.c +++ b/drivers/fastboot.c @@ -1200,6 +1200,18 @@ int fastboot_preboot(void) } #endif +#if defined(OMAP44XX_TABLET_CONFIG) + /* Home key == Enter Fastboot */ + if (!(__raw_readl(OMAP44XX_GPIO2_BASE + DATA_IN_OFFSET) & (1<<14))){ + printf("Tablet: HOME key pressed: entering fastboot....\n"); + return 1; + } + /* Back key == Enter Recovery */ + if (!(__raw_readl(OMAP44XX_GPIO2_BASE + DATA_IN_OFFSET) & (1<<11))){ + printf("Tablet: Back key pressed: entering recovery....\n"); + goto start_recovery; + } +#endif if (__raw_readl(PRM_RSTST) & PRM_RSTST_RESET_WARM_BIT) { printf("\n reboot command [%s]\n", PUBLIC_SAR_RAM_1_FREE); |