blob: 66c6e87fa3ec80767e6bfc650026e058531bd65f [file] [log] [blame]
Hiroshi DOYU340a6142006-12-07 15:43:59 -08001/*
2 * OMAP mailbox driver
3 *
Hiroshi DOYUf48cca82009-03-23 18:07:24 -07004 * Copyright (C) 2006-2009 Nokia Corporation. All rights reserved.
Hiroshi DOYU340a6142006-12-07 15:43:59 -08005 *
Hiroshi DOYUf48cca82009-03-23 18:07:24 -07006 * Contact: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Hiroshi DOYU340a6142006-12-07 15:43:59 -08007 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
Hiroshi DOYU340a6142006-12-07 15:43:59 -080024#include <linux/module.h>
Hiroshi DOYU340a6142006-12-07 15:43:59 -080025#include <linux/interrupt.h>
26#include <linux/device.h>
Hiroshi DOYU340a6142006-12-07 15:43:59 -080027#include <linux/delay.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090028#include <linux/slab.h>
Hiroshi DOYU8dff0fa2009-03-23 18:07:32 -070029
Tony Lindgrence491cf2009-10-20 09:40:47 -070030#include <plat/mailbox.h>
Hiroshi DOYU340a6142006-12-07 15:43:59 -080031
Rob Clark8250a5c2010-01-04 19:22:03 +053032static struct workqueue_struct *mboxd;
Hiroshi DOYU340a6142006-12-07 15:43:59 -080033static struct omap_mbox *mboxes;
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +000034static DEFINE_SPINLOCK(mboxes_lock);
Fernando Guzman Lugo1ea5d6d2010-02-08 13:35:40 -060035static bool rq_full;
Hiroshi DOYU340a6142006-12-07 15:43:59 -080036
C A Subramaniam5f00ec62009-11-22 10:11:22 -080037static int mbox_configured;
Hiroshi DOYU72b917e2010-02-18 00:48:55 -060038static DEFINE_MUTEX(mbox_configured_lock);
C A Subramaniam5f00ec62009-11-22 10:11:22 -080039
Hiroshi DOYU9ae0ee02009-03-23 18:07:26 -070040/* Mailbox FIFO handle functions */
41static inline mbox_msg_t mbox_fifo_read(struct omap_mbox *mbox)
42{
43 return mbox->ops->fifo_read(mbox);
44}
45static inline void mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg)
46{
47 mbox->ops->fifo_write(mbox, msg);
48}
49static inline int mbox_fifo_empty(struct omap_mbox *mbox)
50{
51 return mbox->ops->fifo_empty(mbox);
52}
53static inline int mbox_fifo_full(struct omap_mbox *mbox)
54{
55 return mbox->ops->fifo_full(mbox);
56}
57
58/* Mailbox IRQ handle functions */
Hiroshi DOYU9ae0ee02009-03-23 18:07:26 -070059static inline void ack_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
60{
61 if (mbox->ops->ack_irq)
62 mbox->ops->ack_irq(mbox, irq);
63}
64static inline int is_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
65{
66 return mbox->ops->is_irq(mbox, irq);
67}
68
Hiroshi DOYU340a6142006-12-07 15:43:59 -080069/*
70 * message sender
71 */
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -080072static int __mbox_msg_send(struct omap_mbox *mbox, mbox_msg_t msg)
Hiroshi DOYU340a6142006-12-07 15:43:59 -080073{
74 int ret = 0, i = 1000;
75
76 while (mbox_fifo_full(mbox)) {
77 if (mbox->ops->type == OMAP_MBOX_TYPE2)
78 return -1;
79 if (--i == 0)
80 return -1;
81 udelay(1);
82 }
Hiroshi DOYU340a6142006-12-07 15:43:59 -080083 mbox_fifo_write(mbox, msg);
Hiroshi DOYU340a6142006-12-07 15:43:59 -080084 return ret;
85}
86
Tejun Heoec247512009-04-23 11:05:20 +090087
C A Subramaniamb2b63622009-11-22 10:11:20 -080088int omap_mbox_msg_send(struct omap_mbox *mbox, mbox_msg_t msg)
Hiroshi DOYU340a6142006-12-07 15:43:59 -080089{
C A Subramaniam5ed8d322009-11-22 10:11:24 -080090
Hiroshi DOYU340a6142006-12-07 15:43:59 -080091 struct request *rq;
92 struct request_queue *q = mbox->txq->queue;
Tejun Heoec247512009-04-23 11:05:20 +090093
Hiroshi DOYU340a6142006-12-07 15:43:59 -080094 rq = blk_get_request(q, WRITE, GFP_ATOMIC);
C A Subramaniam5ed8d322009-11-22 10:11:24 -080095 if (unlikely(!rq))
Tejun Heoec247512009-04-23 11:05:20 +090096 return -ENOMEM;
Hiroshi DOYU340a6142006-12-07 15:43:59 -080097
C A Subramaniam5ed8d322009-11-22 10:11:24 -080098 blk_insert_request(q, rq, 0, (void *) msg);
99 tasklet_schedule(&mbox->txq->tasklet);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800100
Tejun Heoec247512009-04-23 11:05:20 +0900101 return 0;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800102}
103EXPORT_SYMBOL(omap_mbox_msg_send);
104
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800105static void mbox_tx_tasklet(unsigned long tx_data)
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800106{
107 int ret;
108 struct request *rq;
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800109 struct omap_mbox *mbox = (struct omap_mbox *)tx_data;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800110 struct request_queue *q = mbox->txq->queue;
111
112 while (1) {
Tejun Heoec247512009-04-23 11:05:20 +0900113
Tejun Heo9934c8c2009-05-08 11:54:16 +0900114 rq = blk_fetch_request(q);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800115
116 if (!rq)
117 break;
118
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800119 ret = __mbox_msg_send(mbox, (mbox_msg_t)rq->special);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800120 if (ret) {
Hiroshi DOYUeb188582009-11-22 10:11:22 -0800121 omap_mbox_enable_irq(mbox, IRQ_TX);
Tejun Heo296b2f62009-05-08 11:54:15 +0900122 blk_requeue_request(q, rq);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800123 return;
124 }
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800125 blk_end_request_all(rq, 0);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800126 }
127}
128
129/*
130 * Message receiver(workqueue)
131 */
132static void mbox_rx_work(struct work_struct *work)
133{
134 struct omap_mbox_queue *mq =
135 container_of(work, struct omap_mbox_queue, work);
136 struct omap_mbox *mbox = mq->queue->queuedata;
137 struct request_queue *q = mbox->rxq->queue;
138 struct request *rq;
139 mbox_msg_t msg;
140 unsigned long flags;
141
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800142 while (1) {
143 spin_lock_irqsave(q->queue_lock, flags);
Tejun Heo9934c8c2009-05-08 11:54:16 +0900144 rq = blk_fetch_request(q);
Fernando Guzman Lugo1ea5d6d2010-02-08 13:35:40 -0600145 if (rq_full) {
146 omap_mbox_enable_irq(mbox, IRQ_RX);
147 rq_full = false;
148 }
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800149 spin_unlock_irqrestore(q->queue_lock, flags);
150 if (!rq)
151 break;
152
Tejun Heoec247512009-04-23 11:05:20 +0900153 msg = (mbox_msg_t)rq->special;
Tejun Heo40cbbb72009-04-23 11:05:19 +0900154 blk_end_request_all(rq, 0);
Fernando Guzman Lugo9caae4d2010-01-27 20:04:02 -0600155 if (mbox->rxq->callback)
156 mbox->rxq->callback((void *)msg);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800157 }
158}
159
160/*
161 * Mailbox interrupt handler
162 */
Hiroshi DOYUbfe1f6a2009-11-22 10:11:18 -0800163static void mbox_txq_fn(struct request_queue *q)
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800164{
165}
166
Hiroshi DOYUbfe1f6a2009-11-22 10:11:18 -0800167static void mbox_rxq_fn(struct request_queue *q)
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800168{
169}
170
171static void __mbox_tx_interrupt(struct omap_mbox *mbox)
172{
Hiroshi DOYUeb188582009-11-22 10:11:22 -0800173 omap_mbox_disable_irq(mbox, IRQ_TX);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800174 ack_mbox_irq(mbox, IRQ_TX);
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800175 tasklet_schedule(&mbox->txq->tasklet);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800176}
177
178static void __mbox_rx_interrupt(struct omap_mbox *mbox)
179{
180 struct request *rq;
181 mbox_msg_t msg;
Jens Axboe165125e2007-07-24 09:28:11 +0200182 struct request_queue *q = mbox->rxq->queue;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800183
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800184 while (!mbox_fifo_empty(mbox)) {
185 rq = blk_get_request(q, WRITE, GFP_ATOMIC);
Fernando Guzman Lugo1ea5d6d2010-02-08 13:35:40 -0600186 if (unlikely(!rq)) {
187 omap_mbox_disable_irq(mbox, IRQ_RX);
188 rq_full = true;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800189 goto nomem;
Fernando Guzman Lugo1ea5d6d2010-02-08 13:35:40 -0600190 }
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800191
192 msg = mbox_fifo_read(mbox);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800193
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800194
Tejun Heoec247512009-04-23 11:05:20 +0900195 blk_insert_request(q, rq, 0, (void *)msg);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800196 if (mbox->ops->type == OMAP_MBOX_TYPE1)
197 break;
198 }
199
200 /* no more messages in the fifo. clear IRQ source. */
201 ack_mbox_irq(mbox, IRQ_RX);
Hiroshi DOYUf48cca82009-03-23 18:07:24 -0700202nomem:
Rob Clark8250a5c2010-01-04 19:22:03 +0530203 queue_work(mboxd, &mbox->rxq->work);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800204}
205
206static irqreturn_t mbox_interrupt(int irq, void *p)
207{
Jeff Garzik2a7057e2007-10-26 05:40:22 -0400208 struct omap_mbox *mbox = p;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800209
210 if (is_mbox_irq(mbox, IRQ_TX))
211 __mbox_tx_interrupt(mbox);
212
213 if (is_mbox_irq(mbox, IRQ_RX))
214 __mbox_rx_interrupt(mbox);
215
216 return IRQ_HANDLED;
217}
218
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800219static struct omap_mbox_queue *mbox_queue_alloc(struct omap_mbox *mbox,
Hiroshi DOYUbfe1f6a2009-11-22 10:11:18 -0800220 request_fn_proc *proc,
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800221 void (*work) (struct work_struct *),
222 void (*tasklet)(unsigned long))
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800223{
Jens Axboe165125e2007-07-24 09:28:11 +0200224 struct request_queue *q;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800225 struct omap_mbox_queue *mq;
226
227 mq = kzalloc(sizeof(struct omap_mbox_queue), GFP_KERNEL);
228 if (!mq)
229 return NULL;
230
231 spin_lock_init(&mq->lock);
232
233 q = blk_init_queue(proc, &mq->lock);
234 if (!q)
235 goto error;
236 q->queuedata = mbox;
237 mq->queue = q;
238
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800239 if (work)
240 INIT_WORK(&mq->work, work);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800241
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800242 if (tasklet)
243 tasklet_init(&mq->tasklet, tasklet, (unsigned long)mbox);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800244 return mq;
245error:
246 kfree(mq);
247 return NULL;
248}
249
250static void mbox_queue_free(struct omap_mbox_queue *q)
251{
252 blk_cleanup_queue(q->queue);
253 kfree(q);
254}
255
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -0800256static int omap_mbox_startup(struct omap_mbox *mbox)
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800257{
C A Subramaniam5f00ec62009-11-22 10:11:22 -0800258 int ret = 0;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800259 struct omap_mbox_queue *mq;
260
261 if (likely(mbox->ops->startup)) {
Hiroshi DOYU72b917e2010-02-18 00:48:55 -0600262 mutex_lock(&mbox_configured_lock);
C A Subramaniam5f00ec62009-11-22 10:11:22 -0800263 if (!mbox_configured)
264 ret = mbox->ops->startup(mbox);
265
266 if (unlikely(ret)) {
Hiroshi DOYU72b917e2010-02-18 00:48:55 -0600267 mutex_unlock(&mbox_configured_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800268 return ret;
C A Subramaniam5f00ec62009-11-22 10:11:22 -0800269 }
270 mbox_configured++;
Hiroshi DOYU72b917e2010-02-18 00:48:55 -0600271 mutex_unlock(&mbox_configured_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800272 }
273
C A Subramaniam5e683822009-11-22 10:11:23 -0800274 ret = request_irq(mbox->irq, mbox_interrupt, IRQF_SHARED,
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800275 mbox->name, mbox);
276 if (unlikely(ret)) {
277 printk(KERN_ERR
278 "failed to register mailbox interrupt:%d\n", ret);
279 goto fail_request_irq;
280 }
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800281
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800282 mq = mbox_queue_alloc(mbox, mbox_txq_fn, NULL, mbox_tx_tasklet);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800283 if (!mq) {
284 ret = -ENOMEM;
285 goto fail_alloc_txq;
286 }
287 mbox->txq = mq;
288
C A Subramaniam5ed8d322009-11-22 10:11:24 -0800289 mq = mbox_queue_alloc(mbox, mbox_rxq_fn, mbox_rx_work, NULL);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800290 if (!mq) {
291 ret = -ENOMEM;
292 goto fail_alloc_rxq;
293 }
294 mbox->rxq = mq;
295
296 return 0;
297
298 fail_alloc_rxq:
299 mbox_queue_free(mbox->txq);
300 fail_alloc_txq:
301 free_irq(mbox->irq, mbox);
302 fail_request_irq:
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800303 if (unlikely(mbox->ops->shutdown))
304 mbox->ops->shutdown(mbox);
305
306 return ret;
307}
308
309static void omap_mbox_fini(struct omap_mbox *mbox)
310{
Fernando Guzman Lugoad6d9622010-02-12 19:02:32 -0600311 free_irq(mbox->irq, mbox);
Fernando Guzman Lugo0e828e82010-02-12 19:07:14 -0600312 tasklet_kill(&mbox->txq->tasklet);
313 flush_work(&mbox->rxq->work);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800314 mbox_queue_free(mbox->txq);
315 mbox_queue_free(mbox->rxq);
316
C A Subramaniam5f00ec62009-11-22 10:11:22 -0800317 if (unlikely(mbox->ops->shutdown)) {
Hiroshi DOYU72b917e2010-02-18 00:48:55 -0600318 mutex_lock(&mbox_configured_lock);
C A Subramaniam5f00ec62009-11-22 10:11:22 -0800319 if (mbox_configured > 0)
320 mbox_configured--;
321 if (!mbox_configured)
322 mbox->ops->shutdown(mbox);
Hiroshi DOYU72b917e2010-02-18 00:48:55 -0600323 mutex_unlock(&mbox_configured_lock);
C A Subramaniam5f00ec62009-11-22 10:11:22 -0800324 }
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800325}
326
327static struct omap_mbox **find_mboxes(const char *name)
328{
329 struct omap_mbox **p;
330
331 for (p = &mboxes; *p; p = &(*p)->next) {
332 if (strcmp((*p)->name, name) == 0)
333 break;
334 }
335
336 return p;
337}
338
339struct omap_mbox *omap_mbox_get(const char *name)
340{
341 struct omap_mbox *mbox;
342 int ret;
343
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000344 spin_lock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800345 mbox = *(find_mboxes(name));
346 if (mbox == NULL) {
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000347 spin_unlock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800348 return ERR_PTR(-ENOENT);
349 }
350
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000351 spin_unlock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800352
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -0800353 ret = omap_mbox_startup(mbox);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800354 if (ret)
355 return ERR_PTR(-ENODEV);
356
357 return mbox;
358}
359EXPORT_SYMBOL(omap_mbox_get);
360
361void omap_mbox_put(struct omap_mbox *mbox)
362{
363 omap_mbox_fini(mbox);
364}
365EXPORT_SYMBOL(omap_mbox_put);
366
Hiroshi DOYUf48cca82009-03-23 18:07:24 -0700367int omap_mbox_register(struct device *parent, struct omap_mbox *mbox)
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800368{
369 int ret = 0;
370 struct omap_mbox **tmp;
371
372 if (!mbox)
373 return -EINVAL;
374 if (mbox->next)
375 return -EBUSY;
376
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000377 spin_lock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800378 tmp = find_mboxes(mbox->name);
Hiroshi DOYUf48cca82009-03-23 18:07:24 -0700379 if (*tmp) {
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800380 ret = -EBUSY;
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000381 spin_unlock(&mboxes_lock);
Hiroshi DOYUf48cca82009-03-23 18:07:24 -0700382 goto err_find;
383 }
384 *tmp = mbox;
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000385 spin_unlock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800386
Hiroshi DOYUf48cca82009-03-23 18:07:24 -0700387 return 0;
388
389err_find:
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800390 return ret;
391}
392EXPORT_SYMBOL(omap_mbox_register);
393
394int omap_mbox_unregister(struct omap_mbox *mbox)
395{
396 struct omap_mbox **tmp;
397
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000398 spin_lock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800399 tmp = &mboxes;
400 while (*tmp) {
401 if (mbox == *tmp) {
402 *tmp = mbox->next;
403 mbox->next = NULL;
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000404 spin_unlock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800405 return 0;
406 }
407 tmp = &(*tmp)->next;
408 }
Ohad Ben-Cohen10d1a002010-05-05 15:33:06 +0000409 spin_unlock(&mboxes_lock);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800410
411 return -EINVAL;
412}
413EXPORT_SYMBOL(omap_mbox_unregister);
414
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -0800415static int __init omap_mbox_init(void)
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800416{
Rob Clark8250a5c2010-01-04 19:22:03 +0530417 mboxd = create_workqueue("mboxd");
418 if (!mboxd)
419 return -ENOMEM;
420
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -0800421 return 0;
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800422}
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -0800423module_init(omap_mbox_init);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800424
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -0800425static void __exit omap_mbox_exit(void)
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800426{
Rob Clark8250a5c2010-01-04 19:22:03 +0530427 destroy_workqueue(mboxd);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800428}
Hiroshi DOYUc7c158e2009-11-22 10:11:19 -0800429module_exit(omap_mbox_exit);
Hiroshi DOYU340a6142006-12-07 15:43:59 -0800430
Hiroshi DOYUf48cca82009-03-23 18:07:24 -0700431MODULE_LICENSE("GPL v2");
432MODULE_DESCRIPTION("omap mailbox: interrupt driven messaging");
Ohad Ben-Cohenf3753252010-05-05 15:33:07 +0000433MODULE_AUTHOR("Toshihiro Kobayashi");
434MODULE_AUTHOR("Hiroshi DOYU");