diff options
author | Philippe Langlais <philippe.langlais@stericsson.com> | 2011-10-19 10:35:11 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:02:17 +0200 |
commit | 5ecff92d7c6a399bd67d6159059f3e14419cc73e (patch) | |
tree | 096889cda458b89ea53e5253eb75a63c0fcfaecb /arch/arm/mach-ux500/devices-db5500.h | |
parent | 655fdd963e3874ce9cbd358e42502413040e5fb9 (diff) |
mach-ux500: input: add db5500 keypad support
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/devices-db5500.h')
-rw-r--r-- | arch/arm/mach-ux500/devices-db5500.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/devices-db5500.h b/arch/arm/mach-ux500/devices-db5500.h index 7fc0aa4c59c..22d6086d4dc 100644 --- a/arch/arm/mach-ux500/devices-db5500.h +++ b/arch/arm/mach-ux500/devices-db5500.h @@ -17,6 +17,16 @@ #define db5500_add_i2c3(parent, pdata) \ dbx500_add_i2c(parent, 3, U5500_I2C3_BASE, IRQ_DB5500_I2C3, pdata) +struct db5500_keypad_platform_data; + +static inline struct platform_device * +db5500_add_keypad(struct db5500_keypad_platform_data *pdata) +{ + return dbx500_add_platform_device_4k1irq("db5500-keypad", -1, + U5500_KEYPAD_BASE, + IRQ_DB5500_KBD, pdata); +} + #define db5500_add_msp0_spi(parent, pdata) \ dbx500_add_msp_spi(parent, "msp0", U5500_MSP0_BASE, \ IRQ_DB5500_MSP0, pdata) |