Lines Matching +full:clock +full:- +full:div
2 * Old U-boot compatibility for Acadia
26 #define CPR_PERD0_SPIDV_MASK 0x000F0000 /* SPI Clock Divider */
34 #define PRIMAD_CPUDV_MASK 0x0F000000 /* CPU Clock Divisor Mask */
35 #define PRIMAD_PLBDV_MASK 0x000F0000 /* PLB Clock Divisor Mask */
36 #define PRIMAD_OPBDV_MASK 0x00000F00 /* OPB Clock Divisor Mask */
37 #define PRIMAD_EBCDV_MASK 0x0000000F /* EBC Clock Divisor Mask */
49 unsigned long div; /* total divisor udiv * bdiv */ in get_clocks() local
113 /* There is a bug in U-Boot that prevents us from using in get_clocks()
114 * bd.bi_opbfreq because U-Boot doesn't populate it for in get_clocks()
126 if (getprop(np, "current-speed", &baud, sizeof(baud)) != sizeof(baud)) in get_clocks()
127 fatal("no current-speed property\n\r"); in get_clocks()
130 div = plloutb / (16 * baud); /* total divisor */ in get_clocks()
134 /* i is the test udiv value -- start with the largest in get_clocks()
135 * possible (256) to minimize serial clock and constrain in get_clocks()
138 for (i = 256; i > umin; i--) { in get_clocks()
139 ibdiv = div / i; in get_clocks()
141 idiff = (est > div) ? (est-div) : (div-est); in get_clocks()