diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-11-21 12:45:29 (GMT) |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-31 18:26:52 (GMT) |
commit | 8b5b9a22b57c75905b368194b6fd4c472d5dc630 (patch) | |
tree | 0e01c9521bd70e7d9cf4a48223132233bab80478 /arch/arm/mach-omap2/prm44xx.c | |
parent | 425dc8b2dff222ffd88f31f589dc647409cae0ce (diff) | |
download | linux-8b5b9a22b57c75905b368194b6fd4c472d5dc630.tar.xz |
ARM: OMAP4+: PRM: setup prm_features from the PRM init time flags
Currently some cpu_is_X checks are used to setup prm_features, however
the same can be accomplished by just passing these flags from the PRM
init data. This is done in preparation to make PRM a separate driver.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/prm44xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index a980d245..243133c 100644 --- a/arch/arm/mach-omap2/prm44xx.c +++ b/arch/arm/mach-omap2/prm44xx.c @@ -707,10 +707,10 @@ int __init omap44xx_prm_init(const struct omap_prcm_init_data *data) { omap_prm_base_init(); - if (cpu_is_omap44xx() || soc_is_omap54xx() || soc_is_dra7xx()) + if (data->flags & PRM_HAS_IO_WAKEUP) prm_features |= PRM_HAS_IO_WAKEUP; - if (!soc_is_dra7xx()) + if (data->flags & PRM_HAS_VOLTAGE) prm_features |= PRM_HAS_VOLTAGE; omap4_prminst_set_prm_dev_inst(data->device_inst_offset); |