]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/mach-mx2/devices.c
MX2X: Add Keypad device definition for MX2X arch
[net-next-2.6.git] / arch / arm / mach-mx2 / devices.c
index a0aeb8a4adc19ef419a0a045ad3b882131597106..4df2e340652cdbd7b6d8a131cf7e9dd2f081c517 100644 (file)
@@ -501,3 +501,21 @@ struct platform_device mx21_usbhc_device = {
 };
 #endif
 
+static struct resource imx_kpp_resources[] = {
+       {
+               .start  = MX2x_KPP_BASE_ADDR,
+               .end    = MX2x_KPP_BASE_ADDR + 0xf,
+               .flags  = IORESOURCE_MEM
+       }, {
+               .start  = MX2x_INT_KPP,
+               .end    = MX2x_INT_KPP,
+               .flags  = IORESOURCE_IRQ,
+       },
+};
+
+struct platform_device imx_kpp_device = {
+       .name = "imx-keypad",
+       .id = -1,
+       .num_resources = ARRAY_SIZE(imx_kpp_resources),
+       .resource = imx_kpp_resources,
+};