Lines Matching refs:gate
953 static void __clk_enable(const struct stm32mp1_clk_gate *gate) in __clk_enable() argument
956 uint32_t bit = BIT(gate->bit); in __clk_enable()
958 if (gate->set_clr) in __clk_enable()
959 io_write32(base + gate->offset, bit); in __clk_enable()
961 io_setbits32_stm32shregs(base + gate->offset, bit); in __clk_enable()
963 FMSG("Clock %u has been enabled", gate->clock_id); in __clk_enable()
966 static void __clk_disable(const struct stm32mp1_clk_gate *gate) in __clk_disable() argument
969 uint32_t bit = BIT(gate->bit); in __clk_disable()
971 if (gate->set_clr) in __clk_disable()
972 io_write32(base + gate->offset + RCC_MP_ENCLRR_OFFSET, bit); in __clk_disable()
974 io_clrbits32_stm32shregs(base + gate->offset, bit); in __clk_disable()
976 FMSG("Clock %u has been disabled", gate->clock_id); in __clk_disable()