Home
last modified time | relevance | path

Searched refs:infracfg (Results 1 – 9 of 9) sorted by relevance

/drivers/soc/mediatek/
Dmtk-infracfg.c28 int mtk_infracfg_set_bus_protection(struct regmap *infracfg, u32 mask, in mtk_infracfg_set_bus_protection() argument
35 regmap_update_bits(infracfg, INFRA_TOPAXI_PROTECTEN, mask, in mtk_infracfg_set_bus_protection()
38 regmap_write(infracfg, INFRA_TOPAXI_PROTECTEN_SET, mask); in mtk_infracfg_set_bus_protection()
40 ret = regmap_read_poll_timeout(infracfg, INFRA_TOPAXI_PROTECTSTA1, in mtk_infracfg_set_bus_protection()
59 int mtk_infracfg_clear_bus_protection(struct regmap *infracfg, u32 mask, in mtk_infracfg_clear_bus_protection() argument
66 regmap_update_bits(infracfg, INFRA_TOPAXI_PROTECTEN, mask, 0); in mtk_infracfg_clear_bus_protection()
68 regmap_write(infracfg, INFRA_TOPAXI_PROTECTEN_CLR, mask); in mtk_infracfg_clear_bus_protection()
70 ret = regmap_read_poll_timeout(infracfg, INFRA_TOPAXI_PROTECTSTA1, in mtk_infracfg_clear_bus_protection()
79 struct regmap *infracfg; in mtk_infracfg_init() local
87 infracfg = syscon_regmap_lookup_by_compatible("mediatek,mt8192-infracfg"); in mtk_infracfg_init()
[all …]
DMakefile4 obj-$(CONFIG_MTK_INFRACFG) += mtk-infracfg.o
/drivers/net/wireless/mediatek/mt76/mt7615/
Dsoc.c23 dev->infracfg = syscon_regmap_lookup_by_phandle(np, "mediatek,infracfg"); in mt7622_wmac_init()
24 if (IS_ERR(dev->infracfg)) { in mt7622_wmac_init()
26 return PTR_ERR(dev->infracfg); in mt7622_wmac_init()
Dmt7615.h255 struct regmap *infracfg; member
Dmcu.c235 regmap_update_bits(dev->infracfg, MT_INFRACFG_MISC, in mt7622_trigger_hif_int()
/drivers/clk/mediatek/
DMakefile21 obj-$(CONFIG_COMMON_CLK_MT6795) += clk-mt6795-apmixedsys.o clk-mt6795-infracfg.o \
50 clk-mt7622-infracfg.o
59 obj-$(CONFIG_COMMON_CLK_MT7981) += clk-mt7981-infracfg.o
63 obj-$(CONFIG_COMMON_CLK_MT7986) += clk-mt7986-infracfg.o
72 obj-$(CONFIG_COMMON_CLK_MT8173) += clk-mt8173-apmixedsys.o clk-mt8173-infracfg.o \
/drivers/pmdomain/mediatek/
Dmtk-pm-domains.c47 struct regmap *infracfg; member
150 ret = _scpsys_bus_protect_enable(pd->data->bp_infracfg, pd->infracfg); in scpsys_bus_protect_enable()
194 return _scpsys_bus_protect_disable(pd->data->bp_infracfg, pd->infracfg); in scpsys_bus_protect_disable()
364 pd->infracfg = syscon_regmap_lookup_by_phandle_optional(node, "mediatek,infracfg"); in scpsys_add_one_domain()
365 if (IS_ERR(pd->infracfg)) in scpsys_add_one_domain()
366 return ERR_CAST(pd->infracfg); in scpsys_add_one_domain()
Dmtk-scpsys.c153 struct regmap *infracfg; member
286 return mtk_infracfg_set_bus_protection(scp->infracfg, in scpsys_bus_protect_enable()
298 return mtk_infracfg_clear_bus_protection(scp->infracfg, in scpsys_bus_protect_disable()
461 scp->infracfg = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in init_scp()
463 if (IS_ERR(scp->infracfg)) { in init_scp()
465 PTR_ERR(scp->infracfg)); in init_scp()
466 return ERR_CAST(scp->infracfg); in init_scp()
/drivers/iommu/
Dmtk_iommu.c1236 struct regmap *infracfg; in mtk_iommu_probe() local
1257 infracfg = syscon_regmap_lookup_by_phandle(dev->of_node, "mediatek,infracfg"); in mtk_iommu_probe()
1258 if (IS_ERR(infracfg)) { in mtk_iommu_probe()
1278 infracfg = syscon_regmap_lookup_by_compatible(p); in mtk_iommu_probe()
1279 if (IS_ERR(infracfg)) in mtk_iommu_probe()
1280 return PTR_ERR(infracfg); in mtk_iommu_probe()
1283 ret = regmap_read(infracfg, REG_INFRA_MISC, &val); in mtk_iommu_probe()