Lines Matching refs:at91_shdwc
58 } at91_shdwc; variable
63 u32 reg = readl(at91_shdwc.shdwc_base + AT91_SHDW_SR); in at91_wakeup_status()
97 : "r" (at91_shdwc.mpddrc_base), in at91_poweroff()
99 "r" (at91_shdwc.shdwc_base), in at91_poweroff()
149 writel(wakeup_mode | mode, at91_shdwc.shdwc_base + AT91_SHDW_MR); in at91_poweroff_dt_set_wakeup_mode()
158 at91_shdwc.shdwc_base = devm_platform_ioremap_resource(pdev, 0); in at91_poweroff_probe()
159 if (IS_ERR(at91_shdwc.shdwc_base)) in at91_poweroff_probe()
160 return PTR_ERR(at91_shdwc.shdwc_base); in at91_poweroff_probe()
162 at91_shdwc.sclk = devm_clk_get(&pdev->dev, NULL); in at91_poweroff_probe()
163 if (IS_ERR(at91_shdwc.sclk)) in at91_poweroff_probe()
164 return PTR_ERR(at91_shdwc.sclk); in at91_poweroff_probe()
166 ret = clk_prepare_enable(at91_shdwc.sclk); in at91_poweroff_probe()
179 at91_shdwc.mpddrc_base = of_iomap(np, 0); in at91_poweroff_probe()
182 if (!at91_shdwc.mpddrc_base) { in at91_poweroff_probe()
187 ddr_type = readl(at91_shdwc.mpddrc_base + AT91_DDRSDRC_MDR) & in at91_poweroff_probe()
191 iounmap(at91_shdwc.mpddrc_base); in at91_poweroff_probe()
192 at91_shdwc.mpddrc_base = NULL; in at91_poweroff_probe()
201 clk_disable_unprepare(at91_shdwc.sclk); in at91_poweroff_probe()
210 if (at91_shdwc.mpddrc_base) in at91_poweroff_remove()
211 iounmap(at91_shdwc.mpddrc_base); in at91_poweroff_remove()
213 clk_disable_unprepare(at91_shdwc.sclk); in at91_poweroff_remove()