Lines Matching +full:real +full:- +full:time

5  * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
28 #define AT91_SHDW_WKMODE0 GENMASK(2, 0) /* Wake-up 0 Mode Selection */
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()
160 at91_shdwc.shdwc_base = devm_ioremap_resource(&pdev->dev, res); in at91_poweroff_probe()
164 at91_shdwc.sclk = devm_clk_get(&pdev->dev, NULL); in at91_poweroff_probe()
170 dev_err(&pdev->dev, "Could not enable slow clock\n"); in at91_poweroff_probe()
176 if (pdev->dev.of_node) in at91_poweroff_probe()
179 np = of_find_compatible_node(NULL, NULL, "atmel,sama5d3-ddramc"); in at91_poweroff_probe()
185 ret = -ENOMEM; in at91_poweroff_probe()
221 { .compatible = "atmel,at91sam9260-shdwc", },
222 { .compatible = "atmel,at91sam9rl-shdwc", },
223 { .compatible = "atmel,at91sam9x5-shdwc", },
231 .name = "at91-poweroff",