mwl8k: increase firmware loading timeouts
[linux/fpc-iii.git] / arch / arm / mach-omap2 / cm4xxx.c
blob4af76bb1003a779db9d08835de5322b4a5b90f29
1 /*
2 * OMAP4 CM module functions
4 * Copyright (C) 2009 Nokia Corporation
5 * Paul Walmsley
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.
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>
22 #include <asm/atomic.h>
24 #include "cm.h"
26 /* XXX move this to cm.h */
27 /* MAX_MODULE_READY_TIME: max milliseconds for module to leave idle */
28 #define MAX_MODULE_READY_TIME 20000
31 * OMAP4_PRCM_CM_CLKCTRL_IDLEST_MASK: isolates the IDLEST field in the
32 * CM_CLKCTRL register.
34 #define OMAP4_PRCM_CM_CLKCTRL_IDLEST_MASK (0x2 << 16)
37 * OMAP4 prcm_mod u32 fields contain packed data: the CM ID in bit 16 and
38 * the PRCM module offset address (from the CM module base) in bits 15-0.
40 #define OMAP4_PRCM_MOD_CM_ID_SHIFT 16
41 #define OMAP4_PRCM_MOD_OFFS_MASK 0xffff
43 /**
44 * omap4_cm_wait_idlest_ready - wait for a module to leave idle or standby
45 * @prcm_mod: PRCM module offset (XXX example)
46 * @prcm_dev_offs: PRCM device offset (e.g. MCASP XXX example)
48 * XXX document
50 int omap4_cm_wait_idlest_ready(u32 prcm_mod, u8 prcm_dev_offs)
52 /* FIXME: Add clock manager related code */
53 return 0;