aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx25/devices.c
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-05-26 08:12:10 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-26 08:17:55 -0400
commit49535a952bb7ca41dc1c59d89e36f5ff2ef1bc08 (patch)
tree18752840bcd97a8746472bdced135428878bf779 /arch/arm/mach-mx25/devices.c
parentcce02464dd4733e8173d01a9a7a3ff5491c8546b (diff)
mx25: add platform code for imx-keypad
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/devices.c')
-rw-r--r--arch/arm/mach-mx25/devices.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c
index 3a405fa400eb..fd331d04ea0d 100644
--- a/arch/arm/mach-mx25/devices.c
+++ b/arch/arm/mach-mx25/devices.c
@@ -515,3 +515,23 @@ struct platform_device mxc_wdt = {
515 .num_resources = ARRAY_SIZE(mxc_wdt_resources), 515 .num_resources = ARRAY_SIZE(mxc_wdt_resources),
516 .resource = mxc_wdt_resources, 516 .resource = mxc_wdt_resources,
517}; 517};
518
519static struct resource mx25_kpp_resources[] = {
520 {
521 .start = MX25_KPP_BASE_ADDR,
522 .end = MX25_KPP_BASE_ADDR + 0xf,
523 .flags = IORESOURCE_MEM,
524 },
525 {
526 .start = MX25_INT_KPP,
527 .end = MX25_INT_KPP,
528 .flags = IORESOURCE_IRQ,
529 },
530};
531
532struct platform_device mx25_kpp_device = {
533 .name = "imx-keypad",
534 .id = -1,
535 .num_resources = ARRAY_SIZE(mx25_kpp_resources),
536 .resource = mx25_kpp_resources,
537};