Paul Walmsley | 71348bc | 2009-09-03 20:14:02 +0300 | [diff] [blame] | 1 | /* |
| 2 | * OMAP4 CM module functions |
| 3 | * |
| 4 | * Copyright (C) 2009 Nokia Corporation |
| 5 | * Paul Walmsley |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/kernel.h> |
| 13 | #include <linux/module.h> |
| 14 | #include <linux/types.h> |
| 15 | #include <linux/delay.h> |
| 16 | #include <linux/spinlock.h> |
| 17 | #include <linux/list.h> |
| 18 | #include <linux/errno.h> |
| 19 | #include <linux/err.h> |
| 20 | #include <linux/io.h> |
| 21 | |
| 22 | #include <asm/atomic.h> |
| 23 | |
| 24 | #include "cm.h" |
Benoit Cousson | d9e6625 | 2010-05-20 12:31:08 -0600 | [diff] [blame^] | 25 | #include "cm-regbits-44xx.h" |
Paul Walmsley | 71348bc | 2009-09-03 20:14:02 +0300 | [diff] [blame] | 26 | |
| 27 | /** |
| 28 | * omap4_cm_wait_idlest_ready - wait for a module to leave idle or standby |
| 29 | * @prcm_mod: PRCM module offset (XXX example) |
| 30 | * @prcm_dev_offs: PRCM device offset (e.g. MCASP XXX example) |
| 31 | * |
| 32 | * XXX document |
| 33 | */ |
| 34 | int omap4_cm_wait_idlest_ready(u32 prcm_mod, u8 prcm_dev_offs) |
| 35 | { |
Tony Lindgren | 61f04ee | 2009-09-24 16:23:07 -0700 | [diff] [blame] | 36 | /* FIXME: Add clock manager related code */ |
| 37 | return 0; |
Paul Walmsley | 71348bc | 2009-09-03 20:14:02 +0300 | [diff] [blame] | 38 | } |
| 39 | |