aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Uddaraju <chandanu@quicinc.com>2010-01-13 18:26:56 -0800
committerChandan Uddaraju <chandanu@quicinc.com>2010-01-13 18:26:56 -0800
commit26a5690a4eec23b1f4b141517453980fc3b5702b (patch)
tree45adfe4b65a4a60d188930c75c7cc86b66ad9e1c
parent960c43063a4579a90ecd9b9508f869b3b110c16d (diff)
downloadlk-26a5690a4eec23b1f4b141517453980fc3b5702b.tar.gz
[app/aboot]: Add additional key for fastboot mode.
This key is needed for FLUID device to boot into fastboot mode. FLUID device will not have keypad.
-rwxr-xr-xapp/aboot/aboot.c2
-rw-r--r--target/msm7630_surf/keypad.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 0060306d..3c894dcc 100755
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -389,6 +389,8 @@ void aboot_init(const struct app_descriptor *app)
boot_into_recovery = 1;
if (keys_get_state(KEY_BACK) != 0)
goto fastboot;
+ if (keys_get_state(KEY_CLEAR) != 0)
+ goto fastboot;
reboot_mode = check_reboot_mode();
if (reboot_mode == RECOVERY_MODE){
diff --git a/target/msm7630_surf/keypad.c b/target/msm7630_surf/keypad.c
index 4fa6913b..516eab6d 100644
--- a/target/msm7630_surf/keypad.c
+++ b/target/msm7630_surf/keypad.c
@@ -45,6 +45,7 @@ static unsigned char qwerty_keys_new[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0
static unsigned int qwerty_keymap[] = {
[KEYMAP_INDEX(4, 2)] = KEY_BACK, /* -L on SURF & FFA */
+ [KEYMAP_INDEX(1, 4)] = KEY_CLEAR, /* '-' of left side switch on FLUID */
};
static struct qwerty_keypad_info qwerty_keypad = {