PM / devfreq: rockchip_dmc: change frequency according to system status
authorFinley Xiao <finley.xiao@rock-chips.com>
Tue, 23 May 2017 03:47:42 +0000 (11:47 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Mon, 26 Jun 2017 09:58:04 +0000 (17:58 +0800)
commit237df2a04bc178cd5579c771a922d0f9c014a42b
treeaf9364cdd5072240ab2b3befea2b3d001135eb08
parent7e1f848e15a8a5b9fb395a775176a057df38ad52
PM / devfreq: rockchip_dmc: change frequency according to system status

This registers a reboot notifier, it will change ddr frequency to a
specified value when reboot system.

This registers a fb notifier, it will change ddr frequency to a specified
value and enable ddr self-reflash mode when early suspend.

This adds a new sysfs node system_status, so that different system status
can change ddr frequency through the node.

Change-Id: Ib5d7d5bd8ee82c29f6f260a3d2ffcb829dde2003
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
drivers/devfreq/rockchip_dmc.c