]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/plat-omap/include/plat/serial.h
omap: Use a memory address for storing the debug port info instead of UART1 scratchpad
[net-next-2.6.git] / arch / arm / plat-omap / include / plat / serial.h
index 83dce4c4f7e62108da364e8c500a0af6238d9211..42a6318dd305367a574c139c67152acb4f5d011b 100644 (file)
 
 #include <linux/init.h>
 
+/*
+ * Memory entry used for the DEBUG_LL UART configuration. 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         (PHYS_OFFSET + 0x3ffc)
+
 /* OMAP1 serial ports */
 #define OMAP1_UART1_BASE       0xfffb0000
 #define OMAP1_UART2_BASE       0xfffb0800