Lines Matching +full:switching +full:- +full:freq
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 Dmitry Eremin-Solenikov
4 * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org>
5 * and Markus Demleitner <msdemlei@cl.uni-heidelberg.de>
40 #define PCR_FREQ_REQ_VALID 0x00010000U /* freq request valid */
67 * the various frequencies, retrieved from the device-tree
75 * SCOM based frequency switching for 970FX rev3
164 int rc = -ENODEV; in maple_cpufreq_init()
189 /* Look for the powertune data in the device-tree */ in maple_cpufreq_init()
191 * On Maple this property is provided by PIBS in dual-processor config, in maple_cpufreq_init()
195 maple_pmode_data = of_get_property(cpunode, "power-mode-data", &psize); in maple_cpufreq_init()
197 DBG("No power-mode-data !\n"); in maple_cpufreq_init()
200 maple_pmode_max = psize / sizeof(u32) - 1; in maple_cpufreq_init()
203 * From what I see, clock-frequency is always the maximal frequency. in maple_cpufreq_init()
205 * with powertune steps for now. We also only implement full freq and in maple_cpufreq_init()
206 * half freq in this version. So far, I haven't yet seen a machine in maple_cpufreq_init()
209 valp = of_get_property(cpunode, "clock-frequency", NULL); in maple_cpufreq_init()
221 maple_pmode_cur = -1; in maple_cpufreq_init()