summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/prcm-common.h
diff options
context:
space:
mode:
authorTero Kristo2014-11-20 14:02:59 +0100
committerTero Kristo2015-03-31 20:26:36 +0200
commitab7b2ffcf576a49b51c240dcd68ca4b7cd60b84d (patch)
treed4d34e048713a8f7029ec525118469b7a79d35d8 /arch/arm/mach-omap2/prcm-common.h
parentARM: OMAP2+: control: determine control module base address from DT (diff)
downloadkernel-qcow2-linux-ab7b2ffcf576a49b51c240dcd68ca4b7cd60b84d.tar.gz
kernel-qcow2-linux-ab7b2ffcf576a49b51c240dcd68ca4b7cd60b84d.tar.xz
kernel-qcow2-linux-ab7b2ffcf576a49b51c240dcd68ca4b7cd60b84d.zip
ARM: OMAP2+: PRM: move SoC specific init calls within a generic API
This gets rid of need for some exported driver APIs, and simplifies the initialization of the PRM driver. Done in preparation to make PRM a separate driver. The init data is now also passed to the SoC specific implementations, allowing future expansion to add feature flags etc. Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/prcm-common.h')
-rw-r--r--arch/arm/mach-omap2/prcm-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prcm-common.h b/arch/arm/mach-omap2/prcm-common.h
index 9e4dd0b7dd6a..461bdc4ea8ec 100644
--- a/arch/arm/mach-omap2/prcm-common.h
+++ b/arch/arm/mach-omap2/prcm-common.h
@@ -524,12 +524,16 @@ struct omap_prcm_irq_setup {
* @mem: IO mem pointer for this module
* @offset: module base address offset from the IO base
* @flags: PRCM module init flags
+ * @init: low level PRCM init function for this module
+ * @np: device node for this PRCM module
*/
struct omap_prcm_init_data {
int index;
void __iomem *mem;
s16 offset;
u16 flags;
+ int (*init)(const struct omap_prcm_init_data *data);
+ struct device_node *np;
};
extern void omap_prcm_irq_cleanup(void);