Lines Matching full:baud
7 * optional features including the ability to use a baud rate clock
8 * mux for more accurate high speed baud rate selection and also
669 dev_err(dev, "Error selecting BAUD MUX clock for %u\n", in init_real_clk_rates()
680 u32 baud) in set_clock_mux() argument
695 /* If the Baud Mux Clock was not specified, just return */ in set_clock_mux()
699 /* Find the closest match for specified baud */ in set_clock_mux()
704 quot = DIV_ROUND_CLOSEST(rate, baud); in set_clock_mux()
710 hires_baud = (u64)baud * 10000; in set_clock_mux()
720 percent = (unsigned long)DIV_ROUND_CLOSEST_ULL(hires_err, baud); in set_clock_mux()
722 "Baud rate: %u, MUX Clk: %u, Error: %u.%u%%\n", in set_clock_mux()
723 baud, priv->real_rates[i], percent / 100, in set_clock_mux()
732 dev_err(up->dev, "Error, %d BAUD rate is too fast.\n", baud); in set_clock_mux()
738 dev_err(up->dev, "Error selecting BAUD MUX clock\n"); in set_clock_mux()
742 dev_err(up->dev, "Error, baud: %d has %u.%u%% error\n", in set_clock_mux()
743 baud, percent / 100, percent % 100); in set_clock_mux()
746 dev_dbg(up->dev, "Selecting BAUD MUX rate: %u\n", rate); in set_clock_mux()
747 dev_dbg(up->dev, "Requested baud: %u, Actual baud: %u\n", in set_clock_mux()
748 baud, real_baud); in set_clock_mux()
750 /* calc nanoseconds for 1.5 characters time at the given baud rate */ in set_clock_mux()
1018 /* See if a Baud clock has been specified */ in brcmuart_probe()
1025 dev_dbg(dev, "BAUD MUX clock not specified\n"); in brcmuart_probe()
1027 dev_dbg(dev, "BAUD MUX clock found\n"); in brcmuart_probe()
1155 * baud rate has been restored. in brcmuart_suspend()
1178 dev_err(dev, "Error enabling BAUD MUX clock\n"); in brcmuart_resume()
1186 dev_err(dev, "Error restoring default BAUD MUX clock\n"); in brcmuart_resume()