aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/mailbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/mailbox.c')
-rw-r--r--arch/arm/mach-omap2/mailbox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c
index e498e39..bdb5332 100644
--- a/arch/arm/mach-omap2/mailbox.c
+++ b/arch/arm/mach-omap2/mailbox.c
@@ -20,6 +20,7 @@
#include <mach/irqs.h>
#define MAILBOX_REVISION 0x000
+#define MAILBOX_SYSCONFIG 0x10
#define MAILBOX_MESSAGE(m) (0x040 + 0x4 * (m))
#define MAILBOX_FIFOSTATUS(m) (0x080 + 0x4 * (m))
#define MAILBOX_MSGSTATUS(m) (0x0c0 + 0x4 * (m))
@@ -32,6 +33,7 @@
#define MAILBOX_IRQ_NEWMSG(m) (1 << (2 * (m)))
#define MAILBOX_IRQ_NOTFULL(m) (1 << (2 * (m) + 1))
+#define MAILBOX_SOFTRESET 1
#define MBOX_NUM_USER 2
#define OMAP4_MBOX_NUM_USER 3
@@ -123,6 +125,8 @@ static int omap2_mbox_startup(struct omap_mbox *mbox)
pm_runtime_enable(mbox->dev->parent);
pm_runtime_get_sync(mbox->dev->parent);
+ mbox_write_reg(MAILBOX_SOFTRESET, MAILBOX_SYSCONFIG);
+
omap2_mbox_restore_ctx(mbox);
l = mbox_read_reg(MAILBOX_REVISION);