Lines Matching refs:baudclk
49 clk_t baudclk; member
134 snps_get_clocks(device_t dev, clk_t *baudclk, clk_t *apb_pclk) in snps_get_clocks() argument
137 *baudclk = NULL; in snps_get_clocks()
143 if (clk_get_by_ofw_name(dev, 0, "baudclk", baudclk) != 0 && in snps_get_clocks()
144 clk_get_by_ofw_index(dev, 0, 0, baudclk) != 0) in snps_get_clocks()
162 clk_t baudclk, apb_pclk; in snps_probe() local
193 if (snps_get_clocks(dev, &baudclk, &apb_pclk) == 0) { in snps_probe()
194 error = clk_enable(baudclk); in snps_probe()
209 error = clk_get_freq(baudclk, &freq); in snps_probe()
229 sc->baudclk = baudclk; in snps_probe()
256 clk_t baudclk, apb_pclk; in snps_detach() local
261 baudclk = sc->baudclk; in snps_detach()
284 if (baudclk != NULL) { in snps_detach()
285 error = clk_release(baudclk); in snps_detach()