Searched refs:brgfreq (Results 1 – 3 of 3) sorted by relevance
/arch/powerpc/sysdev/ |
D | fsl_soc.c | 101 static u32 brgfreq = -1; in get_brgfreq() local 104 if (brgfreq != -1) in get_brgfreq() 105 return brgfreq; in get_brgfreq() 109 of_property_read_u32(node, "clock-frequency", &brgfreq); in get_brgfreq() 111 return brgfreq; in get_brgfreq() 122 of_property_read_u32(node, "brg-frequency", &brgfreq); in get_brgfreq() 123 if (brgfreq == -1 || !brgfreq) in get_brgfreq() 125 &brgfreq)) in get_brgfreq() 126 brgfreq /= 2; in get_brgfreq() 130 return brgfreq; in get_brgfreq()
|
/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);
|