clk: starfive: Add funtions of saving and restoring data about SYS, AON and STG
authorXingyu Wu <xingyu.wu@starfivetech.com>
Fri, 6 Jan 2023 07:12:23 +0000 (15:12 +0800)
committerXingyu Wu <xingyu.wu@starfivetech.com>
Wed, 11 Jan 2023 10:04:41 +0000 (18:04 +0800)
commitcec75d0c4bdb2441b745900e9b9ec6d8fa2752eb
tree5628d9f261120ed6da0083212b93daa24f2b95d8
parent9d16d3753da57c29d8744a11b66ec7f106b0f807
clk: starfive: Add funtions of saving and restoring data about SYS, AON and STG

Add 'save_context' ops to save register value of clock and
'restore_context' ops to restore the value to register.
The ops only suitable for SYS, AON and STG clock tree not ISP and VOUT.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
drivers/clk/starfive/clk-starfive-jh7110-gen.c
drivers/clk/starfive/clk-starfive-jh7110.h [changed mode: 0755->0644]