soc/amd/*/root_complex: use VGA_MMIO_* defines
Replace the magic constants by using defines. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I16179a37b6ee19bc3b4862b7dcb3bbc4caf63f2e Reviewed-on: https://review.coreboot.org/c/coreboot/+/75668 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
parent
32a66227bb
commit
a4ced631ec
|
@ -6,6 +6,7 @@
|
||||||
#include <amdblocks/ioapic.h>
|
#include <amdblocks/ioapic.h>
|
||||||
#include <amdblocks/memmap.h>
|
#include <amdblocks/memmap.h>
|
||||||
#include <arch/ioapic.h>
|
#include <arch/ioapic.h>
|
||||||
|
#include <arch/vga.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
@ -121,7 +122,7 @@ static void read_resources(struct device *dev)
|
||||||
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
||||||
|
|
||||||
/* 0xa0000 - 0xbffff: legacy VGA */
|
/* 0xa0000 - 0xbffff: legacy VGA */
|
||||||
mmio_resource_kb(dev, idx++, 0xa0000 / KiB, 0x20000 / KiB);
|
mmio_resource_kb(dev, idx++, VGA_MMIO_BASE / KiB, VGA_MMIO_SIZE / KiB);
|
||||||
|
|
||||||
/* 0xc0000 - 0xfffff: Option ROM */
|
/* 0xc0000 - 0xfffff: Option ROM */
|
||||||
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <amdblocks/ioapic.h>
|
#include <amdblocks/ioapic.h>
|
||||||
#include <amdblocks/memmap.h>
|
#include <amdblocks/memmap.h>
|
||||||
#include <arch/ioapic.h>
|
#include <arch/ioapic.h>
|
||||||
|
#include <arch/vga.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
@ -136,7 +137,7 @@ static void read_resources(struct device *dev)
|
||||||
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
||||||
|
|
||||||
/* 0xa0000 - 0xbffff: legacy VGA */
|
/* 0xa0000 - 0xbffff: legacy VGA */
|
||||||
mmio_resource_kb(dev, idx++, 0xa0000 / KiB, 0x20000 / KiB);
|
mmio_resource_kb(dev, idx++, VGA_MMIO_BASE / KiB, VGA_MMIO_SIZE / KiB);
|
||||||
|
|
||||||
/* 0xc0000 - 0xfffff: Option ROM */
|
/* 0xc0000 - 0xfffff: Option ROM */
|
||||||
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <amdblocks/ioapic.h>
|
#include <amdblocks/ioapic.h>
|
||||||
#include <amdblocks/memmap.h>
|
#include <amdblocks/memmap.h>
|
||||||
#include <arch/ioapic.h>
|
#include <arch/ioapic.h>
|
||||||
|
#include <arch/vga.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
@ -164,7 +165,7 @@ static void read_resources(struct device *dev)
|
||||||
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
||||||
|
|
||||||
/* 0xa0000 - 0xbffff: legacy VGA */
|
/* 0xa0000 - 0xbffff: legacy VGA */
|
||||||
mmio_resource_kb(dev, idx++, 0xa0000 / KiB, 0x20000 / KiB);
|
mmio_resource_kb(dev, idx++, VGA_MMIO_BASE / KiB, VGA_MMIO_SIZE / KiB);
|
||||||
|
|
||||||
/* 0xc0000 - 0xfffff: Option ROM */
|
/* 0xc0000 - 0xfffff: Option ROM */
|
||||||
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <amdblocks/ioapic.h>
|
#include <amdblocks/ioapic.h>
|
||||||
#include <amdblocks/memmap.h>
|
#include <amdblocks/memmap.h>
|
||||||
#include <arch/ioapic.h>
|
#include <arch/ioapic.h>
|
||||||
|
#include <arch/vga.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
@ -136,7 +137,7 @@ static void read_resources(struct device *dev)
|
||||||
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
||||||
|
|
||||||
/* 0xa0000 - 0xbffff: legacy VGA */
|
/* 0xa0000 - 0xbffff: legacy VGA */
|
||||||
mmio_resource_kb(dev, idx++, 0xa0000 / KiB, 0x20000 / KiB);
|
mmio_resource_kb(dev, idx++, VGA_MMIO_BASE / KiB, VGA_MMIO_SIZE / KiB);
|
||||||
|
|
||||||
/* 0xc0000 - 0xfffff: Option ROM */
|
/* 0xc0000 - 0xfffff: Option ROM */
|
||||||
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include <amdblocks/memmap.h>
|
#include <amdblocks/memmap.h>
|
||||||
#include <amdblocks/ioapic.h>
|
#include <amdblocks/ioapic.h>
|
||||||
#include <arch/ioapic.h>
|
#include <arch/ioapic.h>
|
||||||
|
#include <arch/vga.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
@ -121,7 +122,7 @@ static void read_resources(struct device *dev)
|
||||||
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB);
|
||||||
|
|
||||||
/* 0xa0000 - 0xbffff: legacy VGA */
|
/* 0xa0000 - 0xbffff: legacy VGA */
|
||||||
mmio_resource_kb(dev, idx++, 0xa0000 / KiB, 0x20000 / KiB);
|
mmio_resource_kb(dev, idx++, VGA_MMIO_BASE / KiB, VGA_MMIO_SIZE / KiB);
|
||||||
|
|
||||||
/* 0xc0000 - 0xfffff: Option ROM */
|
/* 0xc0000 - 0xfffff: Option ROM */
|
||||||
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB);
|
||||||
|
|
Loading…
Reference in New Issue