soc: mediatek: pm_domains: Make bus protection generic
authorMatthias Brugger <mbrugger@suse.com>
Fri, 30 Oct 2020 11:36:11 +0000 (12:36 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 27 Nov 2020 11:04:42 +0000 (12:04 +0100)
commit928296ea5da37838d7127de4b10f47cd97401b13
treed82527227ad2f41557fc2c8a7a13748ea2934978
parent916d6d71ba56cfc19a0bfd8a0e181443a13cb865
soc: mediatek: pm_domains: Make bus protection generic

Bus protection is not exclusively done by calling the infracfg misc driver.
Make the calls for setting and clearing the bus protection generic so
that we can use other blocks for it as well.

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-6-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/Kconfig
drivers/soc/mediatek/mtk-infracfg.c
drivers/soc/mediatek/mtk-pm-domains.c
include/linux/soc/mediatek/infracfg.h