Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342322
b: refs/heads/master
c: 2ed5f23
h: refs/heads/master
v: v3
  • Loading branch information
Tomasz Figa authored and Kukjin Kim committed Nov 21, 2012
1 parent 0843299 commit c4ef279
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf7c397b62b1afa6d17c890641d067d5999daeb9
refs/heads/master: 2ed5f236716cbd20f51bdc87ddd91bad259c81a6
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ Required Properties:
- reg: physical base address of the controller and length of memory mapped
region.

Optional Properties:
- samsung,exynos4210-pd-off: Specifies that the power domain is in turned-off
state during boot and remains to be turned-off until explicitly turned-on.

Example:

lcd0: power-domain-lcd0 {
Expand Down
8 changes: 5 additions & 3 deletions trunk/arch/arm/mach-exynos/pm_domains.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ static __init int exynos_pm_dt_parse_domains(void)

for_each_compatible_node(np, NULL, "samsung,exynos4210-pd") {
struct exynos_pm_domain *pd;
int on;

pd = kzalloc(sizeof(*pd), GFP_KERNEL);
if (!pd) {
Expand All @@ -97,14 +98,15 @@ static __init int exynos_pm_dt_parse_domains(void)
return -ENOMEM;
}

if (of_get_property(np, "samsung,exynos4210-pd-off", NULL))
pd->is_off = true;
pd->name = np->name;
pd->base = of_iomap(np, 0);
pd->pd.power_off = exynos_pd_power_off;
pd->pd.power_on = exynos_pd_power_on;
pd->pd.of_node = np;
pm_genpd_init(&pd->pd, NULL, false);

on = __raw_readl(pd->base + 0x4) & S5P_INT_LOCAL_PWR_EN;

pm_genpd_init(&pd->pd, NULL, !on);
}
return 0;
}
Expand Down

0 comments on commit c4ef279

Please sign in to comment.