• Home
  • Raw
  • Download

Lines Matching +full:up +full:- +full:counter

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] */
63 /* Simple power-on, just bail out */ in at91_wakeup_status()
74 dev_info(&pdev->dev, "Wake-Up source: %s\n", reason); in at91_wakeup_status()
111 err = of_property_read_string(np, "atmel,wakeup-mode", &pm); in at91_poweroff_get_wakeup_mode()
119 return -ENODEV; in at91_poweroff_get_wakeup_mode()
124 struct device_node *np = pdev->dev.of_node; in at91_poweroff_dt_set_wakeup_mode()
130 dev_warn(&pdev->dev, "shdwc unknown wakeup mode\n"); in at91_poweroff_dt_set_wakeup_mode()
134 if (!of_property_read_u32(np, "atmel,wakeup-counter", &tmp)) { in at91_poweroff_dt_set_wakeup_mode()
136 dev_warn(&pdev->dev, in at91_poweroff_dt_set_wakeup_mode()
137 "shdwc wakeup counter 0x%x > 0x%x reduce it to 0x%x\n", in at91_poweroff_dt_set_wakeup_mode()
144 if (of_property_read_bool(np, "atmel,wakeup-rtc-timer")) in at91_poweroff_dt_set_wakeup_mode()
147 if (of_property_read_bool(np, "atmel,wakeup-rtt-timer")) in at91_poweroff_dt_set_wakeup_mode()
161 at91_shdwc_base = devm_ioremap_resource(&pdev->dev, res); in at91_poweroff_probe()
165 sclk = devm_clk_get(&pdev->dev, NULL); in at91_poweroff_probe()
171 dev_err(&pdev->dev, "Could not enable slow clock\n"); in at91_poweroff_probe()
177 if (pdev->dev.of_node) in at91_poweroff_probe()
182 np = of_find_compatible_node(NULL, NULL, "atmel,sama5d3-ddramc"); in at91_poweroff_probe()
214 { .compatible = "atmel,sama5d3-ddramc", },
219 { .compatible = "atmel,at91sam9260-shdwc", },
220 { .compatible = "atmel,at91sam9rl-shdwc", },
221 { .compatible = "atmel,at91sam9x5-shdwc", },
229 .name = "at91-poweroff",