diff options
author | Terry Lv <r65388@freescale.com> | 2009-08-30 22:04:05 +0800 |
---|---|---|
committer | Fred Fan <r01011@freescale.com> | 2009-09-10 17:08:11 +0800 |
commit | c1383a7a5b47035bf08809bf973536af16047640 (patch) | |
tree | 50ccb785909a1d7684b750e5144afd9abb8346b3 /include/asm-arm/arch-mx51 | |
parent | e721efc160482e2086a081de19a6968d81d8cc72 (diff) | |
download | u-boot-imx-c1383a7a5b47035bf08809bf973536af16047640.zip u-boot-imx-c1383a7a5b47035bf08809bf973536af16047640.tar.gz u-boot-imx-c1383a7a5b47035bf08809bf973536af16047640.tar.bz2 |
ENGR00116083: Recovery mode support for Android on mx51.
Recovery mode support for Android on mx51.
Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx51')
-rw-r--r-- | include/asm-arm/arch-mx51/keypad.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx51/keypad.h b/include/asm-arm/arch-mx51/keypad.h new file mode 100644 index 0000000..23ae4fe --- /dev/null +++ b/include/asm-arm/arch-mx51/keypad.h @@ -0,0 +1,65 @@ +/* + * (C) Copyright 2009 Freescale Semiconductor, Inc. + * + * Configuration settings for the MX51-3Stack Freescale board. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#ifndef _MXC_KEYPAD_H_ +#define _MXC_KEYPAD_H_ + +#include <config.h> + +#define KEY_1 2 +#define KEY_2 3 +#define KEY_3 4 +#define KEY_F1 59 +#define KEY_UP 103 +#define KEY_F2 60 + +#define KEY_4 5 +#define KEY_5 6 +#define KEY_6 7 +#define KEY_LEFT 105 +#define KEY_SELECT 0x161 +#define KEY_RIGHT 106 + +#define KEY_7 8 +#define KEY_8 9 +#define KEY_9 10 +#define KEY_F3 61 +#define KEY_DOWN 108 +#define KEY_F4 62 + +#define KEY_0 11 +#define KEY_OK 0x160 +#define KEY_ESC 1 +#define KEY_ENTER 28 +#define KEY_MENU 139 /* Menu (show menu) */ +#define KEY_BACK 158 /* AC Back */ + +#if defined(CONFIG_MX51_BBG) +#define TEST_HOME_KEY_DEPRESS(k, e) (((k) == (KEY_F1)) && (((e) == (KDepress)))) +#define TEST_POWER_KEY_DEPRESS(k, e) (((k) == (KEY_RIGHT)) && (((e) == (KDepress)))) +#elif defined(CONFIG_MX51_3DS) +#define TEST_HOME_KEY_DEPRESS(k, e) (((k) == (KEY_MENU)) && (((e) == (KDepress)))) +#define TEST_POWER_KEY_DEPRESS(k, e) (((k) == (KEY_F2)) && (((e) == (KDepress)))) +#else +# error Undefined board type! +#endif + +#endif |