From 5d7c73e65b518a63a861a1a9c4965b6e67ae89a6 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Wed, 29 Sep 2010 16:58:38 +0200 Subject: ppc4xx: Use common ns16550 functions in 4xx UART POST driver This patch changes the PPC4xx POST UART driver to use the common NS16550 functions for receiving and sending. Additionally the local function for SoC divisor setup are removed. Instead the functions from arch/powerpc/cpu/ppc4xx/4xx_uart.c are used. This removes code duplication. Also the common CONFIG_SYS_NS16550_COMx defines are now used to describe the POST UART's. And a compile breakage is fixed, introduced by a git merge of the ppc4xx/next branch into master. Now "ppc4xx.h" is moved to "asm/ppc4xx.h". Fixed as well with this patch. Signed-off-by: Stefan Roese --- include/configs/lwmon5.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/configs/lwmon5.h') diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h index 23495838f4..4a3b1dc11d 100644 --- a/include/configs/lwmon5.h +++ b/include/configs/lwmon5.h @@ -185,7 +185,8 @@ CONFIG_SYS_POST_BSPEC5) /* Define here the base-addresses of the UARTs to test in POST */ -#define CONFIG_SYS_POST_UART_TABLE { UART0_BASE, UART1_BASE } +#define CONFIG_SYS_POST_UART_TABLE { CONFIG_SYS_NS16550_COM1, \ + CONFIG_SYS_NS16550_COM2 } #define CONFIG_POST_WATCHDOG { \ "Watchdog timer test", \ -- cgit v1.2.1