2 * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
4 * Configuration settings for the MX51-3Stack Freescale board.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 #ifndef _MXC_KEYPAD_H_
23 #define _MXC_KEYPAD_H_
38 #define KEY_SELECT 0x161
52 #define KEY_MENU 139 /* Menu (show menu) */
53 #define KEY_BACK 158 /* AC Back */
55 #if defined(CONFIG_MX51_BBG)
56 #define TEST_HOME_KEY_DEPRESS(k, e) (((k) == (KEY_F1)) && (((e) == (KDepress))))
57 #define TEST_POWER_KEY_DEPRESS(k, e) (((k) == (KEY_F3)) && (((e) == (KDepress))))
58 #elif defined(CONFIG_MX51_3DS)
59 #define TEST_HOME_KEY_DEPRESS(k, e) (((k) == (KEY_MENU)) && (((e) == (KDepress))))
60 #define TEST_POWER_KEY_DEPRESS(k, e) (((k) == (KEY_F2)) && (((e) == (KDepress))))
62 # error Undefined board type!