diff options
Diffstat (limited to 'include')
77 files changed, 341 insertions, 96 deletions
| diff --git a/include/common.h b/include/common.h index 2151597b2..d6182275d 100644 --- a/include/common.h +++ b/include/common.h @@ -535,6 +535,7 @@ ulong get_PERCLK2(void);  ulong get_PERCLK3(void);  #endif  ulong	get_bus_freq  (ulong); +int get_serial_clock(void);  #if defined(CONFIG_MPC85xx)  typedef MPC85xx_SYS_INFO sys_info_t; diff --git a/include/configs/APC405.h b/include/configs/APC405.h index bb0238f4f..cb3f80bfa 100644 --- a/include/configs/APC405.h +++ b/include/configs/APC405.h @@ -176,6 +176,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000 /* memtest works on */  #define CONFIG_SYS_MEMTEST_END		0x0C00000 /* 4 ... 12 MB in DRAM */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define CONFIG_SYS_EXT_SERIAL_CLOCK    14745600 /* use external serial clock   */  /* The following table includes the supported baudrates */ diff --git a/include/configs/AR405.h b/include/configs/AR405.h index 45c64c2d2..568ce15c7 100644 --- a/include/configs/AR405.h +++ b/include/configs/AR405.h @@ -127,6 +127,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define CONFIG_SYS_EXT_SERIAL_CLOCK	14745600 /* use external serial clock	*/  /* The following table includes the supported baudrates */ diff --git a/include/configs/ASH405.h b/include/configs/ASH405.h index 98bd6f32e..789f7501f 100644 --- a/include/configs/ASH405.h +++ b/include/configs/ASH405.h @@ -124,9 +124,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#undef	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/CANBT.h b/include/configs/CANBT.h index 115a6f988..ad075b80b 100644 --- a/include/configs/CANBT.h +++ b/include/configs/CANBT.h @@ -100,6 +100,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define CONFIG_SYS_EXT_SERIAL_CLOCK	14745600 /* use external serial clock	*/  /* The following table includes the supported baudrates */ diff --git a/include/configs/CATcenter.h b/include/configs/CATcenter.h index da85442b1..550c462b8 100644 --- a/include/configs/CATcenter.h +++ b/include/configs/CATcenter.h @@ -86,7 +86,11 @@  # error "* External frequency (SysClk) not defined! *"  #endif -#define CONFIG_UART1_CONSOLE	1	/* Use second UART		*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #define CONFIG_BAUDRATE		115200  #define CONFIG_BOOTDELAY	5	/* autoboot after 5 seconds	*/ diff --git a/include/configs/CMS700.h b/include/configs/CMS700.h index ede99700f..9c57acb00 100644 --- a/include/configs/CMS700.h +++ b/include/configs/CMS700.h @@ -122,9 +122,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#define	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/CPCI2DP.h b/include/configs/CPCI2DP.h index 922121173..c6882fdda 100644 --- a/include/configs/CPCI2DP.h +++ b/include/configs/CPCI2DP.h @@ -111,9 +111,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#define CONFIG_UART1_CONSOLE            /* define for uart1 as console  */  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/CPCI405.h b/include/configs/CPCI405.h index 3e7020df8..da57b04bb 100644 --- a/include/configs/CPCI405.h +++ b/include/configs/CPCI405.h @@ -125,6 +125,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 diff --git a/include/configs/CPCI4052.h b/include/configs/CPCI4052.h index d3000f657..d682d3726 100644 --- a/include/configs/CPCI4052.h +++ b/include/configs/CPCI4052.h @@ -134,6 +134,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 diff --git a/include/configs/CPCI405AB.h b/include/configs/CPCI405AB.h index d3763441e..1c521f2a3 100644 --- a/include/configs/CPCI405AB.h +++ b/include/configs/CPCI405AB.h @@ -133,6 +133,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 diff --git a/include/configs/CPCI405DT.h b/include/configs/CPCI405DT.h index 07acab0c2..c7b79311c 100644 --- a/include/configs/CPCI405DT.h +++ b/include/configs/CPCI405DT.h @@ -135,6 +135,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 diff --git a/include/configs/CPCIISER4.h b/include/configs/CPCIISER4.h index 5b50bcf33..f11429013 100644 --- a/include/configs/CPCIISER4.h +++ b/include/configs/CPCIISER4.h @@ -110,6 +110,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define CONFIG_SYS_EXT_SERIAL_CLOCK	1843200	 /* use external serial clock	*/  /* The following table includes the supported baudrates */ diff --git a/include/configs/CRAYL1.h b/include/configs/CRAYL1.h index 9ab30ecba..f6cd76081 100644 --- a/include/configs/CRAYL1.h +++ b/include/configs/CRAYL1.h @@ -47,6 +47,12 @@  #define CONFIG_MISC_INIT_R	1	/* so that a misc_init_r() is called */  #define CONFIG_NET_MULTI +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  /* set PRAM to keep U-Boot out, mem= to keep linux out, and initrd_hi to   * keep possible initrd ramdisk decompression out.  This is in k (1024 bytes)   #define CONFIG_PRAM			16 diff --git a/include/configs/DP405.h b/include/configs/DP405.h index 0ee456bbd..5311dfb00 100644 --- a/include/configs/DP405.h +++ b/include/configs/DP405.h @@ -97,9 +97,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#undef	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/DU405.h b/include/configs/DU405.h index 8f1fc78bc..0907c3ab0 100644 --- a/include/configs/DU405.h +++ b/include/configs/DU405.h @@ -109,6 +109,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200  /* use external serial clock	*/  /* The following table includes the supported baudrates */ diff --git a/include/configs/DU440.h b/include/configs/DU440.h index 830466f7a..9c3499406 100644 --- a/include/configs/DU440.h +++ b/include/configs/DU440.h @@ -64,9 +64,6 @@  #define CONFIG_SYS_PCI_SUBSYS_VENDORID	PCI_VENDOR_ID_ESDGMBH  #define CONFIG_SYS_PCI_SUBSYS_ID	0x0444		/* device ID for DU440 */ -/* Don't change either of these */ -#define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals	*/ -  #define CONFIG_SYS_USB2D0_BASE		0xe0000100  #define CONFIG_SYS_USB_DEVICE		0xe0000000  #define CONFIG_SYS_USB_HOST		0xe0000400 @@ -86,10 +83,14 @@  /*   * Serial Port   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef CONFIG_SYS_EXT_SERIAL_CLOCK  #define CONFIG_BAUDRATE		115200  #define CONFIG_SERIAL_MULTI     1 -#undef CONFIG_UART1_CONSOLE  #define CONFIG_SYS_BAUDRATE_TABLE						\  	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} diff --git a/include/configs/ERIC.h b/include/configs/ERIC.h index e07f9a1dc..da3b4ae22 100644 --- a/include/configs/ERIC.h +++ b/include/configs/ERIC.h @@ -139,6 +139,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1 +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define	 CONFIG_SYS_EXT_SERIAL_CLOCK	 14318180  /* The following table includes the supported baudrates */ diff --git a/include/configs/G2000.h b/include/configs/G2000.h index 4d29f2155..e2e6cb29c 100644 --- a/include/configs/G2000.h +++ b/include/configs/G2000.h @@ -151,9 +151,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1 +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#undef	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/HH405.h b/include/configs/HH405.h index d940a886d..0db929861 100644 --- a/include/configs/HH405.h +++ b/include/configs/HH405.h @@ -176,9 +176,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD       691200 -#define CONFIG_UART1_CONSOLE            /* define for uart1 as console  */  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE      \ diff --git a/include/configs/HUB405.h b/include/configs/HUB405.h index 72e907b66..5dea96ef5 100644 --- a/include/configs/HUB405.h +++ b/include/configs/HUB405.h @@ -118,9 +118,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#undef	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/JSE.h b/include/configs/JSE.h index 98f5661a0..c692b5458 100644 --- a/include/configs/JSE.h +++ b/include/configs/JSE.h @@ -95,9 +95,13 @@  #define CONFIG_ENV_OFFSET	0x00  #define CONFIG_ENV_SIZE	512 -    /* The JSE connects UART1 to the console tap connector. */ -#define CONFIG_UART1_CONSOLE	1 +#define CONFIG_CONS_INDEX	2 +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +    /* Set console baudrate to 9600 */  #define CONFIG_BAUDRATE		9600 diff --git a/include/configs/KAREF.h b/include/configs/KAREF.h index 49a7378f2..f936ae57d 100644 --- a/include/configs/KAREF.h +++ b/include/configs/KAREF.h @@ -59,7 +59,6 @@  #define CONFIG_SYS_FLASH_BASE	       0xfff80000    /* start of FLASH		*/  #define CONFIG_SYS_MONITOR_BASE       0xfff80000    /* start of monitor	*/  #define CONFIG_SYS_PCI_MEMBASE	       0x80000000    /* mapped pci memory	*/ -#define CONFIG_SYS_PERIPHERAL_BASE    0xe0000000    /* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE	       0xc0000000    /* internal SRAM		*/  #define CONFIG_SYS_PCI_BASE	       0xd0000000    /* internal PCI regs	*/ @@ -91,6 +90,11 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #define CONFIG_SERIAL_MULTI   1  #define CONFIG_BAUDRATE	      9600 diff --git a/include/configs/METROBOX.h b/include/configs/METROBOX.h index e7429dd19..7f2542c1f 100644 --- a/include/configs/METROBOX.h +++ b/include/configs/METROBOX.h @@ -125,7 +125,6 @@  #define CONFIG_SYS_FLASH_BASE	       0xfff80000    /* start of FLASH		*/  #define CONFIG_SYS_MONITOR_BASE       0xfff80000    /* start of monitor	*/  #define CONFIG_SYS_PCI_MEMBASE	       0x80000000    /* mapped pci memory	*/ -#define CONFIG_SYS_PERIPHERAL_BASE    0xe0000000    /* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE	       0xc0000000    /* internal SRAM		*/  #define CONFIG_SYS_PCI_BASE	       0xd0000000    /* internal PCI regs	*/ @@ -153,6 +152,11 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #define CONFIG_SERIAL_MULTI   1  #define CONFIG_BAUDRATE	      9600 diff --git a/include/configs/MIP405.h b/include/configs/MIP405.h index 7e6484ee9..e833e6d19 100644 --- a/include/configs/MIP405.h +++ b/include/configs/MIP405.h @@ -176,6 +176,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0100000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 1 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD       916667 diff --git a/include/configs/OCRTC.h b/include/configs/OCRTC.h index 55471af34..ad2e4da38 100644 --- a/include/configs/OCRTC.h +++ b/include/configs/OCRTC.h @@ -105,6 +105,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 diff --git a/include/configs/ORSG.h b/include/configs/ORSG.h index 142471362..3d35362ff 100644 --- a/include/configs/ORSG.h +++ b/include/configs/ORSG.h @@ -105,6 +105,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 diff --git a/include/configs/PCI405.h b/include/configs/PCI405.h index 0d443ea2d..244d6fe50 100644 --- a/include/configs/PCI405.h +++ b/include/configs/PCI405.h @@ -110,6 +110,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 diff --git a/include/configs/PIP405.h b/include/configs/PIP405.h index 3e57c0b92..2901cfd6d 100644 --- a/include/configs/PIP405.h +++ b/include/configs/PIP405.h @@ -167,6 +167,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0100000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 1 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD       691200 diff --git a/include/configs/PLU405.h b/include/configs/PLU405.h index a3087829d..928ed8e15 100644 --- a/include/configs/PLU405.h +++ b/include/configs/PLU405.h @@ -135,9 +135,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#undef	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/PMC405.h b/include/configs/PMC405.h index 00a12fb83..c420efe81 100644 --- a/include/configs/PMC405.h +++ b/include/configs/PMC405.h @@ -130,6 +130,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000 /* memtest works on */  #define CONFIG_SYS_MEMTEST_END		0x0C00000 /* 4 ... 12 MB in DRAM */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef CONFIG_SYS_EXT_SERIAL_CLOCK		/* no external serial clock */  #define CONFIG_SYS_BASE_BAUD	806400 diff --git a/include/configs/PMC405DE.h b/include/configs/PMC405DE.h index 2c048dd0d..5b1048efb 100644 --- a/include/configs/PMC405DE.h +++ b/include/configs/PMC405DE.h @@ -107,9 +107,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0100000 /* memtest works on */  #define CONFIG_SYS_MEMTEST_END		0x3000000 /* 1 ... 48 MB in DRAM */ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK  #define CONFIG_SYS_BASE_BAUD		691200 -#define CONFIG_UART1_CONSOLE  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h index 3c19f52d9..fd2e9a9f9 100644 --- a/include/configs/PMC440.h +++ b/include/configs/PMC440.h @@ -72,9 +72,6 @@  #define CONFIG_SYS_PCI_MEMBASE3	CONFIG_SYS_PCI_MEMBASE2 + 0x10000000  #define CONFIG_SYS_PCI_MEMSIZE		0x80000000	/* 2GB! */ -/* Don't change either of these */ -#define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals */ -  #define CONFIG_SYS_USB2D0_BASE		0xe0000100  #define CONFIG_SYS_USB_DEVICE		0xe0000000  #define CONFIG_SYS_USB_HOST		0xe0000400 @@ -95,10 +92,14 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef CONFIG_SYS_EXT_SERIAL_CLOCK  #define CONFIG_BAUDRATE		115200 -#define CONFIG_SERIAL_MULTI	1 -#undef CONFIG_UART1_CONSOLE	/* console on front panel */ +#define CONFIG_SERIAL_MULTI     1  #define CONFIG_SYS_BAUDRATE_TABLE						\  	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} diff --git a/include/configs/PPChameleonEVB.h b/include/configs/PPChameleonEVB.h index e9cae85f5..f9b20143a 100644 --- a/include/configs/PPChameleonEVB.h +++ b/include/configs/PPChameleonEVB.h @@ -191,6 +191,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK		/* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD		691200 diff --git a/include/configs/VOH405.h b/include/configs/VOH405.h index 21bb5b6d4..b9ea6104e 100644 --- a/include/configs/VOH405.h +++ b/include/configs/VOH405.h @@ -133,9 +133,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD       691200 -#define CONFIG_UART1_CONSOLE            /* define for uart1 as console  */  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/VOM405.h b/include/configs/VOM405.h index 747d6a08d..a88b41a96 100644 --- a/include/configs/VOM405.h +++ b/include/configs/VOM405.h @@ -120,9 +120,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#undef	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/W7OLMC.h b/include/configs/W7OLMC.h index f06bfe552..0fbe80ce8 100644 --- a/include/configs/W7OLMC.h +++ b/include/configs/W7OLMC.h @@ -125,6 +125,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on		*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM		*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK			/* external serial clock */  #define CONFIG_SYS_405_UART_ERRATA_59			/* 405GP/CR Rev. D silicon */  #define CONFIG_SYS_BASE_BAUD		384000 diff --git a/include/configs/W7OLMG.h b/include/configs/W7OLMG.h index be8c9f82e..f12fa55d2 100644 --- a/include/configs/W7OLMG.h +++ b/include/configs/W7OLMG.h @@ -133,6 +133,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on		*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM		*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK			/* external serial clock */  #define CONFIG_SYS_405_UART_ERRATA_59			/* 405GP/CR Rev. D silicon */  #define CONFIG_SYS_BASE_BAUD		384000 diff --git a/include/configs/WUH405.h b/include/configs/WUH405.h index 7756d3aad..34a5fff13 100644 --- a/include/configs/WUH405.h +++ b/include/configs/WUH405.h @@ -122,9 +122,14 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD	    691200 -#define	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  /* The following table includes the supported baudrates */  #define CONFIG_SYS_BAUDRATE_TABLE	\ diff --git a/include/configs/XPEDITE1000.h b/include/configs/XPEDITE1000.h index cf39aeaaf..f76ede3ce 100644 --- a/include/configs/XPEDITE1000.h +++ b/include/configs/XPEDITE1000.h @@ -54,7 +54,6 @@  #define CONFIG_SYS_FLASH_BASE		0xff000000	/* start of FLASH */  #define CONFIG_SYS_MONITOR_BASE		TEXT_BASE	/* start of monitor */  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped pci memory */ -#define CONFIG_SYS_PERIPHERAL_BASE	0xe0000000	/* internal peripherals */  #define CONFIG_SYS_ISRAM_BASE		0xc0000000	/* internal SRAM */  #define CONFIG_SYS_PCI_BASE		0xd0000000	/* internal PCI regs */  #define CONFIG_SYS_NVRAM_BASE_ADDR	(CONFIG_SYS_PERIPHERAL_BASE + 0x08000000) @@ -112,6 +111,12 @@ extern void out32(unsigned int, unsigned long);  /*   * Serial Port   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define CONFIG_SYS_BAUDRATE_TABLE \  	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400}  #define CONFIG_BAUDRATE			115200 diff --git a/include/configs/acadia.h b/include/configs/acadia.h index bd3388f62..b6f909c11 100644 --- a/include/configs/acadia.h +++ b/include/configs/acadia.h @@ -89,6 +89,7 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK			/* external serial clock */  #define CONFIG_SYS_BASE_BAUD		691200 diff --git a/include/configs/alpr.h b/include/configs/alpr.h index ee0c14d96..75106b427 100644 --- a/include/configs/alpr.h +++ b/include/configs/alpr.h @@ -45,7 +45,6 @@  #define CONFIG_SYS_MONITOR_BASE	0xfffc0000	/* start of monitor		*/  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped pci memory		*/  #define	CONFIG_SYS_PCI_MEMSIZE		0x40000000	/* size of mapped pci memory	*/ -#define CONFIG_SYS_PERIPHERAL_BASE	0xe0000000	/* internal peripherals		*/  #define CONFIG_SYS_ISRAM_BASE		0xc0000000	/* internal SRAM		*/  #define CONFIG_SYS_PCI_BASE		0xd0000000	/* internal PCI regs		*/  #define CONFIG_SYS_PCI_MEMBASE1	CONFIG_SYS_PCI_MEMBASE  + 0x10000000 @@ -75,9 +74,14 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK  #define CONFIG_BAUDRATE		115200 -#define	CONFIG_UART1_CONSOLE		/* define for uart1 as console	*/  #define CONFIG_SYS_BAUDRATE_TABLE  \      {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} diff --git a/include/configs/amcc-common.h b/include/configs/amcc-common.h index 23a859fcb..9c53d3785 100644 --- a/include/configs/amcc-common.h +++ b/include/configs/amcc-common.h @@ -31,8 +31,12 @@  /*   * UART   */ -#define CONFIG_BAUDRATE		115200  #define CONFIG_SERIAL_MULTI +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +#define CONFIG_BAUDRATE		115200  #define CONFIG_SYS_BAUDRATE_TABLE  \      {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} diff --git a/include/configs/bamboo.h b/include/configs/bamboo.h index 8c4127da0..18276c588 100644 --- a/include/configs/bamboo.h +++ b/include/configs/bamboo.h @@ -62,8 +62,7 @@  #define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000  /*Don't change either of these*/ -#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000	    /* internal peripherals*/ -#define CONFIG_SYS_PCI_BASE	        0xe0000000	    /* internal PCI regs*/ +#define CONFIG_SYS_PCI_BASE		0xe0000000	    /* internal PCI regs*/  /*Don't change either of these*/  #define CONFIG_SYS_USB_DEVICE          0x50000000 @@ -85,9 +84,8 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200 /* use external 11.059MHz clk	*/ -/* define this if you want console on UART1 */ -#undef CONFIG_UART1_CONSOLE  /*-----------------------------------------------------------------------   * NVRAM/RTC diff --git a/include/configs/bubinga.h b/include/configs/bubinga.h index 05c4766b5..336e69ea9 100644 --- a/include/configs/bubinga.h +++ b/include/configs/bubinga.h @@ -123,6 +123,7 @@   * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,   * set Linux BASE_BAUD to 403200.   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* external serial clock */  #undef  CONFIG_SYS_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */ diff --git a/include/configs/canyonlands.h b/include/configs/canyonlands.h index e2c58a51a..51087f737 100644 --- a/include/configs/canyonlands.h +++ b/include/configs/canyonlands.h @@ -114,8 +114,6 @@  #define CONFIG_SYS_SRAM_SIZE		(256 << 10)  #define CONFIG_SYS_LOCAL_CONF_REGS	0xEF000000 -#define CONFIG_SYS_PERIPHERAL_BASE	0xEF600000	/* internal peripherals */ -  #define CONFIG_SYS_AHB_BASE		0xE2000000	/* internal AHB peripherals	*/  /*----------------------------------------------------------------------- @@ -130,7 +128,7 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ -#undef CONFIG_UART1_CONSOLE	/* define this if you want console on UART1 */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  /*-----------------------------------------------------------------------   * Environment diff --git a/include/configs/csb272.h b/include/configs/csb272.h index 9ded33066..71082109e 100644 --- a/include/configs/csb272.h +++ b/include/configs/csb272.h @@ -160,6 +160,12 @@   * UART configuration   *   */ +#define CONFIG_CONS_INDEX		1	/* Use UART0		*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #define CONFIG_SYS_EXT_SERIAL_CLOCK	3868400	/* use external serial clock */  #undef  CONFIG_SYS_BASE_BAUD  #define CONFIG_BAUDRATE		38400	/* Default baud rate */ diff --git a/include/configs/csb472.h b/include/configs/csb472.h index 71eb083e3..7b9f29ac3 100644 --- a/include/configs/csb472.h +++ b/include/configs/csb472.h @@ -159,6 +159,12 @@   * UART configuration   *   */ +#define CONFIG_CONS_INDEX		1	/* Use UART0		*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef CONFIG_SYS_EXT_SERIAL_CLOCK		/* use internal serial clock */  #define CONFIG_SYS_BASE_BAUD		691200  #define CONFIG_BAUDRATE		38400	/* Default baud rate */ diff --git a/include/configs/dlvision.h b/include/configs/dlvision.h index 453379997..5916db6e9 100644 --- a/include/configs/dlvision.h +++ b/include/configs/dlvision.h @@ -97,6 +97,7 @@   * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,   * set Linux BASE_BAUD to 403200.   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* external serial clock */  #undef  CONFIG_SYS_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */ diff --git a/include/configs/ebony.h b/include/configs/ebony.h index 10f425dd1..09357d908 100644 --- a/include/configs/ebony.h +++ b/include/configs/ebony.h @@ -61,7 +61,6 @@  #define CONFIG_SYS_SDRAM_BASE	    0x00000000	    /* _must_ be 0		*/  #define CONFIG_SYS_FLASH_BASE	    0xff800000	    /* start of FLASH		*/  #define CONFIG_SYS_PCI_MEMBASE	    0x80000000	    /* mapped pci memory	*/ -#define CONFIG_SYS_PERIPHERAL_BASE 0xe0000000	    /* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE	    0xc0000000	    /* internal SRAM		*/  #define CONFIG_SYS_PCI_BASE	    0xd0000000	    /* internal PCI regs	*/ @@ -81,6 +80,7 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #define CONFIG_SYS_EXT_SERIAL_CLOCK	(1843200 * 6)	/* Ext clk @ 11.059 MHz */ diff --git a/include/configs/gdppc440etx.h b/include/configs/gdppc440etx.h index d193919dc..d6db7bf49 100644 --- a/include/configs/gdppc440etx.h +++ b/include/configs/gdppc440etx.h @@ -59,7 +59,6 @@  #define CONFIG_SYS_PCI_MEMBASE3		CONFIG_SYS_PCI_MEMBASE2 + 0x10000000  /*Don't change either of these*/ -#define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripheral*/  #define CONFIG_SYS_PCI_BASE		0xe0000000	/* internal PCI regs */  /*Don't change either of these*/ @@ -80,8 +79,12 @@  /*   * Serial Port   */ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200	/* ext. 11.059MHz clk */ -#define CONFIG_UART1_CONSOLE  /*   * Environment diff --git a/include/configs/hcu5.h b/include/configs/hcu5.h index 26d2d0c9d..6694f5337 100644 --- a/include/configs/hcu5.h +++ b/include/configs/hcu5.h @@ -70,9 +70,6 @@  #define CONFIG_SYS_PCI_MEMBASE2	CONFIG_SYS_PCI_MEMBASE1 + 0x10000000  #define CONFIG_SYS_PCI_MEMBASE3	CONFIG_SYS_PCI_MEMBASE2 + 0x10000000 -/* Don't change either of these */ -#define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals	*/ -  #define CONFIG_SYS_USB2D0_BASE		0xe0000100  #define CONFIG_SYS_USB_DEVICE		0xe0000000  #define CONFIG_SYS_USB_HOST		0xe0000400 @@ -94,7 +91,6 @@  #undef CONFIG_SYS_EXT_SERIAL_CLOCK	       /* external serial clock */  #define CONFIG_BAUDRATE		115200  #undef CONFIG_SERIAL_SOFTWARE_FIFO -#undef CONFIG_UART1_CONSOLE  /*-----------------------------------------------------------------------   * Environment diff --git a/include/configs/icon.h b/include/configs/icon.h index 7a4e60cbc..779af25fa 100644 --- a/include/configs/icon.h +++ b/include/configs/icon.h @@ -52,7 +52,6 @@   * actual resources get mapped (not physical addresses)   */  #define CONFIG_SYS_FLASH_BASE	0xfc000000	/* later mapped to this addr */ -#define CONFIG_SYS_PERIPHERAL_BASE 0xa0000000	/* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE	0x90000000	/* internal SRAM	*/  #define CONFIG_SYS_PCI_MEMBASE	0x80000000	/* mapped PCI memory	*/ @@ -106,7 +105,7 @@  /*   * Serial Port   */ -#undef CONFIG_UART1_CONSOLE +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef CONFIG_SYS_EXT_SERIAL_CLOCK  /* diff --git a/include/configs/intip.h b/include/configs/intip.h index 0c0bb373b..82c828284 100644 --- a/include/configs/intip.h +++ b/include/configs/intip.h @@ -96,8 +96,6 @@  #define CONFIG_SYS_SRAM_SIZE		(256 << 10)  #define CONFIG_SYS_LOCAL_CONF_REGS	0xEF000000 -#define CONFIG_SYS_PERIPHERAL_BASE	0xEF600000	/* internal periph. */ -  #define CONFIG_SYS_AHB_BASE		0xE2000000	/* int. AHB periph. */  /* @@ -113,7 +111,7 @@  /*   * Serial Port   */ -#undef CONFIG_UART1_CONSOLE	/* define this if you want console on UART1 */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  /*   * Environment diff --git a/include/configs/katmai.h b/include/configs/katmai.h index 2a7ab8de0..884dd74a1 100644 --- a/include/configs/katmai.h +++ b/include/configs/katmai.h @@ -61,7 +61,6 @@   * actual resources get mapped (not physical addresses)   *----------------------------------------------------------------------*/  #define CONFIG_SYS_FLASH_BASE		0xff000000	/* start of FLASH	*/ -#define CONFIG_SYS_PERIPHERAL_BASE	0xa0000000	/* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE		0x90000000	/* internal SRAM	*/  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped PCI memory	*/ @@ -105,7 +104,7 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ -#undef CONFIG_UART1_CONSOLE +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef CONFIG_SYS_EXT_SERIAL_CLOCK  /*----------------------------------------------------------------------- diff --git a/include/configs/kilauea.h b/include/configs/kilauea.h index 48dc9463a..937d7c5e2 100644 --- a/include/configs/kilauea.h +++ b/include/configs/kilauea.h @@ -57,7 +57,6 @@  #define CONFIG_SYS_FLASH_BASE		0xFC000000  #define CONFIG_SYS_NAND_ADDR		0xF8000000  #define CONFIG_SYS_FPGA_BASE		0xF0000000 -#define CONFIG_SYS_PERIPHERAL_BASE	0xEF600000      /* internal peripherals*/  /*-----------------------------------------------------------------------   * Initial RAM & Stack Pointer Configuration Options @@ -115,8 +114,7 @@   * Serial Port   *----------------------------------------------------------------------*/  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200	/* ext. 11.059MHz clk	*/ -/* define this if you want console on UART1 */ -#undef CONFIG_UART1_CONSOLE +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  /*-----------------------------------------------------------------------   * Environment diff --git a/include/configs/korat.h b/include/configs/korat.h index f95df684e..0107a7b94 100644 --- a/include/configs/korat.h +++ b/include/configs/korat.h @@ -71,9 +71,6 @@  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped pci memory	*/  #define CONFIG_SYS_PCI_MEMBASE2		(CONFIG_SYS_PCI_MEMBASE + 0x20000000) -/* Don't change either of these */ -#define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals	*/ -  #define CONFIG_SYS_USB2D0_BASE		0xe0000100  #define CONFIG_SYS_USB_DEVICE		0xe0000000  #define CONFIG_SYS_USB_HOST		0xe0000400 @@ -93,11 +90,14 @@  /*   * Serial Port   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200	/* ext. 11.059MHz clk	*/  #define CONFIG_BAUDRATE		115200  #define CONFIG_SERIAL_MULTI	1 -/* define this if you want console on UART1 */ -#undef CONFIG_UART1_CONSOLE  #define CONFIG_SYS_BAUDRATE_TABLE						\  	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} diff --git a/include/configs/luan.h b/include/configs/luan.h index ccd9397df..6b1a41f8e 100644 --- a/include/configs/luan.h +++ b/include/configs/luan.h @@ -58,8 +58,6 @@  #define CONFIG_SYS_ISRAM_BASE	        0xf8000000	/* internal 8k SRAM (L2 cache) */ -#define CONFIG_SYS_PERIPHERAL_BASE     0xf0000000	/* internal peripherals */ -  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped pci memory */  #define CONFIG_SYS_PCI_BASE		0xd0000000	/* internal PCI regs */  #define CONFIG_SYS_PCI_TARGBASE	0x80000000	/* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ @@ -88,8 +86,8 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200 /* external 11.059MHz clk */ -#undef  CONFIG_UART1_CONSOLE		/* define if you want console on UART1 */  /*-----------------------------------------------------------------------   * Environment diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h index 6461124e5..9df6fc77f 100644 --- a/include/configs/lwmon5.h +++ b/include/configs/lwmon5.h @@ -62,9 +62,6 @@  #define CONFIG_SYS_PCI_MEMBASE2	CONFIG_SYS_PCI_MEMBASE1 + 0x10000000  #define CONFIG_SYS_PCI_MEMBASE3	CONFIG_SYS_PCI_MEMBASE2 + 0x10000000 -/* Don't change either of these */ -#define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals	*/ -  #define CONFIG_SYS_USB2D0_BASE		0xe0000100  #define CONFIG_SYS_USB_DEVICE		0xe0000000  #define CONFIG_SYS_USB_HOST		0xe0000400 @@ -106,11 +103,14 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef CONFIG_SYS_EXT_SERIAL_CLOCK		/* no external clock provided	*/  #define CONFIG_BAUDRATE		115200  #define CONFIG_SERIAL_MULTI     1 -/* define this if you want console on UART1 */ -#define CONFIG_UART1_CONSOLE	1	/* use UART1 as console		*/  #define CONFIG_SYS_BAUDRATE_TABLE						\  	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} diff --git a/include/configs/makalu.h b/include/configs/makalu.h index 52339f9c6..83a2d4a65 100644 --- a/include/configs/makalu.h +++ b/include/configs/makalu.h @@ -55,7 +55,6 @@   *----------------------------------------------------------------------*/  #define CONFIG_SYS_FLASH_BASE		0xFC000000  #define CONFIG_SYS_FPGA_BASE		0xF0000000 -#define CONFIG_SYS_PERIPHERAL_BASE	0xEF600000      /* internal peripherals*/  /*-----------------------------------------------------------------------   * Initial RAM & Stack Pointer Configuration Options @@ -112,9 +111,8 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef CONFIG_SYS_EXT_SERIAL_CLOCK			/* no ext. clk		*/ -/* define this if you want console on UART1 */ -#undef CONFIG_UART1_CONSOLE  /*-----------------------------------------------------------------------   * Environment diff --git a/include/configs/neo.h b/include/configs/neo.h index f275c7b2a..fde814b1e 100644 --- a/include/configs/neo.h +++ b/include/configs/neo.h @@ -98,6 +98,12 @@   * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,   * set Linux BASE_BAUD to 403200.   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* external serial clock */  #undef  CONFIG_SYS_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */ diff --git a/include/configs/netstal-common.h b/include/configs/netstal-common.h index cb7efe7ab..8f42b6c62 100644 --- a/include/configs/netstal-common.h +++ b/include/configs/netstal-common.h @@ -34,7 +34,12 @@  /*   * UART   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #define CONFIG_SERIAL_MULTI +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #define CONFIG_SYS_BAUDRATE_TABLE  \      {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} diff --git a/include/configs/ocotea.h b/include/configs/ocotea.h index 2e809b0f3..b388a406f 100644 --- a/include/configs/ocotea.h +++ b/include/configs/ocotea.h @@ -58,7 +58,6 @@   *----------------------------------------------------------------------*/  #define CONFIG_SYS_FLASH_BASE	    0xff800000	    /* start of FLASH		*/  #define CONFIG_SYS_PCI_MEMBASE	    0x80000000	    /* mapped pci memory	*/ -#define CONFIG_SYS_PERIPHERAL_BASE 0xe0000000	    /* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE	    0xc0000000	    /* internal SRAM		*/  #define CONFIG_SYS_PCI_BASE	    0xd0000000	    /* internal PCI regs	*/ @@ -81,6 +80,7 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #define CONFIG_SYS_EXT_SERIAL_CLOCK	(1843200 * 6)	/* Ext clk @ 11.059 MHz */ diff --git a/include/configs/p3p440.h b/include/configs/p3p440.h index d6b92070a..6edf91ecc 100644 --- a/include/configs/p3p440.h +++ b/include/configs/p3p440.h @@ -49,7 +49,6 @@  #define CONFIG_SYS_FLASH_BASE	    0xff800000	    /* start of FLASH		*/  #define CONFIG_SYS_MONITOR_BASE    0xfffc0000	    /* start of monitor		*/  #define CONFIG_SYS_PCI_MEMBASE	    0x80000000	    /* mapped pci memory	*/ -#define CONFIG_SYS_PERIPHERAL_BASE 0xe0000000	    /* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE	    0xc0000000	    /* internal SRAM		*/  #define CONFIG_SYS_PCI_BASE	    0xd0000000	    /* internal PCI regs	*/ @@ -80,6 +79,12 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef CONFIG_SYS_EXT_SERIAL_CLOCK  #define CONFIG_BAUDRATE		115200 diff --git a/include/configs/pcs440ep.h b/include/configs/pcs440ep.h index 1f744b875..85152d12a 100644 --- a/include/configs/pcs440ep.h +++ b/include/configs/pcs440ep.h @@ -60,7 +60,6 @@  #define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000  /*Don't change either of these*/ -#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000	    /* internal peripherals*/  #define CONFIG_SYS_PCI_BASE	        0xe0000000	    /* internal PCI regs*/  /*Don't change either of these*/ @@ -80,11 +79,14 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef CONFIG_SYS_EXT_SERIAL_CLOCK		/* no external clk used		*/  #define CONFIG_BAUDRATE		115200  #define CONFIG_SERIAL_MULTI     1 -/*define this if you want console on UART1*/ -#undef CONFIG_UART1_CONSOLE  #define CONFIG_SYS_BAUDRATE_TABLE  \      {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} diff --git a/include/configs/quad100hd.h b/include/configs/quad100hd.h index b7781873b..0764cc85e 100644 --- a/include/configs/quad100hd.h +++ b/include/configs/quad100hd.h @@ -105,6 +105,11 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK			/* external serial clock */  #define CONFIG_SYS_BASE_BAUD		691200  #define CONFIG_BAUDRATE		115200 diff --git a/include/configs/redwood.h b/include/configs/redwood.h index 4b744a794..913db9480 100644 --- a/include/configs/redwood.h +++ b/include/configs/redwood.h @@ -47,7 +47,6 @@   * actual resources get mapped (not physical addresses)   *----------------------------------------------------------------------*/  #define CONFIG_SYS_FLASH_BASE		0xfff00000	/* start of FLASH	*/ -#define CONFIG_SYS_PERIPHERAL_BASE	0xa0000000	/* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE		0x90000000	/* internal SRAM	*/  #define CONFIG_SYS_PCI_BASE		0xd0000000	/* internal PCI regs	*/ @@ -77,6 +76,11 @@  #define CONFIG_SYS_FPGA_BASE		0xe2000000	/* epld			*/  #define CONFIG_SYS_OPER_FLASH		0xe7000000	/* SRAM - OPER Flash	*/ +/* + * Serial Port + */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +  /*-----------------------------------------------------------------------   * Initial RAM & stack pointer (placed in internal SRAM)   *----------------------------------------------------------------------*/ diff --git a/include/configs/sbc405.h b/include/configs/sbc405.h index 429b11c19..187002c10 100644 --- a/include/configs/sbc405.h +++ b/include/configs/sbc405.h @@ -147,6 +147,12 @@  #define CONFIG_SYS_MEMTEST_START	0x0400000	/* memtest works on	*/  #define CONFIG_SYS_MEMTEST_END		0x0C00000	/* 4 ... 12 MB in DRAM	*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock() +  #undef CONFIG_SYS_EXT_SERIAL_CLOCK		/* no external serial clock used */  #define CONFIG_SYS_BASE_BAUD		691200 diff --git a/include/configs/sc3.h b/include/configs/sc3.h index 19084cec4..094d38b27 100644 --- a/include/configs/sc3.h +++ b/include/configs/sc3.h @@ -76,6 +76,11 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/ +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #define CONFIG_SERIAL_MULTI  #undef CONFIG_SERIAL_SOFTWARE_FIFO  /* diff --git a/include/configs/sequoia.h b/include/configs/sequoia.h index 568d9fc0c..900d1dbdc 100644 --- a/include/configs/sequoia.h +++ b/include/configs/sequoia.h @@ -84,9 +84,6 @@  #define CONFIG_SYS_PCI_MEMBASE2	CONFIG_SYS_PCI_MEMBASE1 + 0x10000000  #define CONFIG_SYS_PCI_MEMBASE3	CONFIG_SYS_PCI_MEMBASE2 + 0x10000000 -/* Don't change either of these */ -#define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals	*/ -  #define CONFIG_SYS_USB2D0_BASE		0xe0000100  #define CONFIG_SYS_USB_DEVICE		0xe0000000  #define CONFIG_SYS_USB_HOST		0xe0000400 @@ -105,9 +102,8 @@  /*   * Serial Port   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200	/* ext. 11.059MHz clk	*/ -/* define this if you want console on UART1 */ -#undef CONFIG_UART1_CONSOLE  /*   * Environment diff --git a/include/configs/t3corp.h b/include/configs/t3corp.h index 41ee15b22..39ca7930b 100644 --- a/include/configs/t3corp.h +++ b/include/configs/t3corp.h @@ -89,8 +89,6 @@  #define CONFIG_SYS_SRAM_SIZE		(256 << 10)  #define CONFIG_SYS_LOCAL_CONF_REGS	0xEF000000 -#define CONFIG_SYS_PERIPHERAL_BASE	0xEF600000	/* internal periph. */ -  /*   * Initial RAM & stack pointer (placed in OCM)   */ @@ -104,7 +102,7 @@  /*   * Serial Port   */ -#undef CONFIG_UART1_CONSOLE	/* define this if you want console on UART1 */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  /*   * Environment diff --git a/include/configs/taihu.h b/include/configs/taihu.h index 836081d0d..a9954e457 100644 --- a/include/configs/taihu.h +++ b/include/configs/taihu.h @@ -127,11 +127,11 @@   * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,   * set Linux BASE_BAUD to 403200.   */ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* external serial clock */  #undef  CONFIG_SYS_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */  #define CONFIG_SYS_BASE_BAUD		691200 -#define CONFIG_UART1_CONSOLE	1  /*-----------------------------------------------------------------------   * I2C stuff diff --git a/include/configs/taishan.h b/include/configs/taishan.h index 6423fd7f4..ce4a61225 100644 --- a/include/configs/taishan.h +++ b/include/configs/taishan.h @@ -50,7 +50,6 @@   *----------------------------------------------------------------------*/  #define CONFIG_SYS_FLASH_BASE		0xfc000000	/* start of FLASH	*/  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped pci memory	*/ -#define CONFIG_SYS_PERIPHERAL_BASE	0xe0000000	/* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE		0xc0000000	/* internal SRAM	*/  #define CONFIG_SYS_PCI_BASE		0xd0000000	/* internal PCI regs	*/ @@ -77,7 +76,7 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ -#define CONFIG_UART1_CONSOLE	1	/* use of UART1 as console	*/ +#define CONFIG_CONS_INDEX	2	/* Use UART1			*/  #define CONFIG_SYS_EXT_SERIAL_CLOCK	(1843200 * 6)	/* Ext clk @ 11.059 MHz */  /*----------------------------------------------------------------------- diff --git a/include/configs/walnut.h b/include/configs/walnut.h index 630c0d3a3..191c28fc3 100644 --- a/include/configs/walnut.h +++ b/include/configs/walnut.h @@ -84,6 +84,7 @@   * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,   * set Linux BASE_BAUD to 403200.   */ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK	       /* external serial clock */  #undef	CONFIG_SYS_405_UART_ERRATA_59	       /* 405GP/CR Rev. D silicon */ diff --git a/include/configs/yosemite.h b/include/configs/yosemite.h index b66ab58d8..ed0560ad9 100644 --- a/include/configs/yosemite.h +++ b/include/configs/yosemite.h @@ -62,7 +62,6 @@  #define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000  /*Don't change either of these*/ -#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000	    /* internal peripherals*/  #define CONFIG_SYS_PCI_BASE	        0xe0000000	    /* internal PCI regs*/  /*Don't change either of these*/ @@ -84,9 +83,8 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #define CONFIG_SYS_EXT_SERIAL_CLOCK	11059200 /* use external 11.059MHz clk	*/ -/*define this if you want console on UART1*/ -#undef CONFIG_UART1_CONSOLE  /*-----------------------------------------------------------------------   * Environment diff --git a/include/configs/yucca.h b/include/configs/yucca.h index 0b4dfb8e7..dfba50859 100644 --- a/include/configs/yucca.h +++ b/include/configs/yucca.h @@ -60,7 +60,6 @@   * actual resources get mapped (not physical addresses)   *----------------------------------------------------------------------*/  #define CONFIG_SYS_FLASH_BASE		0xfff00000	/* start of FLASH	*/ -#define CONFIG_SYS_PERIPHERAL_BASE	0xa0000000	/* internal peripherals	*/  #define CONFIG_SYS_ISRAM_BASE		0x90000000	/* internal SRAM	*/  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped PCI memory	*/ @@ -106,7 +105,7 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ -#undef CONFIG_UART1_CONSOLE +#define CONFIG_CONS_INDEX	1	/* Use UART0			*/  #undef	CONFIG_SERIAL_SOFTWARE_FIFO  #undef CONFIG_SYS_EXT_SERIAL_CLOCK diff --git a/include/configs/zeus.h b/include/configs/zeus.h index 1ae990ff4..6fbf38a32 100644 --- a/include/configs/zeus.h +++ b/include/configs/zeus.h @@ -122,14 +122,18 @@  /*-----------------------------------------------------------------------   * Serial Port   *----------------------------------------------------------------------*/ +#define CONFIG_CONS_INDEX	1 +#define CONFIG_SYS_NS16550 +#define CONFIG_SYS_NS16550_SERIAL +#define CONFIG_SYS_NS16550_REG_SIZE	1 +#define CONFIG_SYS_NS16550_CLK		get_serial_clock()  #undef	CONFIG_SYS_EXT_SERIAL_CLOCK			/* external serial clock */ -#define CONFIG_SYS_BASE_BAUD		691200 +#define CONFIG_SYS_BASE_BAUD	691200  #define CONFIG_BAUDRATE		115200  #define CONFIG_SERIAL_MULTI -/* The following table includes the supported baudrates */ -#define CONFIG_SYS_BAUDRATE_TABLE	\ -	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} +#define CONFIG_SYS_BAUDRATE_TABLE  \ +    {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}  /*-----------------------------------------------------------------------   * Miscellaneous configurable options |