]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/include/asm/ppc4xx.h
ppc4xx: Use common NS16550 driver for PPC4xx UART
[u-boot] / arch / powerpc / include / asm / ppc4xx.h
index 15be343a684a837f09655f4a8090d92d2a42a607..87a16ec986b5da521649794ab852d56ee06f15a7 100644 (file)
 #define GPT0_DCT0              0x00000110
 #define GPT0_DCIS              0x0000011C
 
+#if 0 // test-only
+/*
+ * All PPC4xx share the same NS16550 UART(s). Only base addresses
+ * may differ. We define here the integration of the common NS16550
+ * driver for all PPC4xx SoC's. The board config header must specify
+ * on which UART the console should be located via CONFIG_CONS_INDEX.
+ */
+#if 0 /* test-only */
+#define CONFIG_SERIAL_MULTI
+#endif
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_serial_clock()
+#endif
+
 #if defined(CONFIG_440)
 #include <asm/ppc440.h>
 #else