diff options
author | Subramaniam C.A <x0110354@linuxomap.(none)> | 2009-07-23 13:00:52 +0530 |
---|---|---|
committer | Hari Kanigeri <h-kanigeri2@ti.com> | 2009-11-06 17:54:20 -0600 |
commit | 26af0da3a7bd3b21617fdddafb8bb7fe6d191b4c (patch) | |
tree | cd5c0dc919b8042207233d85535d116e95a76c03 /arch/arm/mach-omap2 | |
parent | a3a99e72e30869b87e6c4d8f6faccaffaca8c8cd (diff) |
OMAP4 - Add resources and mailbox register base address for OMAP4 mailbox
This patch adds resource information of mailbox driver for
OMAP4 mailbox module. Register base address also added
Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
Signed-off-by: Ramesh Gupta G <grgupta@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index b6b437e6fc6b..2575394fd119 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -136,8 +136,11 @@ static inline void omap_init_camera(void) #if defined(CONFIG_OMAP_MBOX_FWK) || defined(CONFIG_OMAP_MBOX_FWK_MODULE) +#ifdef CONFIG_ARCH_OMAP4 +#define MBOX_REG_SIZE 0x130 +#else #define MBOX_REG_SIZE 0x120 - +#endif static struct resource omap2_mbox_resources[] = { { .start = OMAP24XX_MAILBOX_BASE, @@ -166,6 +169,18 @@ static struct resource omap3_mbox_resources[] = { }, }; +static struct resource omap4_mbox_resources[] = { + { + .start = OMAP44xx_MAILBOX_BASE, + .end = OMAP44xx_MAILBOX_BASE + MBOX_REG_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = INT_44XX_MAIL_U0_MPU, + .flags = IORESOURCE_IRQ, + }, +}; + static struct platform_device mbox_device = { .name = "omap2-mailbox", .id = -1, @@ -179,6 +194,9 @@ static inline void omap_init_mbox(void) } else if (cpu_is_omap3430()) { mbox_device.num_resources = ARRAY_SIZE(omap3_mbox_resources); mbox_device.resource = omap3_mbox_resources; + } else if (cpu_is_omap44xx()) { + mbox_device.num_resources = ARRAY_SIZE(omap4_mbox_resources); + mbox_device.resource = omap4_mbox_resources; } else { pr_err("%s: platform not supported\n", __func__); return; |