Re: [PATCH v5 2/5] ARM: at91: pm: add ULP1 mode support

2016-03-19 Thread Alexandre Belloni
On 16/03/2016 at 14:58:06 +0800, Wenyou Yang wrote : > @@ -497,4 +506,7 @@ void __init sama5_pm_init(void) > at91_pm_data.uhp_udp_mask = AT91SAM926x_PMC_UHP | AT91SAM926x_PMC_UDP; > at91_pm_data.memctrl = AT91_MEMCTRL_DDRSDR; > at91_pm_init(NULL); > + > + if (readl(pmc + AT91_

[PATCH v5 2/5] ARM: at91: pm: add ULP1 mode support

2016-03-16 Thread Wenyou Yang
The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2. In the ULP1 mode, all the clocks are shut off, inclusive the embedded 12MHz RC oscillator, so as to achieve the lowest power consumption with the system in retention mode and able to resume on the wake up events. As soon as the wake up ev