Lines Matching refs:pm_config
36 static struct davinci_pm_config pm_config = { variable
51 if (pm_config.cpupll_reg_base != pm_config.ddrpll_reg_base) { in davinci_pm_suspend()
54 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
56 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
61 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
63 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
67 val = __raw_readl(pm_config.deepsleep_reg); in davinci_pm_suspend()
69 val |= pm_config.sleepcount; in davinci_pm_suspend()
70 __raw_writel(val, pm_config.deepsleep_reg); in davinci_pm_suspend()
73 davinci_sram_suspend(&pm_config); in davinci_pm_suspend()
75 if (pm_config.cpupll_reg_base != pm_config.ddrpll_reg_base) { in davinci_pm_suspend()
78 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
80 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
83 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
85 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
91 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
93 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
99 val = __raw_readl(pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
102 __raw_writel(val, pm_config.cpupll_reg_base + PLLCTL); in davinci_pm_suspend()
134 pm_config.ddr2_ctlr_base = da8xx_get_mem_ctlr(); in davinci_pm_init()
135 pm_config.deepsleep_reg = DA8XX_SYSCFG1_VIRT(DA8XX_DEEPSLEEP_REG); in davinci_pm_init()
137 pm_config.cpupll_reg_base = ioremap(DA8XX_PLL0_BASE, SZ_4K); in davinci_pm_init()
138 if (!pm_config.cpupll_reg_base) in davinci_pm_init()
141 pm_config.ddrpll_reg_base = ioremap(DA850_PLL1_BASE, SZ_4K); in davinci_pm_init()
142 if (!pm_config.ddrpll_reg_base) { in davinci_pm_init()
147 pm_config.ddrpsc_reg_base = ioremap(DA8XX_PSC1_BASE, SZ_4K); in davinci_pm_init()
148 if (!pm_config.ddrpsc_reg_base) { in davinci_pm_init()
168 iounmap(pm_config.ddrpsc_reg_base); in davinci_pm_init()
170 iounmap(pm_config.ddrpll_reg_base); in davinci_pm_init()
172 iounmap(pm_config.cpupll_reg_base); in davinci_pm_init()