Lines Matching defs:mode
36 * @suspended: true if suspended to backup mode
38 * @canary: canary data for memory checking after exit from backup mode
93 * @modes: power management mode that this quirk applies to
119 * @bu: backup unit mapped data (for backup mode)
126 int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity);
127 int (*config_pmc_ws)(void __iomem *pmc, u32 mode, u32 polarity);
242 unsigned int mode = 0, polarity = 0, val = 0;
251 writel(mode, soc_pm.data.pmc + AT91_PMC_FSMR);
256 soc_pm.config_shdwc_ws(soc_pm.data.shdwc, &mode, &polarity);
274 mode |= wsi->pmc_fsmr_bit;
283 if (mode) {
285 soc_pm.config_pmc_ws(soc_pm.data.pmc, mode, polarity);
290 return mode ? 0 : -EPERM;
293 static int at91_sama5d2_config_shdwc_ws(void __iomem *shdwc, u32 *mode,
300 *mode |= (val & 0x3ff);
306 static int at91_sama5d2_config_pmc_ws(void __iomem *pmc, u32 mode, u32 polarity)
308 writel(mode, pmc + AT91_PMC_FSMR);
314 static int at91_sam9x60_config_pmc_ws(void __iomem *pmc, u32 mode, u32 polarity)
316 writel(mode, pmc + AT91_PMC_FSMR);
329 /* No quirks for this interface and current suspend mode. */
330 if (!(eth->modes & BIT(soc_pm.data.mode)))
361 * here, in this file, if we suspend to ULP0 or ULP1 mode. Thus handle
376 if (suspend && eth->dns_modes & BIT(soc_pm.data.mode)) {
463 soc_pm.data.mode = soc_pm.data.suspend_mode;
467 soc_pm.data.mode = soc_pm.data.standby_mode;
471 soc_pm.data.mode = -1;
474 ret = at91_pm_config_ws(soc_pm.data.mode, true);
478 if (soc_pm.data.mode == AT91_PM_BACKUP)
488 * slow-clock mode.
523 * going into slow clock mode.
531 return (soc_pm.data.mode >= AT91_PM_ULP0);
550 if (soc_pm.data.mode == AT91_PM_BACKUP && soc_pm.data.ramc_phy) {
621 if (soc_pm.data.mode == AT91_PM_BACKUP) {
638 * STANDBY mode has *all* drivers suspended; ignores irqs not marked as 'wakeup'
642 * AT91_PM_ULP0 is like STANDBY plus slow clock mode, so drivers must
662 if (soc_pm.data.mode >= AT91_PM_ULP0 &&
689 at91_pm_config_ws(soc_pm.data.mode, false);
705 * The AT91RM9200 goes into self-refresh mode with this command, and will
708 * Self-refresh mode is exited as soon as a memory access is made, but we don't
710 * mode if it was enabled before going idle. Restoring low-power mode while
737 /* LPDDR1 --> force DDR2 mode during self-refresh */
761 /* self-refresh mode now */
810 /* self-refresh mode now */
1104 pr_info("AT91: Secure PM: suspend mode set to %s\n",
1109 pr_warn("AT91: Secure PM: %s mode not supported !\n",
1114 pr_warn("AT91: Secure PM: failed to get default mode\n");
1118 pr_info("AT91: Secure PM: using default suspend mode %s\n",
1145 * Replaces _mode_to_replace with a supported mode that doesn't depend
1148 * PM mode
1156 * PM mode
1182 * @_maps: u32 array indexed by AT91 PM mode containing AT91_PM_IOMAP()
1184 * @_map: controller specific name; standby and suspend mode need to be
1368 int mode;
1387 mode = AT91_PM_ULP0;
1389 mode = AT91_PM_STANDBY;
1391 pr_warn("AT91: PM: %s mode not supported! Using %s.\n",
1393 pm_modes[mode].pattern);
1394 soc_pm.data.standby_mode = mode;
1399 mode = AT91_PM_STANDBY;
1401 mode = AT91_PM_ULP0;
1403 pr_warn("AT91: PM: %s mode not supported! Using %s.\n",
1405 pm_modes[mode].pattern);
1406 soc_pm.data.suspend_mode = mode;
1455 * Force STANDBY and ULP0 mode to avoid calling
1467 * AT91RM9200 SDRAM low-power mode cannot be used with self-refresh.
1507 * Force STANDBY and ULP0 mode to avoid calling
1572 pr_warn("AT91: Secure PM: ignoring standby mode\n");