summaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_imx.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-01-30 12:55:35 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-02-06 14:44:46 +0100
commit7d304edb7aed05c37904ca1d837d75976120185c (patch)
treeaf7afca5660d200f5d378481ffc20c22d42da13c /drivers/serial/serial_imx.c
parentd32c4717413b2a8ff218156002b2d92d3bb476e7 (diff)
downloadbarebox-7d304edb7aed05c37904ca1d837d75976120185c.tar.gz
i.MX serial: Add mx35 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial/serial_imx.c')
-rw-r--r--drivers/serial/serial_imx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index edb9fba..488adfb 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -38,7 +38,7 @@
#define UBIR(base) __REG( 0xa4 +(base)) /* BRM Incremental Register */
#define UBMR(base) __REG( 0xa8 +(base)) /* BRM Modulator Register */
#define UBRC(base) __REG( 0xac +(base)) /* Baud Rate Count Register */
-#ifdef CONFIG_ARCH_IMX27
+#if defined CONFIG_ARCH_IMX27 || defined CONFIG_ARCH_IMX35
#define ONEMS(base) __REG( 0xb0 +(base)) /* One Millisecond register (i.MX27) */
#define UTS(base) __REG( 0xb4 +(base)) /* UART Test Register */
#endif
@@ -163,7 +163,7 @@
# define UCR3_VAL (0x700 | UCR3_RXDMUXSEL)
# define UCR4_VAL UCR4_CTSTL_32
#endif
-#ifdef CONFIG_ARCH_IMX31
+#if defined CONFIG_ARCH_IMX31 || defined CONFIG_ARCH_IMX35
# define UCR1_VAL (0)
# define UCR3_VAL (0x700 | UCR3_RXDMUXSEL)
# define UCR4_VAL UCR4_CTSTL_32
@@ -202,7 +202,7 @@ static int imx_serial_init_port(struct console_device *cdev)
/* Configure FIFOs */
UFCR(base) = 0xa81;
-#if defined(CONFIG_ARCH_IMX27) || defined(CONFIG_ARCH_IMX31)
+#ifdef ONEMS
ONEMS(base) = imx_serial_reffreq(base) / 1000;
#endif