mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
ARM: OMAP: dra7: powerdomain data: Register SoC specific powerdomains
Custom efuse powerdomain is always on in dra72 ES2.0 and dra76 SoCs. So register it as aon for these SoCs. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
59895a7b41
commit
3af6ccc3d1
1 changed files with 32 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "prcm44xx.h"
|
||||
#include "prm7xx.h"
|
||||
#include "prcm_mpu7xx.h"
|
||||
#include "soc.h"
|
||||
|
||||
/* iva_7xx_pwrdm: IVA-HD power domain */
|
||||
static struct powerdomain iva_7xx_pwrdm = {
|
||||
|
@ -63,6 +64,14 @@ static struct powerdomain custefuse_7xx_pwrdm = {
|
|||
.flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
|
||||
};
|
||||
|
||||
/* custefuse_aon_7xx_pwrdm: Customer efuse controller power domain */
|
||||
static struct powerdomain custefuse_aon_7xx_pwrdm = {
|
||||
.name = "custefuse_pwrdm",
|
||||
.prcm_offs = DRA7XX_PRM_CUSTEFUSE_INST,
|
||||
.prcm_partition = DRA7XX_PRM_PARTITION,
|
||||
.pwrsts = PWRSTS_ON,
|
||||
};
|
||||
|
||||
/* ipu_7xx_pwrdm: Audio back end power domain */
|
||||
static struct powerdomain ipu_7xx_pwrdm = {
|
||||
.name = "ipu_pwrdm",
|
||||
|
@ -350,7 +359,6 @@ static struct powerdomain eve1_7xx_pwrdm = {
|
|||
static struct powerdomain *powerdomains_dra7xx[] __initdata = {
|
||||
&iva_7xx_pwrdm,
|
||||
&rtc_7xx_pwrdm,
|
||||
&custefuse_7xx_pwrdm,
|
||||
&ipu_7xx_pwrdm,
|
||||
&dss_7xx_pwrdm,
|
||||
&l4per_7xx_pwrdm,
|
||||
|
@ -374,9 +382,32 @@ static struct powerdomain *powerdomains_dra7xx[] __initdata = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static struct powerdomain *powerdomains_dra76x[] __initdata = {
|
||||
&custefuse_aon_7xx_pwrdm,
|
||||
NULL
|
||||
};
|
||||
|
||||
static struct powerdomain *powerdomains_dra74x[] __initdata = {
|
||||
&custefuse_7xx_pwrdm,
|
||||
NULL
|
||||
};
|
||||
|
||||
static struct powerdomain *powerdomains_dra72x[] __initdata = {
|
||||
&custefuse_aon_7xx_pwrdm,
|
||||
NULL
|
||||
};
|
||||
|
||||
void __init dra7xx_powerdomains_init(void)
|
||||
{
|
||||
pwrdm_register_platform_funcs(&omap4_pwrdm_operations);
|
||||
pwrdm_register_pwrdms(powerdomains_dra7xx);
|
||||
|
||||
if (soc_is_dra76x())
|
||||
pwrdm_register_pwrdms(powerdomains_dra76x);
|
||||
else if (soc_is_dra74x())
|
||||
pwrdm_register_pwrdms(powerdomains_dra74x);
|
||||
else if (soc_is_dra72x())
|
||||
pwrdm_register_pwrdms(powerdomains_dra72x);
|
||||
|
||||
pwrdm_complete_init();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue