Home
last modified time | relevance | path

Searched refs:at91_shdwc (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/power/reset/
Dat91-poweroff.c58 } 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()
160 at91_shdwc.shdwc_base = devm_ioremap_resource(&pdev->dev, res); in at91_poweroff_probe()
161 if (IS_ERR(at91_shdwc.shdwc_base)) in at91_poweroff_probe()
162 return PTR_ERR(at91_shdwc.shdwc_base); in at91_poweroff_probe()
164 at91_shdwc.sclk = devm_clk_get(&pdev->dev, NULL); in at91_poweroff_probe()
165 if (IS_ERR(at91_shdwc.sclk)) in at91_poweroff_probe()
[all …]
Dat91-sama5d2_shdwc.c89 static struct shdwc *at91_shdwc; variable
147 : "r" (at91_shdwc->mpddrc_base), in at91_poweroff()
149 "r" (at91_shdwc->shdwc_base), in at91_poweroff()
151 "r" (at91_shdwc->pmc_base) in at91_poweroff()
283 if (at91_shdwc) in at91_shdwc_probe()
286 at91_shdwc = devm_kzalloc(&pdev->dev, sizeof(*at91_shdwc), GFP_KERNEL); in at91_shdwc_probe()
287 if (!at91_shdwc) in at91_shdwc_probe()
290 platform_set_drvdata(pdev, at91_shdwc); in at91_shdwc_probe()
293 at91_shdwc->shdwc_base = devm_ioremap_resource(&pdev->dev, res); in at91_shdwc_probe()
294 if (IS_ERR(at91_shdwc->shdwc_base)) { in at91_shdwc_probe()
[all …]