diff options
author | Mark F. Brown <mark.brown314@gmail.com> | 2010-09-03 18:28:07 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-10-09 05:07:17 -0400 |
commit | 6d109465fb751fe4376c080e5fb10838d3414c28 (patch) | |
tree | 95149a8ec520557ec3f8c919c6a9030f7450f9f3 /arch/arm/mach-mmp/include/mach | |
parent | 4a2490eac897e3648c4800b1068b56b7e1ad91b3 (diff) |
ARM: pxa168: added keypad support
Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/include/mach')
-rw-r--r-- | arch/arm/mach-mmp/include/mach/mfp-pxa168.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-mmp/include/mach/pxa168.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h index ded43c455ec3..4621067c7720 100644 --- a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h +++ b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h | |||
@@ -289,4 +289,11 @@ | |||
289 | #define GPIO86_PWM1_OUT MFP_CFG(GPIO86, AF2) | 289 | #define GPIO86_PWM1_OUT MFP_CFG(GPIO86, AF2) |
290 | #define GPIO86_PWM2_OUT MFP_CFG(GPIO86, AF3) | 290 | #define GPIO86_PWM2_OUT MFP_CFG(GPIO86, AF3) |
291 | 291 | ||
292 | /* Keypad */ | ||
293 | #define GPIO109_KP_MKIN1 MFP_CFG(GPIO109, AF7) | ||
294 | #define GPIO110_KP_MKIN0 MFP_CFG(GPIO110, AF7) | ||
295 | #define GPIO111_KP_MKOUT7 MFP_CFG(GPIO111, AF7) | ||
296 | #define GPIO112_KP_MKOUT6 MFP_CFG(GPIO112, AF7) | ||
297 | #define GPIO121_KP_MKIN4 MFP_CFG(GPIO121, AF7) | ||
298 | |||
292 | #endif /* __ASM_MACH_MFP_PXA168_H */ | 299 | #endif /* __ASM_MACH_MFP_PXA168_H */ |
diff --git a/arch/arm/mach-mmp/include/mach/pxa168.h b/arch/arm/mach-mmp/include/mach/pxa168.h index 220738f9c5e0..f34e6638fc6c 100644 --- a/arch/arm/mach-mmp/include/mach/pxa168.h +++ b/arch/arm/mach-mmp/include/mach/pxa168.h | |||
@@ -11,6 +11,7 @@ extern void __init pxa168_init_irq(void); | |||
11 | #include <plat/i2c.h> | 11 | #include <plat/i2c.h> |
12 | #include <plat/pxa3xx_nand.h> | 12 | #include <plat/pxa3xx_nand.h> |
13 | #include <video/pxa168fb.h> | 13 | #include <video/pxa168fb.h> |
14 | #include <plat/pxa27x_keypad.h> | ||
14 | 15 | ||
15 | extern struct pxa_device_desc pxa168_device_uart1; | 16 | extern struct pxa_device_desc pxa168_device_uart1; |
16 | extern struct pxa_device_desc pxa168_device_uart2; | 17 | extern struct pxa_device_desc pxa168_device_uart2; |
@@ -27,6 +28,7 @@ extern struct pxa_device_desc pxa168_device_ssp4; | |||
27 | extern struct pxa_device_desc pxa168_device_ssp5; | 28 | extern struct pxa_device_desc pxa168_device_ssp5; |
28 | extern struct pxa_device_desc pxa168_device_nand; | 29 | extern struct pxa_device_desc pxa168_device_nand; |
29 | extern struct pxa_device_desc pxa168_device_fb; | 30 | extern struct pxa_device_desc pxa168_device_fb; |
31 | extern struct pxa_device_desc pxa168_device_keypad; | ||
30 | 32 | ||
31 | static inline int pxa168_add_uart(int id) | 33 | static inline int pxa168_add_uart(int id) |
32 | { | 34 | { |
@@ -105,4 +107,9 @@ static inline int pxa168_add_fb(struct pxa168fb_mach_info *mi) | |||
105 | return pxa_register_device(&pxa168_device_fb, mi, sizeof(*mi)); | 107 | return pxa_register_device(&pxa168_device_fb, mi, sizeof(*mi)); |
106 | } | 108 | } |
107 | 109 | ||
110 | static inline int pxa168_add_keypad(struct pxa27x_keypad_platform_data *data) | ||
111 | { | ||
112 | return pxa_register_device(&pxa168_device_keypad, data, sizeof(*data)); | ||
113 | } | ||
114 | |||
108 | #endif /* __ASM_MACH_PXA168_H */ | 115 | #endif /* __ASM_MACH_PXA168_H */ |