summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Jiejing <jiejing.zhang@freescale.com>2011-12-15 18:22:21 +0800
committerZhang Jiejing <jiejing.zhang@freescale.com>2011-12-15 18:23:06 +0800
commitb2a2cd5932aa9345de9a417c6d3daf9f8df28fc4 (patch)
tree8c5ca1de1e57134f4cf3f63077f16c4d5836b518
parent42ff5e80c99678818b090671020f442b4341a4cb (diff)
downloadu-boot-imx-b2a2cd5932aa9345de9a417c6d3daf9f8df28fc4.zip
u-boot-imx-b2a2cd5932aa9345de9a417c6d3daf9f8df28fc4.tar.gz
u-boot-imx-b2a2cd5932aa9345de9a417c6d3daf9f8df28fc4.tar.bz2
ENGR00170405 Android: MX6Q_SL: Fix recovery key detection
Fix recovery key detection, the VOL_DN key is low assert. Or it will always enter recovery mode. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
-rw-r--r--board/freescale/mx6q_sabrelite/mx6q_sabrelite.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c b/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
index 5b7affa..1c9fb2d 100644
--- a/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
+++ b/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
@@ -510,7 +510,6 @@ int check_recovery_cmd_file(void)
}
printf("Checking for recovery command file...\n");
- printf("boot mode: %d\n", get_boot_device());
switch (get_boot_device()) {
case MMC_BOOT:
case SD_BOOT:
@@ -578,7 +577,7 @@ int check_recovery_cmd_file(void)
reg &= ~(1<<5);
writel(reg, GPIO4_BASE_ADDR + GPIO_GDIR);
reg = readl(GPIO4_BASE_ADDR + GPIO_PSR);
- if (reg & (1 << 5)) {
+ if (!(reg & (1 << 5))) { /* VOL_DN key is low assert */
button_pressed = 1;
printf("Recovery key pressed\n");
}