diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-09-08 04:29:43 -0400 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-31 14:26:44 -0400 |
commit | 48e0c1148d18de677f1b2aec179f36fb7c1e3839 (patch) | |
tree | a99f48711d42fe91fd81ef55d5ced8352c4bdc2f /arch/arm/mach-omap2/prcm-common.h | |
parent | ab7b2ffcf576a49b51c240dcd68ca4b7cd60b84d (diff) |
ARM: OMAP4+: PRM: determine prm_device_inst based on DT compatibility
PRM device instance offset is now provided through the prm_init_data.
This gets rid of some cpu_is_X / soc_is_X calls from PRM core code,
preparing for PRM to be its own separate driver.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prcm-common.h b/arch/arm/mach-omap2/prcm-common.h index 461bdc4ea8ec..6ae0b3a1781e 100644 --- a/arch/arm/mach-omap2/prcm-common.h +++ b/arch/arm/mach-omap2/prcm-common.h | |||
@@ -524,6 +524,7 @@ 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 | * @device_inst_offset: device instance offset within the module address space | ||
527 | * @init: low level PRCM init function for this module | 528 | * @init: low level PRCM init function for this module |
528 | * @np: device node for this PRCM module | 529 | * @np: device node for this PRCM module |
529 | */ | 530 | */ |
@@ -532,6 +533,7 @@ struct omap_prcm_init_data { | |||
532 | void __iomem *mem; | 533 | void __iomem *mem; |
533 | s16 offset; | 534 | s16 offset; |
534 | u16 flags; | 535 | u16 flags; |
536 | s32 device_inst_offset; | ||
535 | int (*init)(const struct omap_prcm_init_data *data); | 537 | int (*init)(const struct omap_prcm_init_data *data); |
536 | struct device_node *np; | 538 | struct device_node *np; |
537 | }; | 539 | }; |