gizmo: reserve memory range for VGA ROM and ACPI RSDP

Create a reserved memory resource for range 0xc0000-0xfffff
where reside the VGA ROM (at 0xc0000) and ACPI root pointer
(at 0xfda80) so that depthcharge does not wipe these needed
structures during initialization.

BUG=None
BRANCH=none
TEST=Boot CrOS from depthcharge, VGA and ACPI are functional

Change-Id: Ic741dbb6766a1b0a16744d8d5288c8840379a8c5
Signed-off-by: Marcelo Povoa <marcelogp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/191098
Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
Marcelo Povoa 2014-03-21 14:19:04 -07:00 committed by chrome-internal-fetch
commit 38e689a9a3

View file

@ -76,6 +76,10 @@ static void mainboard_enable(device_t dev)
/* force the SATA port to GEN2 speeds */
RWMEM (ACPI_MMIO_BASE + PMIO_BASE + SB_PMIOA_REGDA, AccWidthUint8, 0xFB, 0x04);
/* Reserve memory for VGA ROM and ACPI RSDP table so
* that Depthcharge does not wipe them away */
reserved_ram_resource(dev, 0, 0xc0000 / KiB, 0x40000 / KiB);
}
struct chip_operations mainboard_ops = {