Lines Matching +full:clear +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0-only
17 * mtk_infracfg_set_bus_protection - enable bus protection
19 * @mask: The mask containing the protection bits to be enabled.
28 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()
36 mask); in mtk_infracfg_set_bus_protection()
38 regmap_write(infracfg, INFRA_TOPAXI_PROTECTEN_SET, mask); in mtk_infracfg_set_bus_protection()
41 val, (val & mask) == mask, in mtk_infracfg_set_bus_protection()
48 * mtk_infracfg_clear_bus_protection - disable bus protection
50 * @mask: The mask containing the protection bits to be disabled.
51 * @reg_update: The boolean flag determines to clear the protection bits
53 * by regmap_write with clear register(PROTECTEN_CLR).
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()
71 val, !(val & mask), in mtk_infracfg_clear_bus_protection()
87 infracfg = syscon_regmap_lookup_by_compatible("mediatek,mt8192-infracfg"); in mtk_infracfg_init()