uart8250: Move under drivers/uart
Change-Id: Ic65ffaaa092330ed68d891e4a09a8b86cdc04a3a Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5236 Tested-by: build bot (Jenkins)
This commit is contained in:
parent
2b95da01e6
commit
bea6bf07df
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#if CONFIG_CONSOLE_SERIAL8250
|
#if CONFIG_CONSOLE_SERIAL8250
|
||||||
#include "drivers/uart/util.c"
|
#include "drivers/uart/util.c"
|
||||||
#include "lib/uart8250.c"
|
#include "drivers/uart/uart8250io.c"
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_CONSOLE_NE2K
|
#if CONFIG_CONSOLE_NE2K
|
||||||
#include "drivers/net/ne2k.c"
|
#include "drivers/net/ne2k.c"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/uart.h>
|
#include <console/uart.h>
|
||||||
#include <uart8250.h>
|
#include <drivers/uart/uart8250reg.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Configure line control settings for UART
|
* \brief Configure line control settings for UART
|
||||||
|
|
|
@ -5,6 +5,18 @@ bootblock-y += util.c
|
||||||
smm-y += util.c
|
smm-y += util.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_CONSOLE_SERIAL8250),y)
|
||||||
|
romstage-y += uart8250io.c
|
||||||
|
ramstage-y += uart8250io.c
|
||||||
|
smm-y += uart8250io.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_CONSOLE_SERIAL8250MEM),y)
|
||||||
|
romstage-y += uart8250mem.c
|
||||||
|
ramstage-y += uart8250mem.c
|
||||||
|
smm-y += uart8250mem.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_CONSOLE_SERIAL_UART),y)
|
ifeq ($(CONFIG_CONSOLE_SERIAL_UART),y)
|
||||||
|
|
||||||
ifeq ($(CONFIG_DRIVERS_UART_PL011),y)
|
ifeq ($(CONFIG_DRIVERS_UART_PL011),y)
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/uart.h>
|
#include <console/uart.h>
|
||||||
#include <uart8250.h>
|
|
||||||
#include <trace.h>
|
#include <trace.h>
|
||||||
|
#include "uart8250reg.h"
|
||||||
|
|
||||||
/* Should support 8250, 16450, 16550, 16550A type UARTs */
|
/* Should support 8250, 16450, 16550, 16550A type UARTs */
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/uart.h>
|
#include <console/uart.h>
|
||||||
#include <uart8250.h>
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
#include "uart8250reg.h"
|
||||||
|
|
||||||
/* Should support 8250, 16450, 16550, 16550A type UARTs */
|
/* Should support 8250, 16450, 16550, 16550A type UARTs */
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef UART8250_H
|
#ifndef UART8250REG_H
|
||||||
#define UART8250_H
|
#define UART8250REG_H
|
||||||
|
|
||||||
/* Data */
|
/* Data */
|
||||||
#define UART_RBR 0x00
|
#define UART_RBR 0x00
|
||||||
|
@ -105,4 +105,4 @@
|
||||||
#define UART_SCR 0x07
|
#define UART_SCR 0x07
|
||||||
#define UART_SPR 0x07
|
#define UART_SPR 0x07
|
||||||
|
|
||||||
#endif /* UART8250_H */
|
#endif /* UART8250REG_H */
|
|
@ -46,8 +46,6 @@ romstage-y += cbfs.c
|
||||||
romstage-$(CONFIG_COMPRESS_RAMSTAGE) += lzma.c
|
romstage-$(CONFIG_COMPRESS_RAMSTAGE) += lzma.c
|
||||||
#romstage-y += lzmadecode.c
|
#romstage-y += lzmadecode.c
|
||||||
romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c
|
romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c
|
||||||
romstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
|
|
||||||
romstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_EARLY_CBMEM_INIT),y)
|
ifeq ($(CONFIG_EARLY_CBMEM_INIT),y)
|
||||||
romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
|
romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
|
||||||
|
@ -88,8 +86,6 @@ ramstage-y += stack.c
|
||||||
ramstage-$(CONFIG_ARCH_X86) += gcc.c
|
ramstage-$(CONFIG_ARCH_X86) += gcc.c
|
||||||
ramstage-y += clog2.c
|
ramstage-y += clog2.c
|
||||||
romstage-y += clog2.c
|
romstage-y += clog2.c
|
||||||
ramstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
|
|
||||||
ramstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
|
|
||||||
ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
|
ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
|
||||||
ramstage-$(CONFIG_BOOTSPLASH) += jpeg.c
|
ramstage-$(CONFIG_BOOTSPLASH) += jpeg.c
|
||||||
ramstage-$(CONFIG_TRACE) += trace.c
|
ramstage-$(CONFIG_TRACE) += trace.c
|
||||||
|
@ -126,8 +122,6 @@ ifneq ($(CONFIG_HAVE_ARCH_MEMMOVE),y)
|
||||||
smm-y += memmove.c
|
smm-y += memmove.c
|
||||||
endif
|
endif
|
||||||
smm-y += cbfs.c memcmp.c
|
smm-y += cbfs.c memcmp.c
|
||||||
smm-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
|
|
||||||
smm-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
|
|
||||||
smm-y += gcc.c
|
smm-y += gcc.c
|
||||||
|
|
||||||
$(obj)/lib/version.ramstage.o : $(obj)/build.h
|
$(obj)/lib/version.ramstage.o : $(obj)/build.h
|
||||||
|
|
Loading…
Reference in New Issue