summaryrefslogtreecommitdiffstats
path: root/src/drivers/uart/oxpcie_early.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2018-12-26 20:15:58 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-12-30 21:32:24 +0000
commitfb25f9fa05751163fef2a4dabea03f07f91fdbb0 (patch)
treeadc6d0d7bd4ef4f4fbf931ca6604383ad0b82eec /src/drivers/uart/oxpcie_early.c
parentd7892bc3913fab68c880d3b7a1206b4c23d5dbe3 (diff)
downloadcoreboot-fb25f9fa05751163fef2a4dabea03f07f91fdbb0.tar.gz
coreboot-fb25f9fa05751163fef2a4dabea03f07f91fdbb0.tar.bz2
coreboot-fb25f9fa05751163fef2a4dabea03f07f91fdbb0.zip
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>
Diffstat (limited to 'src/drivers/uart/oxpcie_early.c')
-rw-r--r--src/drivers/uart/oxpcie_early.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/uart/oxpcie_early.c b/src/drivers/uart/oxpcie_early.c
index 42f7966e036c..2a01cb60b7cd 100644
--- a/src/drivers/uart/oxpcie_early.c
+++ b/src/drivers/uart/oxpcie_early.c
@@ -79,12 +79,12 @@ uintptr_t uart_platform_base(int idx)
return 0;
}
-#ifndef __PRE_RAM__
void oxford_remap(u32 new_base)
{
+#if ENV_RAMSTAGE
uart0_base = new_base + 0x1000;
-}
#endif
+}
unsigned int uart_platform_refclk(void)
{