@@ -155,6 +155,24 @@ static struct i2c_board_info mx1ads_i2c_devices[] = {
},
};
+static struct resource cs89x0_resources[] = {
+ {
+ .start = IMX_CS4_PHYS + 0x300,
+ .end = IMX_CS4_PHYS + 0x300 + 15,
+ .flags = IORESOURCE_MEM,
+ }, {
+ .start = IRQ_GPIOC(17),
+ .end = IRQ_GPIOC(17),
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct platform_device cs89x0_device = {
+ .name = "cirrus-cs89x0",
+ .num_resources = ARRAY_SIZE(cs89x0_resources),
+ .resource = cs89x0_resources,
+};
+
/*
* Board init
*/
@@ -172,6 +190,8 @@ static void __init mx1ads_init(void)
ARRAY_SIZE(mx1ads_i2c_devices));
mxc_register_device(&imx_i2c_device, &mx1ads_i2c_data);
+
+ platform_device_register(&cs89x0_device);
}
static void __init mx1ads_timer_init(void)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> --- arch/arm/mach-mx1/mx1ads.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-)