Lines Matching refs:baudclk
57 clk_t baudclk;
136 snps_get_clocks(device_t dev, clk_t *baudclk, clk_t *apb_pclk)
139 *baudclk = NULL;
142 /* Baud clock is either named "baudclk", or there is a single
145 if (clk_get_by_ofw_name(dev, 0, "baudclk", baudclk) != 0 &&
146 clk_get_by_ofw_index(dev, 0, 0, baudclk) != 0)
166 clk_t baudclk, apb_pclk;
199 if (snps_get_clocks(dev, &baudclk, &apb_pclk) == 0) {
200 error = clk_enable(baudclk);
215 error = clk_get_freq(baudclk, &freq);
237 sc->baudclk = baudclk;
250 clk_t baudclk, apb_pclk;
257 baudclk = sc->baudclk;
282 if (baudclk != NULL) {
283 error = clk_release(baudclk);