summaryrefslogtreecommitdiffstats
path: root/drivers/soc/mediatek/mtk-infracfg.c
diff options
context:
space:
mode:
authorMatthias Brugger <mbrugger@suse.com>2020-10-30 12:36:11 +0100
committerMatthias Brugger <matthias.bgg@gmail.com>2020-11-27 12:04:42 +0100
commit928296ea5da37838d7127de4b10f47cd97401b13 (patch)
treed82527227ad2f41557fc2c8a7a13748ea2934978 /drivers/soc/mediatek/mtk-infracfg.c
parent916d6d71ba56cfc19a0bfd8a0e181443a13cb865 (diff)
downloadlinux-928296ea5da37838d7127de4b10f47cd97401b13.tar.bz2
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>
Diffstat (limited to 'drivers/soc/mediatek/mtk-infracfg.c')
-rw-r--r--drivers/soc/mediatek/mtk-infracfg.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/soc/mediatek/mtk-infracfg.c b/drivers/soc/mediatek/mtk-infracfg.c
index 4a123796aad3..0590b68e0d78 100644
--- a/drivers/soc/mediatek/mtk-infracfg.c
+++ b/drivers/soc/mediatek/mtk-infracfg.c
@@ -12,11 +12,6 @@
#define MTK_POLL_DELAY_US 10
#define MTK_POLL_TIMEOUT (jiffies_to_usecs(HZ))
-#define INFRA_TOPAXI_PROTECTEN 0x0220
-#define INFRA_TOPAXI_PROTECTSTA1 0x0228
-#define INFRA_TOPAXI_PROTECTEN_SET 0x0260
-#define INFRA_TOPAXI_PROTECTEN_CLR 0x0264
-
/**
* mtk_infracfg_set_bus_protection - enable bus protection
* @infracfg: The infracfg regmap