• Claudiu Beznea's avatar
    ARM: at91: pm: configure wakeup sources for ULP1 mode · d7484f5c
    Claudiu Beznea authored
    Since for ULP1 PM mode of SAMA5D2 the wakeup sources are limited and
    well known add a method to check if these wakeup sources are defined by
    user (either via DT or filesystem). In case there are no wakeup sources
    defined for ULP1 the PM suspend will fail, otherwise these will be
    configured in fast startup registers of PMC. Since wakeup sources of
    ULP1 need also to be configured in SHDWC registers the code was a bit
    changed to map the SHDWC also in case ULP1 is requested by user (this
    was done in the initialization phase). In case the ULP1 initialization
    fails the ULP0 mode is used (this mode was also used in case backup mode
    initialization failed).
    Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
    Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
    d7484f5c
pm.c 18.9 KB