Commit 0896a9e5 authored by Eric Bénard's avatar Eric Bénard Committed by Sascha Hauer

MX2X: Add Keypad device definition for MX2X arch

Based on work from Alberto Panizzo for MX3X
Signed-off-by: default avatarEric Bénard <eric@eukrea.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent e76a17c2
...@@ -501,3 +501,21 @@ struct platform_device mx21_usbhc_device = { ...@@ -501,3 +501,21 @@ struct platform_device mx21_usbhc_device = {
}; };
#endif #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,
};
...@@ -40,3 +40,4 @@ extern struct platform_device mxc_spi_device2; ...@@ -40,3 +40,4 @@ extern struct platform_device mxc_spi_device2;
extern struct platform_device mx21_usbhc_device; extern struct platform_device mx21_usbhc_device;
extern struct platform_device imx_ssi_device0; extern struct platform_device imx_ssi_device0;
extern struct platform_device imx_ssi_device1; extern struct platform_device imx_ssi_device1;
extern struct platform_device imx_kpp_device;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment