Lines Matching refs:gate
938 static void __clk_enable(const struct stm32mp1_clk_gate *gate) in __clk_enable() argument
941 uint32_t bit = BIT(gate->bit); in __clk_enable()
943 if (gate->set_clr) in __clk_enable()
944 io_write32(base + gate->offset, bit); in __clk_enable()
946 io_setbits32_stm32shregs(base + gate->offset, bit); in __clk_enable()
948 FMSG("Clock %u has been enabled", gate->clock_id); in __clk_enable()
951 static void __clk_disable(const struct stm32mp1_clk_gate *gate) in __clk_disable() argument
954 uint32_t bit = BIT(gate->bit); in __clk_disable()
956 if (gate->set_clr) in __clk_disable()
957 io_write32(base + gate->offset + RCC_MP_ENCLRR_OFFSET, bit); in __clk_disable()
959 io_clrbits32_stm32shregs(base + gate->offset, bit); in __clk_disable()
961 FMSG("Clock %u has been disabled", gate->clock_id); in __clk_disable()