On Thu, 07 Sep 2017, rui_f...@realsil.com.cn wrote:

> From: Rui Feng <rui_f...@realsil.com.cn>
> 
> 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: Rui Feng <rui_f...@realsil.com.cn>
> ---
>  drivers/mfd/rts5249.c        | 155 
> ++++++++++++++++++++++++++++++++++++++++++-
>  drivers/mfd/rtsx_pcr.c       | 142 +++++++++++++++++++++++++++++++++++++--
>  drivers/mfd/rtsx_pcr.h       |  14 ++++
>  include/linux/mfd/rtsx_pci.h |  84 +++++++++++++++++++++++
>  4 files changed, 389 insertions(+), 6 deletions(-)

Applied for v4.15, thanks.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Reply via email to