diff options
author | Matthias Brugger <mbrugger@suse.com> | 2020-10-30 12:36:14 +0100 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2020-11-27 12:04:43 +0100 |
commit | 123e8b4fd0cd9999dd384bef1d7417da68fde962 (patch) | |
tree | 133d013a3454d4b54220a4796f927785a8a02185 /drivers/soc/mediatek/mtk-pm-domains.h | |
parent | soc: mediatek: pm-domains: Add extra sram control (diff) | |
download | linux-123e8b4fd0cd9999dd384bef1d7417da68fde962.tar.xz linux-123e8b4fd0cd9999dd384bef1d7417da68fde962.zip |
soc: mediatek: pm-domains: Add subsystem clocks
For the bus protection operations, some subsystem clocks need to be enabled
before releasing the protection. This patch identifies the subsystem clocks
by it's name.
Suggested-by: Weiyi Lu <weiyi.lu@mediatek.com>
[Adapted the patch to the mtk-pm-domains driver]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20201030113622.201188-9-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers/soc/mediatek/mtk-pm-domains.h')
-rw-r--r-- | drivers/soc/mediatek/mtk-pm-domains.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h index f190a0d9e592..20df5689739b 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.h +++ b/drivers/soc/mediatek/mtk-pm-domains.h @@ -63,6 +63,8 @@ struct scpsys_bus_prot_data { bool bus_prot_reg_update; }; +#define MAX_SUBSYS_CLKS 10 + /** * struct scpsys_domain_data - scp domain data for power on/off flow * @sta_mask: The mask for power on/off status bit. |