summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorLiGang <b41990@freescale.com>2012-10-30 13:47:15 +0800
committerLiGang <b41990@freescale.com>2012-10-30 13:47:15 +0800
commit07a5dceee3891fd56d82f98d9b3547f16d36e2f6 (patch)
tree054d018b15fcad2714997cd19c2a84a915532fce /include/configs
parenta7decba6225c7691919ad5798627c970f447da14 (diff)
downloadu-boot-imx-07a5dceee3891fd56d82f98d9b3547f16d36e2f6.zip
u-boot-imx-07a5dceee3891fd56d82f98d9b3547f16d36e2f6.tar.gz
u-boot-imx-07a5dceee3891fd56d82f98d9b3547f16d36e2f6.tar.bz2
ENGR00230967 Enable recovery mode by keys when boot
1. Add matrix key support 2. Add recovery mode support by pressing power key and volume down key when boot SW10 on MX6SL-EVK board configed as volume down key. SW1 on MX6SL-EVK board configed as power key Signed-off-by: LiGang <b41990@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx6sl_evk_android.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/configs/mx6sl_evk_android.h b/include/configs/mx6sl_evk_android.h
index a7f782b..ded9345 100644
--- a/include/configs/mx6sl_evk_android.h
+++ b/include/configs/mx6sl_evk_android.h
@@ -23,6 +23,7 @@
#define MX6SL_EVK_ANDROID_H
#include <configs/mx6sl_evk.h>
+#include <asm/mxc_key_defs.h>
#define CONFIG_USB_DEVICE
#define CONFIG_IMX_UDC 1
@@ -48,6 +49,21 @@
#define CONFIG_CMD_BOOTI
#define CONFIG_ANDROID_RECOVERY
+
+#define CONFIG_VOL_DOWN_KEY KEY_4
+
+#define CONFIG_MXC_KPD
+#define CONFIG_MXC_KEYMAPPING \
+ { \
+ KEY_SELECT, KEY_BACK, KEY_1, KEY_2, \
+ KEY_3, KEY_4, KEY_5, KEY_MENU, \
+ KEY_6, KEY_7, KEY_8, KEY_9, \
+ KEY_UP, KEY_LEFT, KEY_RIGHT, KEY_DOWN, \
+ }
+#define CONFIG_MXC_KPD_COLMAX 4
+#define CONFIG_MXC_KPD_ROWMAX 4
+
+
/* which mmc bus is your main storage ? */
#define CONFIG_ANDROID_MAIN_MMC_BUS 0
#define CONFIG_ANDROID_BOOT_PARTITION_MMC 1