Searched refs:brgfreq (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/arch/powerpc/sysdev/ |
D | fsl_soc.c | 100 static u32 brgfreq = -1; in get_brgfreq() local 103 if (brgfreq != -1) in get_brgfreq() 104 return brgfreq; in get_brgfreq() 108 of_property_read_u32(node, "clock-frequency", &brgfreq); in get_brgfreq() 110 return brgfreq; in get_brgfreq() 121 of_property_read_u32(node, "brg-frequency", &brgfreq); in get_brgfreq() 122 if (brgfreq == -1 || !brgfreq) in get_brgfreq() 124 &brgfreq)) in get_brgfreq() 125 brgfreq /= 2; in get_brgfreq() 129 return brgfreq; in get_brgfreq()
|
/Linux-v6.1/arch/powerpc/boot/ |
D | pq2.c | 29 u32 *timebase, u32 *brgfreq) in pq2_get_clocks() argument 57 if (brgfreq) in pq2_get_clocks() 58 *brgfreq = mainclk / (1 << ((dfbrg + 1) * 2)); in pq2_get_clocks() 75 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq) in pq2_set_clocks() argument 87 setprop(node, "clock-frequency", &brgfreq, 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()
|
D | pq2.h | 8 u32 *timebase, u32 *brgfreq); 9 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq);
|