From 38e689a9a366d73f71965a85b69b41ab69929a10 Mon Sep 17 00:00:00 2001 From: Marcelo Povoa Date: Fri, 21 Mar 2014 14:19:04 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/191098 Reviewed-by: David Hendricks --- src/mainboard/gizmosphere/gizmo/mainboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainboard/gizmosphere/gizmo/mainboard.c b/src/mainboard/gizmosphere/gizmo/mainboard.c index b76cc9ad4d..be8c289eeb 100755 --- a/src/mainboard/gizmosphere/gizmo/mainboard.c +++ b/src/mainboard/gizmosphere/gizmo/mainboard.c @@ -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 = {