diff options
author | wdenk <wdenk> | 2005-04-20 12:36:05 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2005-04-20 12:36:05 +0000 |
commit | ec0ca73190450d8d063c102fc652a0bdbc78aac2 (patch) | |
tree | 5f518c424f6ed88d7d429079faa2f16a990e3f2f /cpu/arm920t | |
parent | b2323ea6f9ae478680baa964bdd97d8567507e91 (diff) | |
download | u-boot-ec0ca73190450d8d063c102fc652a0bdbc78aac2.zip u-boot-ec0ca73190450d8d063c102fc652a0bdbc78aac2.tar.gz u-boot-ec0ca73190450d8d063c102fc652a0bdbc78aac2.tar.bz2 |
Cleanup serial console baudrate calculation on AT91RM9200
Diffstat (limited to 'cpu/arm920t')
-rw-r--r-- | cpu/arm920t/at91rm9200/serial.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpu/arm920t/at91rm9200/serial.c b/cpu/arm920t/at91rm9200/serial.c index a9693bf..b529cfa 100644 --- a/cpu/arm920t/at91rm9200/serial.c +++ b/cpu/arm920t/at91rm9200/serial.c @@ -55,11 +55,8 @@ void serial_setbrg (void) if ((baudrate = gd->baudrate) <= 0) baudrate = CONFIG_BAUDRATE; - if (baudrate == 0 || baudrate == CONFIG_BAUDRATE) - us->US_BRGR = CFG_AT91C_BRGR_DIVISOR; /* hardcode so no __divsi3 */ - else - /* MASTER_CLOCK/(16 * baudrate) */ - us->US_BRGR = (AT91C_MASTER_CLOCK >> 4)/baudrate; + /* MASTER_CLOCK/(16 * baudrate) */ + us->US_BRGR = (AT91C_MASTER_CLOCK >> 4)/baudrate; } int serial_init (void) |