Home
last modified time | relevance | path

Searched refs:brgfreq (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/arch/powerpc/sysdev/
Dfsl_soc.c86 static u32 brgfreq = -1; in get_brgfreq() local
89 if (brgfreq != -1) in get_brgfreq()
90 return brgfreq; in get_brgfreq()
94 of_property_read_u32(node, "clock-frequency", &brgfreq); in get_brgfreq()
96 return brgfreq; in get_brgfreq()
107 of_property_read_u32(node, "brg-frequency", &brgfreq); in get_brgfreq()
108 if (brgfreq == -1 || !brgfreq) in get_brgfreq()
110 &brgfreq)) in get_brgfreq()
111 brgfreq /= 2; in get_brgfreq()
115 return brgfreq; in get_brgfreq()
/linux-6.6.21/arch/powerpc/boot/
Dpq2.c29 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()
Dpq2.h8 u32 *timebase, u32 *brgfreq);
9 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq);