author | Vaibhav Bedia <vaibhav.bedia@ti.com> | |
Tue, 20 Dec 2011 11:37:37 +0000 (17:07 +0530) | ||
committer | Vaibhav Hiremath <hvaibhav@ti.com> | |
Mon, 23 Jan 2012 19:14:42 +0000 (00:44 +0530) | ||
commit | 589f1424c66ae00e66e5c713b71273abc1b56ff8 | |
tree | 3daad8bd8b904b4860aa9628438541e790d8baa3 | tree | snapshot (tar.xz tar.gz zip) |
parent | c3e32a11e9df932fa685ba744a24ab485680e102 | commit | diff |
omap: mailbox: Add an API for flushing the FIFO
On some platforms like AM33XX, the mailbox module is a
one-way communication between certain processors.
In these scenarios, the initiator (eg. MPU) is completely
responsible for FIFO maintenance and interrupt generation.
The initiator needs a mechanism to flush the FIFO to avoid
overflows or when going to suspend. Without the FIFO being
flushed, the IP block doesn't get disabled thereby blocking
system suspend.
This patch adds an API which the suspend code can invoke
to flush the FIFO and successfully enter suspend state.
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
On some platforms like AM33XX, the mailbox module is a
one-way communication between certain processors.
In these scenarios, the initiator (eg. MPU) is completely
responsible for FIFO maintenance and interrupt generation.
The initiator needs a mechanism to flush the FIFO to avoid
overflows or when going to suspend. Without the FIFO being
flushed, the IP block doesn't get disabled thereby blocking
system suspend.
This patch adds an API which the suspend code can invoke
to flush the FIFO and successfully enter suspend state.
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
arch/arm/mach-omap2/mailbox.c | diff | blob | history | |
arch/arm/plat-omap/include/plat/mailbox.h | diff | blob | history | |
arch/arm/plat-omap/mailbox.c | diff | blob | history |