Lines Matching +full:wake +full:- +full:up
5 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
28 #define AT91_SHDW_WKMODE0 GENMASK(2, 0) /* Wake-up 0 Mode Selection */
29 #define AT91_SHDW_CPTWK0_MAX 0xf /* Maximum Counter On Wake Up 0 */
30 #define AT91_SHDW_CPTWK0 (AT91_SHDW_CPTWK0_MAX << 4) /* Counter On Wake Up 0 */
32 #define AT91_SHDW_RTTWKEN BIT(16) /* Real Time Timer Wake-up Enable */
33 #define AT91_SHDW_RTCWKEN BIT(17) /* Real Time Clock Wake-up Enable */
36 #define AT91_SHDW_WAKEUP0 BIT(0) /* Wake-up 0 Status */
37 #define AT91_SHDW_RTTWK BIT(16) /* Real-time Timer Wake-up */
38 #define AT91_SHDW_RTCWK BIT(17) /* Real-time Clock Wake-up [SAM9RL] */
65 /* Simple power-on, just bail out */ in at91_wakeup_status()
76 dev_info(&pdev->dev, "Wake-Up source: %s\n", reason); in at91_wakeup_status()
110 err = of_property_read_string(np, "atmel,wakeup-mode", &pm); in at91_poweroff_get_wakeup_mode()
118 return -ENODEV; in at91_poweroff_get_wakeup_mode()
123 struct device_node *np = pdev->dev.of_node; in at91_poweroff_dt_set_wakeup_mode()
129 dev_warn(&pdev->dev, "shdwc unknown wakeup mode\n"); in at91_poweroff_dt_set_wakeup_mode()
133 if (!of_property_read_u32(np, "atmel,wakeup-counter", &tmp)) { in at91_poweroff_dt_set_wakeup_mode()
135 dev_warn(&pdev->dev, in at91_poweroff_dt_set_wakeup_mode()
143 if (of_property_read_bool(np, "atmel,wakeup-rtc-timer")) in at91_poweroff_dt_set_wakeup_mode()
146 if (of_property_read_bool(np, "atmel,wakeup-rtt-timer")) in at91_poweroff_dt_set_wakeup_mode()
162 at91_shdwc.sclk = devm_clk_get(&pdev->dev, NULL); in at91_poweroff_probe()
168 dev_err(&pdev->dev, "Could not enable slow clock\n"); in at91_poweroff_probe()
174 if (pdev->dev.of_node) in at91_poweroff_probe()
177 np = of_find_compatible_node(NULL, NULL, "atmel,sama5d3-ddramc"); in at91_poweroff_probe()
183 ret = -ENOMEM; in at91_poweroff_probe()
217 { .compatible = "atmel,at91sam9260-shdwc", },
218 { .compatible = "atmel,at91sam9rl-shdwc", },
219 { .compatible = "atmel,at91sam9x5-shdwc", },
228 .name = "at91-poweroff",