Lines Matching +full:mt8173 +full:- +full:infracfg
1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <dt-bindings/clock/mt8173-clk.h>
11 #include "clk-cpumux.h"
12 #include "clk-gate.h"
13 #include "clk-mtk.h"
74 { .compatible = "mediatek,mt8173-infracfg" },
88 infra_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in clk_mt8173_infra_init_early()
95 CLK_OF_DECLARE_DRIVER(mtk_infrasys, "mediatek,mt8173-infracfg",
100 struct device_node *node = pdev->dev.of_node; in clk_mt8173_infracfg_probe()
106 return -ENOMEM; in clk_mt8173_infracfg_probe()
109 if (infra_clk_data->hws[i] == ERR_PTR(-EPROBE_DEFER)) in clk_mt8173_infracfg_probe()
110 infra_clk_data->hws[i] = ERR_PTR(-ENOENT); in clk_mt8173_infracfg_probe()
113 r = mtk_clk_register_gates(&pdev->dev, node, infra_gates, in clk_mt8173_infracfg_probe()
118 r = mtk_clk_register_cpumuxes(&pdev->dev, node, cpu_muxes, in clk_mt8173_infracfg_probe()
127 r = mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc); in clk_mt8173_infracfg_probe()
144 struct device_node *node = pdev->dev.of_node; in clk_mt8173_infracfg_remove()
155 .name = "clk-mt8173-infracfg",
163 MODULE_DESCRIPTION("MediaTek MT8173 infracfg clocks driver");