• Shenwei Wang's avatar
    gpio: mxc: add runtime pm support · 3283d820
    Shenwei Wang authored
    Add runtime PM support and allow the GPIO controller to enter
    into runtime suspend automatically when not in use to save power.
    However, it will automatically resume and enable clocks when a
    GPIO or IRQ is requested.
    
    While putting the GPIO module itself into power saving mode may not
    have an obvious impact on current dissipation, the function is necessary
    because the GPIO module disables its clock when idle. This enables the
    system an opportunity to power off the parent subsystem, and this conserves
    more power. The typical i.MX8 SoC features up to 8 GPIO controllers, but
    most of the controllers often remain unused.
    Signed-off-by: default avatarShenwei Wang <shenwei.wang@nxp.com>
    Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
    3283d820
gpio-mxc.c 18 KB