drivers/uart/oxpcie: Fix early console

Fix build for POSTCAR_STAGE=y.

Also add driver for bootblock and verstage.

Change-Id: If57033353c07854e21b630c58ad69931eb572da9
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30495
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki 2018-12-26 20:15:58 +02:00
parent d7892bc391
commit fb25f9fa05
2 changed files with 6 additions and 4 deletions

View File

@ -29,9 +29,11 @@ smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c
endif endif
ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y) ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y)
ramstage-y += oxpcie_early.c oxpcie.c bootblock-y += oxpcie_early.c
postcar-y += oxpcie_early.c verstage-y += oxpcie_early.c
romstage-y += oxpcie_early.c romstage-y += oxpcie_early.c
postcar-y += oxpcie_early.c
ramstage-y += oxpcie_early.c oxpcie.c
endif endif
ifeq ($(CONFIG_DRIVERS_UART_PL011),y) ifeq ($(CONFIG_DRIVERS_UART_PL011),y)

View File

@ -79,12 +79,12 @@ uintptr_t uart_platform_base(int idx)
return 0; return 0;
} }
#ifndef __PRE_RAM__
void oxford_remap(u32 new_base) void oxford_remap(u32 new_base)
{ {
#if ENV_RAMSTAGE
uart0_base = new_base + 0x1000; uart0_base = new_base + 0x1000;
}
#endif #endif
}
unsigned int uart_platform_refclk(void) unsigned int uart_platform_refclk(void)
{ {