Lines Matching refs:pm_config

32 static struct davinci_pm_config pm_config = {  variable
47 if (pm_config.cpupll_reg_base != pm_config.ddrpll_reg_base) { in davinci_pm_suspend()
50 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
52 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
57 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
59 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
63 val = __raw_readl(pm_config.deepsleep_reg); in davinci_pm_suspend()
65 val |= pm_config.sleepcount; in davinci_pm_suspend()
66 __raw_writel(val, pm_config.deepsleep_reg); in davinci_pm_suspend()
69 davinci_sram_suspend(&pm_config); in davinci_pm_suspend()
71 if (pm_config.cpupll_reg_base != pm_config.ddrpll_reg_base) { in davinci_pm_suspend()
74 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
76 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
79 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
81 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
87 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
89 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
95 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
98 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
130 pm_config.ddr2_ctlr_base = da8xx_get_mem_ctlr(); in davinci_pm_init()
131 pm_config.deepsleep_reg = DA8XX_SYSCFG1_VIRT(DA8XX_DEEPSLEEP_REG); in davinci_pm_init()
133 pm_config.cpupll_reg_base = ioremap(DA8XX_PLL0_BASE, SZ_4K); in davinci_pm_init()
134 if (!pm_config.cpupll_reg_base) in davinci_pm_init()
137 pm_config.ddrpll_reg_base = ioremap(DA850_PLL1_BASE, SZ_4K); in davinci_pm_init()
138 if (!pm_config.ddrpll_reg_base) { in davinci_pm_init()
143 pm_config.ddrpsc_reg_base = ioremap(DA8XX_PSC1_BASE, SZ_4K); in davinci_pm_init()
144 if (!pm_config.ddrpsc_reg_base) { in davinci_pm_init()
164 iounmap(pm_config.ddrpsc_reg_base); in davinci_pm_init()
166 iounmap(pm_config.ddrpll_reg_base); in davinci_pm_init()
168 iounmap(pm_config.cpupll_reg_base); in davinci_pm_init()