Searched refs:top_clk_data (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/drivers/clk/mediatek/ |
D | clk-mt8195-topckgen.c | 1240 struct clk_hw_onecell_data *top_clk_data; in clk_mt8195_topck_probe() local 1246 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8195_topck_probe() 1247 if (!top_clk_data) in clk_mt8195_topck_probe() 1257 top_clk_data); in clk_mt8195_topck_probe() 1261 r = mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8195_topck_probe() 1266 &mt8195_clk_lock, top_clk_data); in clk_mt8195_topck_probe() 1277 top_clk_data->hws[CLK_TOP_MFG_CK_FAST_REF] = hw; in clk_mt8195_topck_probe() 1280 top_clk_data->hws[CLK_TOP_MFG_CK_FAST_REF]->clk); in clk_mt8195_topck_probe() 1285 &mt8195_clk_lock, top_clk_data); in clk_mt8195_topck_probe() 1289 r = mtk_clk_register_gates(node, top_clks, ARRAY_SIZE(top_clks), top_clk_data); in clk_mt8195_topck_probe() [all …]
|
D | clk-mt2712.c | 1298 static struct clk_hw_onecell_data *top_clk_data; variable 1304 if (!top_clk_data) { in clk_mt2712_top_init_early() 1305 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt2712_top_init_early() 1308 top_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in clk_mt2712_top_init_early() 1312 top_clk_data); in clk_mt2712_top_init_early() 1314 r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, top_clk_data); in clk_mt2712_top_init_early() 1335 if (!top_clk_data) { in clk_mt2712_top_probe() 1336 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt2712_top_probe() 1339 if (top_clk_data->hws[i] == ERR_PTR(-EPROBE_DEFER)) in clk_mt2712_top_probe() 1340 top_clk_data->hws[i] = ERR_PTR(-ENOENT); in clk_mt2712_top_probe() [all …]
|
D | clk-mt8183.c | 1181 static struct clk_hw_onecell_data *top_clk_data; variable 1187 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8183_top_init_early() 1190 top_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in clk_mt8183_top_init_early() 1193 top_clk_data); in clk_mt8183_top_init_early() 1195 of_clk_add_hw_provider(node, of_clk_hw_onecell_get, top_clk_data); in clk_mt8183_top_init_early() 1234 top_clk_data); in clk_mt8183_top_probe() 1237 top_clk_data); in clk_mt8183_top_probe() 1239 mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8183_top_probe() 1242 node, &mt8183_clk_lock, top_clk_data); in clk_mt8183_top_probe() 1245 base, &mt8183_clk_lock, top_clk_data); in clk_mt8183_top_probe() [all …]
|
D | clk-mt8192.c | 1050 static struct clk_hw_onecell_data *top_clk_data; variable 1056 top_clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); in clk_mt8192_top_init_early() 1057 if (!top_clk_data) in clk_mt8192_top_init_early() 1061 top_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in clk_mt8192_top_init_early() 1063 mtk_clk_register_factors(top_early_divs, ARRAY_SIZE(top_early_divs), top_clk_data); in clk_mt8192_top_init_early() 1065 of_clk_add_hw_provider(node, of_clk_hw_onecell_get, top_clk_data); in clk_mt8192_top_init_early() 1103 mtk_clk_register_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), top_clk_data); in clk_mt8192_top_probe() 1104 mtk_clk_register_factors(top_early_divs, ARRAY_SIZE(top_early_divs), top_clk_data); in clk_mt8192_top_probe() 1105 mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); in clk_mt8192_top_probe() 1107 top_clk_data); in clk_mt8192_top_probe() [all …]
|