summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rix <Tom.Rix@windriver.com>2009-05-31 12:44:37 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:39:53 +0200
commit660888b7fb8840ce169dcd2589e49ab44c46b87b (patch)
tree150f29155c8460803bb60cf4b070bbbadbb4c604 /include
parent3ea201b016ab259a5ac8824af767569522768c47 (diff)
downloadu-boot-imx-660888b7fb8840ce169dcd2589e49ab44c46b87b.zip
u-boot-imx-660888b7fb8840ce169dcd2589e49ab44c46b87b.tar.gz
u-boot-imx-660888b7fb8840ce169dcd2589e49ab44c46b87b.tar.bz2
ZOOM2 Add serial support.
Zoom2 serial is in general supplied by one of the 4 UARTS on the debug board. The default serial is from the USB connector on left side of the debug board. The USB connector will produce 2 of the 4 UARTS. On your host pick the first enumeration. The details of the setting of the serial gpmc setup are not available. The values were provided by another party. The serial port set up is the same with Zoom1. Baud rate 115200, 8 bit data, no parity, 1 stop bit, no flow. The kernel bootargs are console=ttyS3,115200n8 Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/omap3_zoom2.h26
-rw-r--r--include/serial.h7
2 files changed, 20 insertions, 13 deletions
diff --git a/include/configs/omap3_zoom2.h b/include/configs/omap3_zoom2.h
index 8aea4cb..d9a9c1a 100644
--- a/include/configs/omap3_zoom2.h
+++ b/include/configs/omap3_zoom2.h
@@ -69,26 +69,26 @@
/*
* NS16550 Configuration
+ * Zoom2 uses the TL16CP754C on the debug board
*/
-#define V_NS16550_CLK 48000000 /* 48MHz (APLL96/2) */
+#define CONFIG_SERIAL_MULTI 1
+/*
+ * 0 - 1 : first USB with respect to the left edge of the debug board
+ * 2 - 3 : second USB with respect to the left edge of the debug board
+ */
+#define ZOOM2_DEFAULT_SERIAL_DEVICE (&zoom2_serial_device0)
+
+#define V_NS16550_CLK (1843200) /* 1.8432 Mhz */
#define CONFIG_SYS_NS16550
-#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE (-4)
+#define CONFIG_SYS_NS16550_REG_SIZE (-2)
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
-
-/*
- * select serial console configuration
- */
-#define CONFIG_CONS_INDEX 3
-#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
-#define CONFIG_SERIAL3 3 /* UART3 */
+#define CONFIG_BAUDRATE 115200
+#define CONFIG_SYS_BAUDRATE_TABLE {115200}
/* allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE
-#define CONFIG_BAUDRATE 115200
-#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
- 115200}
+
#define CONFIG_MMC 1
#define CONFIG_OMAP3_MMC 1
#define CONFIG_DOS_PARTITION 1
diff --git a/include/serial.h b/include/serial.h
index e3d8b36..aca5221 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -42,6 +42,13 @@ extern struct serial_device s3c24xx_serial1_device;
extern struct serial_device s3c24xx_serial2_device;
#endif
+#if defined(CONFIG_OMAP3_ZOOM2)
+extern struct serial_device zoom2_serial_device0;
+extern struct serial_device zoom2_serial_device1;
+extern struct serial_device zoom2_serial_device2;
+extern struct serial_device zoom2_serial_device3;
+#endif
+
extern struct serial_device serial_ffuart_device;
extern struct serial_device serial_btuart_device;
extern struct serial_device serial_stuart_device;