aboutsummaryrefslogtreecommitdiffstats
path: root/cpu/arm920t/at91rm9200
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-20 12:36:05 +0000
committerwdenk <wdenk>2005-04-20 12:36:05 +0000
commitec0ca73190450d8d063c102fc652a0bdbc78aac2 (patch)
tree5f518c424f6ed88d7d429079faa2f16a990e3f2f /cpu/arm920t/at91rm9200
parentb2323ea6f9ae478680baa964bdd97d8567507e91 (diff)
downloadu-boot-midas-ec0ca73190450d8d063c102fc652a0bdbc78aac2.tar.gz
u-boot-midas-ec0ca73190450d8d063c102fc652a0bdbc78aac2.tar.bz2
u-boot-midas-ec0ca73190450d8d063c102fc652a0bdbc78aac2.zip
Cleanup serial console baudrate calculation on AT91RM9200
Diffstat (limited to 'cpu/arm920t/at91rm9200')
-rw-r--r--cpu/arm920t/at91rm9200/serial.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpu/arm920t/at91rm9200/serial.c b/cpu/arm920t/at91rm9200/serial.c
index a9693bf44e..b529cfa41b 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)