Lines Matching +full:mt2701 +full:- +full:pericfg

1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/clk-provider.h>
13 #include "clk-cpumux.h"
14 #include "clk-gate.h"
15 #include "clk-mtk.h"
16 #include "clk-pll.h"
18 #include <dt-bindings/clock/mt2701-clk.h>
671 struct device_node *node = pdev->dev.of_node; in mtk_topckgen_init()
674 base = devm_ioremap_resource(&pdev->dev, res); in mtk_topckgen_init()
748 /* pericfg */
766 infra_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in mtk_infrasys_init_early()
781 CLK_OF_DECLARE_DRIVER(mtk_infra, "mediatek,mt2701-infracfg",
787 struct device_node *node = pdev->dev.of_node; in mtk_infrasys_init()
793 if (infra_clk_data->hws[i] == ERR_PTR(-EPROBE_DEFER)) in mtk_infrasys_init()
794 infra_clk_data->hws[i] = ERR_PTR(-ENOENT); in mtk_infrasys_init()
808 mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc[0]); in mtk_infrasys_init()
912 struct device_node *node = pdev->dev.of_node; in mtk_pericfg_init()
915 base = devm_ioremap_resource(&pdev->dev, res); in mtk_pericfg_init()
931 mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc[1]); in mtk_pericfg_init()
993 struct device_node *node = pdev->dev.of_node; in mtk_apmixedsys_init()
997 return -ENOMEM; in mtk_apmixedsys_init()
1009 .compatible = "mediatek,mt2701-topckgen",
1012 .compatible = "mediatek,mt2701-infracfg",
1015 .compatible = "mediatek,mt2701-pericfg",
1018 .compatible = "mediatek,mt2701-apmixedsys",
1030 clk_init = of_device_get_match_data(&pdev->dev); in clk_mt2701_probe()
1032 return -EINVAL; in clk_mt2701_probe()
1036 dev_err(&pdev->dev, in clk_mt2701_probe()
1038 pdev->name, r); in clk_mt2701_probe()
1046 .name = "clk-mt2701",