Home
last modified time | relevance | path

Searched refs:cpumux (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/clk/mediatek/
Dclk-cpumux.c60 struct mtk_clk_cpumux *cpumux; in mtk_clk_register_cpumux() local
64 cpumux = kzalloc(sizeof(*cpumux), GFP_KERNEL); in mtk_clk_register_cpumux()
65 if (!cpumux) in mtk_clk_register_cpumux()
74 cpumux->reg = mux->mux_reg; in mtk_clk_register_cpumux()
75 cpumux->shift = mux->mux_shift; in mtk_clk_register_cpumux()
76 cpumux->mask = BIT(mux->mux_width) - 1; in mtk_clk_register_cpumux()
77 cpumux->regmap = regmap; in mtk_clk_register_cpumux()
78 cpumux->hw.init = &init; in mtk_clk_register_cpumux()
80 clk = clk_register(NULL, &cpumux->hw); in mtk_clk_register_cpumux()
82 kfree(cpumux); in mtk_clk_register_cpumux()
DMakefile2 obj-$(CONFIG_COMMON_CLK_MEDIATEK) += clk-mtk.o clk-pll.o clk-gate.o clk-apmixed.o clk-cpumux.o rese…