diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-24 02:17:02 -0400 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2015-07-06 12:36:31 -0400 |
commit | 16a624a9c81814cc2f1353eff2e502430c3fa79a (patch) | |
tree | 3c96296333870a05928a846967084de73e1446fd /include/linux/soc | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) |
soc: mediatek: Add infracfg misc driver support
This adds support for some miscellaneous bits of the infracfg controller.
The mtk_infracfg_set/clear_bus_protection functions are necessary for
the scpsys power domain driver to handle the bus protection bits which
are contained in the infacfg register space.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'include/linux/soc')
-rw-r--r-- | include/linux/soc/mediatek/infracfg.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/soc/mediatek/infracfg.h b/include/linux/soc/mediatek/infracfg.h new file mode 100644 index 000000000000..a5714e93fb34 --- /dev/null +++ b/include/linux/soc/mediatek/infracfg.h | |||
@@ -0,0 +1,26 @@ | |||
1 | #ifndef __SOC_MEDIATEK_INFRACFG_H | ||
2 | #define __SOC_MEDIATEK_INFRACFG_H | ||
3 | |||
4 | #define MT8173_TOP_AXI_PROT_EN_MCI_M2 BIT(0) | ||
5 | #define MT8173_TOP_AXI_PROT_EN_MM_M0 BIT(1) | ||
6 | #define MT8173_TOP_AXI_PROT_EN_MM_M1 BIT(2) | ||
7 | #define MT8173_TOP_AXI_PROT_EN_MMAPB_S BIT(6) | ||
8 | #define MT8173_TOP_AXI_PROT_EN_L2C_M2 BIT(9) | ||
9 | #define MT8173_TOP_AXI_PROT_EN_L2SS_SMI BIT(11) | ||
10 | #define MT8173_TOP_AXI_PROT_EN_L2SS_ADD BIT(12) | ||
11 | #define MT8173_TOP_AXI_PROT_EN_CCI_M2 BIT(13) | ||
12 | #define MT8173_TOP_AXI_PROT_EN_MFG_S BIT(14) | ||
13 | #define MT8173_TOP_AXI_PROT_EN_PERI_M0 BIT(15) | ||
14 | #define MT8173_TOP_AXI_PROT_EN_PERI_M1 BIT(16) | ||
15 | #define MT8173_TOP_AXI_PROT_EN_DEBUGSYS BIT(17) | ||
16 | #define MT8173_TOP_AXI_PROT_EN_CQ_DMA BIT(18) | ||
17 | #define MT8173_TOP_AXI_PROT_EN_GCPU BIT(19) | ||
18 | #define MT8173_TOP_AXI_PROT_EN_IOMMU BIT(20) | ||
19 | #define MT8173_TOP_AXI_PROT_EN_MFG_M0 BIT(21) | ||
20 | #define MT8173_TOP_AXI_PROT_EN_MFG_M1 BIT(22) | ||
21 | #define MT8173_TOP_AXI_PROT_EN_MFG_SNOOP_OUT BIT(23) | ||
22 | |||
23 | int mtk_infracfg_set_bus_protection(struct regmap *infracfg, u32 mask); | ||
24 | int mtk_infracfg_clear_bus_protection(struct regmap *infracfg, u32 mask); | ||
25 | |||
26 | #endif /* __SOC_MEDIATEK_INFRACFG_H */ | ||