diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2019-11-20 21:28:15 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-11-29 09:15:41 +0000 |
commit | 5fadb46b362bed70d386823dcf0041e0d6ebd372 (patch) | |
tree | aee43d8614fee0081c6468a28c83dbcca02e8710 /src | |
parent | 2b77881564e2e9f9f9c6adb2200d55a3434fff47 (diff) |
drivers/uart/oxpcie_early.c: Drop CAR_GLOBAL_MIGRATION support
Change-Id: Ibea14a4cfb7285af42a7493742636c8dc8fe0a33
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37041
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/uart/oxpcie_early.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/uart/oxpcie_early.c b/src/drivers/uart/oxpcie_early.c index f6b4040807..d12b42ace2 100644 --- a/src/drivers/uart/oxpcie_early.c +++ b/src/drivers/uart/oxpcie_early.c @@ -14,12 +14,11 @@ #include <stdint.h> #include <stddef.h> #include <device/pci_ops.h> -#include <arch/early_variables.h> #include <console/uart.h> #include <device/pci.h> #include <device/pci_def.h> -static unsigned int oxpcie_present CAR_GLOBAL; +static unsigned int oxpcie_present; static DEVTREE_CONST u32 uart0_base = CONFIG_EARLY_PCI_MMIO_BASE + 0x1000; int pci_early_device_probe(u8 bus, u8 dev, u32 mmio_base) @@ -58,13 +57,13 @@ int pci_early_device_probe(u8 bus, u8 dev, u32 mmio_base) reg16 |= PCI_COMMAND_MEMORY; pci_s_write_config16(device, PCI_COMMAND, reg16); - car_set_var(oxpcie_present, 1); + oxpcie_present = 1; return 0; } static int oxpcie_uart_active(void) { - return (car_get_var(oxpcie_present)); + return oxpcie_present; } uintptr_t uart_platform_base(int idx) |