Home | History | Annotate | Download | only in amlogic

Lines Matching defs:sc_clkfreq

107 	u_int			sc_clkfreq;
385 u_int div = howmany(rate, sc->sc_clkfreq) - FILTER_DELAY;
413 if (sc->sc_clkfreq <= 100000) {
414 divh = howmany(rate, sc->sc_clkfreq);
418 divh = howmany(rate * 2, sc->sc_clkfreq * 5) - FILTER_DELAY;
419 divl = howmany(rate * 3, sc->sc_clkfreq * 5 * 2);
473 if (of_getprop_uint32(phandle, "clock-frequency", &sc->sc_clkfreq)) {
474 sc->sc_clkfreq = 100000;
476 if (sc->sc_clkfreq < 100000) {
477 sc->sc_clkfreq = 100000;
478 } else if (sc->sc_clkfreq > 400000) {
479 sc->sc_clkfreq = 400000;
484 aprint_normal(": Meson I2C (%u Hz)\n", sc->sc_clkfreq);