Lines Matching +full:imx8m +full:- +full:noc
1 // SPDX-License-Identifier: GPL-2.0
43 *freq = clk_get_rate(priv->clk); in imx_bus_get_cur_freq()
53 stat->busy_time = 0; in imx_bus_get_dev_status()
54 stat->total_time = 0; in imx_bus_get_dev_status()
55 stat->current_frequency = clk_get_rate(priv->clk); in imx_bus_get_dev_status()
65 platform_device_unregister(priv->icc_pdev); in imx_bus_exit()
68 /* imx_bus_init_icc() - register matching icc provider if required */
74 if (!of_get_property(dev->of_node, "#interconnect-cells", 0)) in imx_bus_init_icc()
87 priv->icc_pdev = platform_device_register_data( in imx_bus_init_icc()
88 dev, icc_driver_name, -1, NULL, 0); in imx_bus_init_icc()
89 if (IS_ERR(priv->icc_pdev)) { in imx_bus_init_icc()
91 icc_driver_name, PTR_ERR(priv->icc_pdev)); in imx_bus_init_icc()
92 return PTR_ERR(priv->icc_pdev); in imx_bus_init_icc()
100 struct device *dev = &pdev->dev; in imx_bus_probe()
107 return -ENOMEM; in imx_bus_probe()
113 * or off and some peripheral side-buses might be off unless enabled by in imx_bus_probe()
118 priv->clk = devm_clk_get(dev, NULL); in imx_bus_probe()
119 if (IS_ERR(priv->clk)) { in imx_bus_probe()
120 ret = PTR_ERR(priv->clk); in imx_bus_probe()
132 priv->profile.polling_ms = 1000; in imx_bus_probe()
133 priv->profile.target = imx_bus_target; in imx_bus_probe()
134 priv->profile.get_dev_status = imx_bus_get_dev_status; in imx_bus_probe()
135 priv->profile.exit = imx_bus_exit; in imx_bus_probe()
136 priv->profile.get_cur_freq = imx_bus_get_cur_freq; in imx_bus_probe()
137 priv->profile.initial_freq = clk_get_rate(priv->clk); in imx_bus_probe()
139 priv->devfreq = devm_devfreq_add_device(dev, &priv->profile, in imx_bus_probe()
141 if (IS_ERR(priv->devfreq)) { in imx_bus_probe()
142 ret = PTR_ERR(priv->devfreq); in imx_bus_probe()
159 { .compatible = "fsl,imx8mq-noc", .data = "imx8mq-interconnect", },
160 { .compatible = "fsl,imx8mm-noc", .data = "imx8mm-interconnect", },
161 { .compatible = "fsl,imx8mn-noc", .data = "imx8mn-interconnect", },
162 { .compatible = "fsl,imx8m-noc", },
163 { .compatible = "fsl,imx8m-nic", },
171 .name = "imx-bus-devfreq",