Lines Matching +full:cpufreq +full:- +full:hw
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Match running platform with pre-defined OPP values for CPUFreq
43 * struct sti_cpufreq_ddata - ST CPUFreq Driver Data
56 struct device_node *np = ddata.cpu->of_node; in sti_cpufreq_fetch_major()
83 struct device_node *np = dev->of_node; in sti_cpufreq_fetch_minor()
88 ret = of_property_read_u32_index(np, "st,syscfg-eng", in sti_cpufreq_fetch_minor()
154 struct device_node *np = dev->of_node; in sti_cpufreq_set_opp_info()
170 return -ENODEV; in sti_cpufreq_set_opp_info()
173 ret = of_property_read_u32_index(np, "st,syscfg-eng", in sti_cpufreq_set_opp_info()
176 dev_warn(dev, "Failed to read HW info offset from DT\n"); in sti_cpufreq_set_opp_info()
238 struct device_node *np = dev->of_node; in sti_cpufreq_fetch_syscon_registers()
246 ddata.syscfg_eng = syscon_regmap_lookup_by_phandle(np, "st,syscfg-eng"); in sti_cpufreq_fetch_syscon_registers()
248 dev_err(dev, "\"st,syscfg-eng\" not supplied\n"); in sti_cpufreq_fetch_syscon_registers()
262 return -ENODEV; in sti_cpufreq_init()
270 if (!of_get_property(ddata.cpu->of_node, "operating-points-v2", NULL)) { in sti_cpufreq_init()
271 dev_err(ddata.cpu, "OPP-v2 not supported\n"); in sti_cpufreq_init()
287 platform_device_register_simple("cpufreq-dt", -1, NULL, 0); in sti_cpufreq_init()
300 MODULE_DESCRIPTION("STMicroelectronics CPUFreq/OPP driver");