diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2010-01-22 11:49:04 +0100 |
---|---|---|
committer | Francois Retief <fgretief@spaceteq.co.za> | 2015-12-03 13:15:48 +0200 |
commit | ff0b9b77c2c86e9c6cdb572a258b29f24fcd754a (patch) | |
tree | b310ccb677f9146c5cfe1aca660a6e781938422b /arch/sparc/cpu/leon2/serial.c | |
parent | 58e5585625d06530cf52ffc2b7b9a188dc46bffe (diff) | |
download | u-boot-imx-ff0b9b77c2c86e9c6cdb572a258b29f24fcd754a.zip u-boot-imx-ff0b9b77c2c86e9c6cdb572a258b29f24fcd754a.tar.gz u-boot-imx-ff0b9b77c2c86e9c6cdb572a258b29f24fcd754a.tar.bz2 |
sparc: Serial baud rate register support multiple buses with different frequency
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'arch/sparc/cpu/leon2/serial.c')
-rw-r--r-- | arch/sparc/cpu/leon2/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/cpu/leon2/serial.c b/arch/sparc/cpu/leon2/serial.c index 603364e..460abd1 100644 --- a/arch/sparc/cpu/leon2/serial.c +++ b/arch/sparc/cpu/leon2/serial.c @@ -120,7 +120,7 @@ static void leon2_serial_setbrg(void) if (!gd->baudrate) gd->baudrate = CONFIG_BAUDRATE; - scaler = leon2_serial_calc_scaler(CONFIG_SYS_CLK_FREQ, CONFIG_BAUDRATE); + scaler = leon2_serial_calc_scaler(CONFIG_SYS_CLK_FREQ, gd->baudrate); writel(scaler, &uart->UART_Scaler); } |