Searched refs:sysfreq (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/arch/powerpc/boot/ |
H A D | pq2.c | 28 int pq2_get_clocks(u32 crystal, u32 *sysfreq, u32 *corefreq, in pq2_get_clocks() argument 53 if (sysfreq) in pq2_get_clocks() 54 *sysfreq = mainclk / 2; in pq2_get_clocks() 75 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq) in pq2_set_clocks() argument 79 dt_fixup_cpu_clocks(corefreq, timebase, sysfreq); in pq2_set_clocks() 83 setprop(node, "clock-frequency", &sysfreq, 4); in pq2_set_clocks() 92 u32 sysfreq, corefreq, timebase, brgfreq; in pq2_fixup_clocks() local 94 if (!pq2_get_clocks(crystal, &sysfreq, &corefreq, &timebase, &brgfreq)) in pq2_fixup_clocks() 97 pq2_set_clocks(sysfreq, corefreq, timebase, brgfreq); in pq2_fixup_clocks()
|
H A D | cuboot-52xx.c | 25 u32 sysfreq; in platform_fixups() local 48 sysfreq = bd.bi_busfreq * div; in platform_fixups() 49 setprop(soc, "system-frequency", &sysfreq, sizeof(sysfreq)); in platform_fixups()
|
H A D | pq2.h | 7 int pq2_get_clocks(u32 crystal, u32 *sysfreq, u32 *corefreq, 9 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq);
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | fsl_soc.c | 63 static u32 sysfreq = -1; in fsl_get_sys_freq() local 66 if (sysfreq != -1) in fsl_get_sys_freq() 67 return sysfreq; in fsl_get_sys_freq() 73 of_property_read_u32(soc, "clock-frequency", &sysfreq); in fsl_get_sys_freq() 74 if (sysfreq == -1 || !sysfreq) in fsl_get_sys_freq() 75 of_property_read_u32(soc, "bus-frequency", &sysfreq); in fsl_get_sys_freq() 78 return sysfreq; in fsl_get_sys_freq()
|
/openbmc/linux/drivers/cpufreq/ |
H A D | qoriq-cpufreq.c | 44 u32 sysfreq; in get_bus_freq() local 51 ret = of_property_read_u32(soc, "bus-frequency", &sysfreq); in get_bus_freq() 54 return sysfreq; in get_bus_freq()
|