summaryrefslogtreecommitdiff
path: root/cpu/mcf52x2/serial.c
diff options
context:
space:
mode:
authorZachary P. Landau <zachary.landau@labxtechnologies.com>2006-01-26 17:35:56 -0500
committerZachary P. Landau <zachary.landau@labxtechnologies.com>2006-01-26 17:35:56 -0500
commiteacbd317757327e8e7f018f5701c950429c4c6ae (patch)
treef5a0b6fffe7391bd7c2cf3165b0b1c7171a5df84 /cpu/mcf52x2/serial.c
parentc4b465f63e3b6fc998526dc217ff988e5c91e667 (diff)
downloadu-boot-imx-eacbd317757327e8e7f018f5701c950429c4c6ae.zip
u-boot-imx-eacbd317757327e8e7f018f5701c950429c4c6ae.tar.gz
u-boot-imx-eacbd317757327e8e7f018f5701c950429c4c6ae.tar.bz2
Add support for Freescale M5271 processor
Diffstat (limited to 'cpu/mcf52x2/serial.c')
-rw-r--r--cpu/mcf52x2/serial.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpu/mcf52x2/serial.c b/cpu/mcf52x2/serial.c
index c730922..641f0d9 100644
--- a/cpu/mcf52x2/serial.c
+++ b/cpu/mcf52x2/serial.c
@@ -26,6 +26,10 @@
#include <asm/mcfuart.h>
+#ifdef CONFIG_M5271
+#include <asm/m5271.h>
+#endif
+
#ifdef CONFIG_M5272
#include <asm/m5272.h>
#endif
@@ -46,7 +50,7 @@
void rs_serial_setbaudrate(int port,int baudrate)
{
-#if defined(CONFIG_M5272) || defined(CONFIG_M5249)
+#if defined(CONFIG_M5272) || defined(CONFIG_M5249) || defined(CONFIG_M5271)
volatile unsigned char *uartp;
double clock, fraction;
@@ -61,8 +65,10 @@ void rs_serial_setbaudrate(int port,int baudrate)
uartp[MCFUART_UBG1] = (((int)clock >> 8) & 0xff); /* set msb baud */
uartp[MCFUART_UBG2] = ((int)clock & 0xff); /* set lsb baud */
+#ifndef CONFIG_M5271
uartp[MCFUART_UFPD] = ((int)fraction & 0xf); /* set baud fraction adjust */
#endif
+#endif
};
void rs_serial_init(int port,int baudrate)