Commit cd7989ab authored by Arun Radhakrishnan's avatar Arun Radhakrishnan Committed by Hari Kanigeri

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: default avatarArun Radhakrishnan <x0051460@ti.com>
parent 99f4b198
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment