[PATCH v2 1/3] clk: mediatek: add MUX_CLR_SET macro
Stephen Boyd
sboyd at kernel.org
Tue Apr 28 19:06:14 PDT 2026
Quoting Daniel Golle (2026-03-25 22:09:35)
> Some MediaTek SoCs (e.g. MT7988) define infra muxes that have neither
> a clock gate nor an update register.
>
> Add a MUX_CLR_SET convenience macro that takes only the mux register
> offsets, bit shift, and width, hardcoding upd_ofs = 0 and
> upd_shift = -1 so callers cannot accidentally pass bogus sentinel
> values to wrongly-typed fields.
>
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
> ---
Applied to clk-next
More information about the Linux-mediatek
mailing list