summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mx51/keypad.h
blob: 1e67547bc18a347e7b56d00c9b9061d3297eceb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * (C) Copyright 2009-2010 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 */

#endif