diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-11-20 08:02:59 -0500 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-31 14:26:36 -0400 |
commit | ab7b2ffcf576a49b51c240dcd68ca4b7cd60b84d (patch) | |
tree | d4d34e048713a8f7029ec525118469b7a79d35d8 /arch/arm/mach-omap2/prcm-common.h | |
parent | 2208bf115fecae211480ea41d25e6d56ec20d405 (diff) |
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.h | 4 |
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 { | |||
524 | * @mem: IO mem pointer for this module | 524 | * @mem: IO mem pointer for this module |
525 | * @offset: module base address offset from the IO base | 525 | * @offset: module base address offset from the IO base |
526 | * @flags: PRCM module init flags | 526 | * @flags: PRCM module init flags |
527 | * @init: low level PRCM init function for this module | ||
528 | * @np: device node for this PRCM module | ||
527 | */ | 529 | */ |
528 | struct omap_prcm_init_data { | 530 | struct omap_prcm_init_data { |
529 | int index; | 531 | int index; |
530 | void __iomem *mem; | 532 | void __iomem *mem; |
531 | s16 offset; | 533 | s16 offset; |
532 | u16 flags; | 534 | u16 flags; |
535 | int (*init)(const struct omap_prcm_init_data *data); | ||
536 | struct device_node *np; | ||
533 | }; | 537 | }; |
534 | 538 | ||
535 | extern void omap_prcm_irq_cleanup(void); | 539 | extern void omap_prcm_irq_cleanup(void); |