aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram Pandita <vikram.pandita@ti.com>2011-03-24 18:44:31 -0700
committerVikram Pandita <vikram.pandita@ti.com>2011-03-24 18:53:44 -0700
commitd68dae055100ed9494fe5b09ba13e81e5c759af1 (patch)
treee5969c2be0fa947dfec3d4599613e0582e13283f
parent8ad4561aeb4f6c414ea8c87d7bb5151d8166c618 (diff)
downloadu-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.c12
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);