This patch adds HDQ base address defines and registers hdq as platform device. Signed-off-by: Madhusudhan Chikkature<madhu.cr@xxxxxx> --- arch/arm/mach-omap2/devices.c | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+) Index: linux-omap-2.6/arch/arm/mach-omap2/devices.c =================================================================== --- linux-omap-2.6.orig/arch/arm/mach-omap2/devices.c 2007-12-10 11:08:36.000000000 +0530 +++ linux-omap-2.6/arch/arm/mach-omap2/devices.c 2007-12-17 10:05:13.772254234 +0530 @@ -221,6 +221,38 @@ void omap_init_eac(struct eac_platform_data *pdata) {} #endif +#if defined(CONFIG_HDQ_MASTER_OMAP) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE) +#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) +#define OMAP_HDQ_BASE 0x480B2000 +#endif +static struct resource omap_hdq_resources[] = { + { + .start = OMAP_HDQ_BASE, + .end = OMAP_HDQ_BASE + 0x1C, + .flags = IORESOURCE_MEM, + }, + { + .start = INT_24XX_HDQ_IRQ, + .flags = IORESOURCE_IRQ, + }, +}; +static struct platform_device omap_hdq_dev = { + .name = "omap_hdq", + .id = 0, + .dev = { + .platform_data = NULL, + }, + .num_resources = ARRAY_SIZE(omap_hdq_resources), + .resource = omap_hdq_resources, +}; +static inline void omap_hdq_init(void) +{ + (void) platform_device_register(&omap_hdq_dev); +} +#else +static inline void omap_hdq_init(void) {} +#endif + /*-------------------------------------------------------------------------*/ static int __init omap2_init_devices(void) @@ -231,6 +263,7 @@ omap_init_camera(); omap_init_mbox(); omap_init_mcspi(); + omap_hdq_init(); omap_init_sti(); return 0; - To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html