Lines Matching +full:pd +full:- +full:samsung
1 // SPDX-License-Identifier: GPL-2.0
23 #include "wakeup-mask.h"
25 #include "regs-gpio.h"
26 #include "regs-clock.h"
27 #include "gpio-samsung.h"
29 #include "regs-gpio-memport-s3c64xx.h"
30 #include "regs-modem-s3c64xx.h"
31 #include "regs-sys-s3c64xx.h"
32 #include "regs-syscon-power-s3c64xx.h"
38 struct generic_pm_domain pd; member
43 struct s3c64xx_pm_domain *pd; in s3c64xx_pd_off() local
46 pd = container_of(domain, struct s3c64xx_pm_domain, pd); in s3c64xx_pd_off()
49 val &= ~(pd->ena); in s3c64xx_pd_off()
57 struct s3c64xx_pm_domain *pd; in s3c64xx_pd_on() local
61 pd = container_of(domain, struct s3c64xx_pm_domain, pd); in s3c64xx_pd_on()
64 val |= pd->ena; in s3c64xx_pd_on()
68 if (pd->pwr_stat) { in s3c64xx_pd_on()
71 if (__raw_readl(S3C64XX_BLK_PWR_STAT) & pd->pwr_stat) in s3c64xx_pd_on()
73 } while (retry--); in s3c64xx_pd_on()
76 pr_err("Failed to start domain %s\n", pd->name); in s3c64xx_pd_on()
77 return -EBUSY; in s3c64xx_pd_on()
87 .pd = {
97 .pd = {
107 .pd = {
117 .pd = {
127 .pd = {
137 .pd = {
146 .pd = {
156 .pd = {
222 * put the per-cpu code in here until any new cpu comes along and changes
243 * issue a write-buffer drain just in case */ in s3c64xx_cpu_suspend()
293 pm_genpd_init(&s3c64xx_always_on_pm_domains[i]->pd, in s3c64xx_pm_init()
297 pm_genpd_init(&s3c64xx_pm_domains[i]->pd, NULL, false); in s3c64xx_pm_init()
301 pm_genpd_add_device(&s3c64xx_pm_f.pd, &s3c_device_fb.dev); in s3c64xx_pm_init()