Lines Matching full:shdwc

116  * @config_shdwc_ws: wakeup sources configuration function for SHDWC
126 int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity);
138 * @AT91_PM_IOMAP_SHDWC: SHDWC controller
247 if (!soc_pm.data.pmc || !soc_pm.data.shdwc || !soc_pm.ws_ids) in at91_pm_config_ws()
256 soc_pm.config_shdwc_ws(soc_pm.data.shdwc, &mode, &polarity); in at91_pm_config_ws()
258 /* SHDWC.MR */ in at91_pm_config_ws()
259 val = readl(soc_pm.data.shdwc + 0x04); in at91_pm_config_ws()
270 /* Check if enabled on SHDWC. */ in at91_pm_config_ws()
293 static int at91_sama5d2_config_shdwc_ws(void __iomem *shdwc, u32 *mode, in at91_sama5d2_config_shdwc_ws() argument
298 /* SHDWC.WUIR */ in at91_sama5d2_config_shdwc_ws()
299 val = readl(shdwc + 0x0c); in at91_sama5d2_config_shdwc_ws()
1124 { .compatible = "atmel,sama5d2-shdwc" },
1125 { .compatible = "microchip,sam9x60-shdwc" },
1126 { .compatible = "microchip,sama7g5-shdwc" },
1232 if (maps[soc_pm.data.standby_mode] & AT91_PM_IOMAP(SHDWC) || in at91_pm_modes_init()
1233 maps[soc_pm.data.suspend_mode] & AT91_PM_IOMAP(SHDWC)) { in at91_pm_modes_init()
1236 pr_warn("%s: failed to find shdwc!\n", __func__); in at91_pm_modes_init()
1237 AT91_PM_REPLACE_MODES(maps, SHDWC); in at91_pm_modes_init()
1239 soc_pm.data.shdwc = of_iomap(np, 0); in at91_pm_modes_init()
1292 if (soc_pm.data.shdwc && in at91_pm_modes_init()
1293 !(maps[soc_pm.data.standby_mode] & AT91_PM_IOMAP(SHDWC) || in at91_pm_modes_init()
1294 maps[soc_pm.data.suspend_mode] & AT91_PM_IOMAP(SHDWC))) { in at91_pm_modes_init()
1295 iounmap(soc_pm.data.shdwc); in at91_pm_modes_init()
1296 soc_pm.data.shdwc = NULL; in at91_pm_modes_init()
1480 [AT91_PM_ULP1] = AT91_PM_IOMAP(SHDWC), in sam9x60_pm_init()
1561 [AT91_PM_ULP1] = AT91_PM_IOMAP(SHDWC) | in sama5d2_pm_init()
1563 [AT91_PM_BACKUP] = AT91_PM_IOMAP(SHDWC) | in sama5d2_pm_init()
1614 AT91_PM_IOMAP(SHDWC) | in sama7_pm_init()
1617 AT91_PM_IOMAP(SHDWC), in sama7_pm_init()