aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap1/serial.h
diff options
context:
space:
mode:
authorGravatar Arnd Bergmann <arnd@arndb.de> 2022-05-30 14:46:17 +0200
committerGravatar Arnd Bergmann <arnd@arndb.de> 2022-06-03 20:48:53 +0200
commit7036440eab3e2d47a775d4616909f8235488d714 (patch)
treee7f8c6d8c5ee37efe48b14bac59b9162ee8f6e48 /arch/arm/mach-omap1/serial.h
parentARM: OMAP1: clock: Convert to CCF (diff)
downloadlinux-7036440eab3e2d47a775d4616909f8235488d714.tar.gz
linux-7036440eab3e2d47a775d4616909f8235488d714.tar.bz2
linux-7036440eab3e2d47a775d4616909f8235488d714.zip
ARM: omap1: enable multiplatform
With all the header files out of the way, and the clock driver converted to the common framework, nothing stops us from building OMAP together with the other platforms. As usual, the decompressor support is a victim here, and is only available when CONFIG_DEBUG_LL is configured for the particular board. Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-omap1/serial.h')
-rw-r--r--arch/arm/mach-omap1/serial.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/serial.h b/arch/arm/mach-omap1/serial.h
new file mode 100644
index 000000000000..4700e384c3d9
--- /dev/null
+++ b/arch/arm/mach-omap1/serial.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2009 Texas Instruments
+ * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __ASM_ARCH_SERIAL_H
+#define __ASM_ARCH_SERIAL_H
+
+#include <linux/init.h>
+
+/*
+ * Memory entry used for the DEBUG_LL UART configuration, relative to
+ * start of RAM. See also uncompress.h and debug-macro.S.
+ *
+ * Note that using a memory location for storing the UART configuration
+ * has at least two limitations:
+ *
+ * 1. Kernel uncompress code cannot overlap OMAP_UART_INFO as the
+ * uncompress code could then partially overwrite itself
+ * 2. We assume printascii is called at least once before paging_init,
+ * and addruart has a chance to read OMAP_UART_INFO
+ */
+#define OMAP_UART_INFO_OFS 0x3ffc
+
+#define OMAP_PORT_SHIFT 2
+#define OMAP7XX_PORT_SHIFT 0
+
+#define OMAP1510_BASE_BAUD (12000000/16)
+#define OMAP16XX_BASE_BAUD (48000000/16)
+
+/*
+ * DEBUG_LL port encoding stored into the UART1 scratchpad register by
+ * decomp_setup in uncompress.h
+ */
+#define OMAP1UART1 11
+#define OMAP1UART2 12
+#define OMAP1UART3 13
+
+#ifndef __ASSEMBLER__
+extern void omap_serial_init(void);
+#endif
+
+#endif