diff options
author | Arun Radhakrishnan <x0051460@ti.com> | 2009-07-29 13:25:38 -0500 |
---|---|---|
committer | Hari Kanigeri <h-kanigeri2@ti.com> | 2009-11-06 17:54:39 -0600 |
commit | 6d7d5e905dcdb401a607ba747d71f4eb2138f23b (patch) | |
tree | ecce666736e7db6bc917ad83bbf2a18ecf69c847 /arch/arm/mach-omap2 | |
parent | 5af6c2e6c22aead8f17c37950facfad57ec42034 (diff) |
SYSLINK: comment out mailbox clocks for OMAP4
This patch removes the access to the mailbox clocks since
the clock framework for OMAP4 is not ready.
Signed-off-by: Arun Radhakrishnan <x0051460@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rwxr-xr-x[-rw-r--r--] | arch/arm/mach-omap2/mailbox.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 8b4e0e85eddc..c506f971e0bc 100644..100755 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c @@ -89,12 +89,14 @@ static int omap2_mbox_startup(struct omap_mbox *mbox) { unsigned int l; - mbox_ick_handle = clk_get(NULL, "mailboxes_ick"); - if (IS_ERR(mbox_ick_handle)) { - printk(KERN_ERR "Could not get mailboxes_ick\n"); - return -ENODEV; - } + if (!cpu_is_omap44xx()) { + mbox_ick_handle = clk_get(NULL, "mailboxes_ick"); + if (IS_ERR(mbox_ick_handle)) { + printk(KERN_ERR "Could not get mailboxes_ick\n"); + return -ENODEV; + } clk_enable(mbox_ick_handle); + } l = mbox_read_reg(MAILBOX_REVISION); pr_info("omap mailbox rev %d.%d\n", (l & 0xf0) >> 4, (l & 0x0f)); @@ -111,8 +113,12 @@ static int omap2_mbox_startup(struct omap_mbox *mbox) static void omap2_mbox_shutdown(struct omap_mbox *mbox) { - clk_disable(mbox_ick_handle); - clk_put(mbox_ick_handle); + if (!cpu_is_omap44xx()) { + clk_disable(mbox_ick_handle); + clk_put(mbox_ick_handle); + } else { + printk(KERN_ERR "OMAP4 clocks are not modeled"); + } } /* Mailbox FIFO handle functions */ |