Lines Matching defs:clock
119 /* Baud clock is either named "baudclk", or there is a single
120 * unnamed clock.
126 /* APB peripheral clock is optional */
139 uint32_t shift, clock;
162 if (OF_getencprop(node, "clock-frequency", &clock, sizeof(clock)) <= 0)
163 clock = 0;
177 device_printf(dev, "cannot enable baud clock\n");
184 "cannot enable peripheral clock\n");
189 if (clock == 0) {
195 clock = (uint32_t)freq;
200 if (bootverbose && clock == 0)
203 error = uart_bus_probe(dev, (int)shift, (int)clock, 0, 0);
211 /* Store clock and reset handles for detach */
253 device_printf(dev, "cannot release peripheral clock\n");
260 device_printf(dev, "cannot release baud clock\n");