Lines Matching defs:clock
106 /* Baud clock is either named "baudclk", or there is a single
107 * unnamed clock.
113 /* APB peripheral clock is optional */
126 uint32_t shift, iowidth, clock;
151 if (OF_getencprop(node, "clock-frequency", &clock, sizeof(clock)) <= 0)
152 clock = 0;
166 device_printf(dev, "cannot enable baud clock\n");
173 "cannot enable peripheral clock\n");
178 if (clock == 0) {
184 clock = (uint32_t)freq;
189 if (bootverbose && clock == 0)
192 error = uart_bus_probe(dev, (int)shift, (int)iowidth, (int)clock, 0, 0, UART_F_BUSY_DETECT);
200 /* Store clock and reset handles for detach */
242 device_printf(dev, "cannot release peripheral clock\n");
249 device_printf(dev, "cannot release baud clock\n");