static void evb64260_serial_setbrg(void) { int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate; #ifdef CONFIG_SYS_INIT_CHAN1 NS16550_reinit(COM_PORTS[0], clock_divisor); #endif #ifdef CONFIG_SYS_INIT_CHAN2 NS16550_reinit(COM_PORTS[1], clock_divisor); #endif }
static void marvell_serial_setbrg(void) { int clock_divisor = 230400 / gd->baudrate; #ifdef CONFIG_SYS_INIT_CHAN1 NS16550_reinit (COM_PORTS[0], clock_divisor); #endif #ifdef CONFIG_SYS_INIT_CHAN2 NS16550_reinit (COM_PORTS[1], clock_divisor); #endif }
void serial_setbrg (void) { int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate; #ifdef CFG_INIT_CHAN1 NS16550_reinit (COM_PORTS[0], clock_divisor); #endif #ifdef CFG_INIT_CHAN2 NS16550_reinit (COM_PORTS[1], clock_divisor); #endif }
void serial_setbrg (void) { int clock_divisor; clock_divisor = calc_divisor(); NS16550_reinit(console, clock_divisor); }
extern void _serial_setbrg(const int port) { int clock_divisor; clock_divisor = calc_divisor(PORT); NS16550_reinit(PORT, clock_divisor); }
static int marvell_serial_init(void) { #if (defined CONFIG_SYS_INIT_CHAN1) || (defined CONFIG_SYS_INIT_CHAN2) int clock_divisor = 230400 / gd->baudrate; #endif mpsc_init (gd->baudrate); /* init the DUART chans so that KGDB in the kernel can use them */ #ifdef CONFIG_SYS_INIT_CHAN1 NS16550_reinit (COM_PORTS[0], clock_divisor); #endif #ifdef CONFIG_SYS_INIT_CHAN2 NS16550_reinit (COM_PORTS[1], clock_divisor); #endif return (0); }
void _serial_setbrg (const int port) { // int clock_divisor; // clock_divisor = calc_divisor(PORT); NS16550_reinit(PORT,0);// clock_divisor); }
void quad_setbrg_dev (unsigned long base) { if (zoom2_debug_board_connected ()) { int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE; NS16550_reinit ((NS16550_t) base, clock_divisor); } }
int serial_init (void) { DECLARE_GLOBAL_DATA_PTR; #if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2) int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate; #endif mpsc_init(gd->baudrate); /* init the DUART chans so that KGDB in the kernel can use them */ #ifdef CFG_INIT_CHAN1 NS16550_reinit(COM_PORTS[0], clock_divisor); #endif #ifdef CFG_INIT_CHAN2 NS16550_reinit(COM_PORTS[1], clock_divisor); #endif return (0); }
void serial_setbrg (void) { int clock_divisor = get_bus_freq (0) / 16 / gd->baudrate; NS16550_reinit (console, clock_divisor); }