rendered paste body/*
* PASIC3 with DS1WM
*/
static struct platform_device *pasic3_devices[] = {
&pasic3_led,
};
static struct resource pasic3_resources[] = {
[0] = {
.start = 0x11000000,
.end = 0x11000000 + 0x08,
.flags = IORESOURCE_MEM,
},
/* No IRQ handler in the PASIC3, DS1WM needs an external IRQ */
[1] = {
.start = HTCBLUEANGEL_ASIC3_IRQ_BASE + BLUEANGEL_OWM_IRQ,
.end = HTCBLUEANGEL_ASIC3_IRQ_BASE + BLUEANGEL_OWM_IRQ,
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE ,
}
};
static struct pasic3_platform_data pasic3_platform_data = {
.bus_shift = 1,
.child_devs = pasic3_devices,
.num_child_devs = ARRAY_SIZE(pasic3_devices),
.clock_rate = 16000000,
};
static struct platform_device pasic3 = {
.name = "pasic3",
.id = -1,
.num_resources = ARRAY_SIZE(pasic3_resources),
.resource = pasic3_resources,
.dev = {
.platform_data = &pasic3_platform_data,
},
};