• Rui Feng's avatar
    mfd: rts5249: Add support for RTS5250S power saving · 8275b77a
    Rui Feng authored
    Enable power saving for RTS5250S as following steps:
    1.Set 0xFE58 to enable clock power management.
    2.Check cfg space whether support L1SS or not.
    3.If support L1SS, set 0xFF03 to free clkreq.
    4.When entering idle status, enable aspm
      and set parameters for L1SS and LTR.
    5.Wnen entering run status, disable aspm
      and set parameters for L1SS and LTR.
    If entering L1SS mode successfully,
    electric current will be below 2mA.
    Signed-off-by: default avatarRui Feng <rui_feng@realsil.com.cn>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    8275b77a
rts5249.c 21 KB