Lines Matching full:baudclk
49 clk_t baudclk; member
124 snps_get_clocks(device_t dev, clk_t *baudclk, clk_t *apb_pclk) in snps_get_clocks() argument
127 *baudclk = NULL; in snps_get_clocks()
130 /* Baud clock is either named "baudclk", or there is a single in snps_get_clocks()
133 if (clk_get_by_ofw_name(dev, 0, "baudclk", baudclk) != 0 && in snps_get_clocks()
134 clk_get_by_ofw_index(dev, 0, 0, baudclk) != 0) in snps_get_clocks()
152 clk_t baudclk, apb_pclk; in snps_probe() local
183 if (snps_get_clocks(dev, &baudclk, &apb_pclk) == 0) { in snps_probe()
184 error = clk_enable(baudclk); in snps_probe()
199 error = clk_get_freq(baudclk, &freq); in snps_probe()
219 sc->baudclk = baudclk; in snps_probe()
246 clk_t baudclk, apb_pclk; in snps_detach() local
251 baudclk = sc->baudclk; in snps_detach()
274 if (baudclk != NULL) { in snps_detach()
275 error = clk_release(baudclk); in snps_detach()