soc/amd/cezanne: Disable legacy DMA IO ports

The legacy DMA is not used by linux. This change frees up those IO
ports.

When FSP-S runs, it re-enables the legacy DMA IO region, so we need to
disable it again.
  BOOTBLOCK: PMx00: 0xe3060bf3
  ROMSTAGE - Before FSP: PMx00: 0xe3060bf3
  ROMSTAGE - After FSP: PMx00: 0xe3060bf7

BUG=b:180949454

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I7792d1f8ea40eb1c7f6cca67e9907208884ac694
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51076
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Raul E Rangel 2021-02-24 16:21:00 -07:00 committed by Felix Held
parent c8c83ce027
commit b825acb958
2 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,7 @@ void fch_pre_init(void)
fch_smbus_init(); fch_smbus_init();
fch_enable_cf9_io(); fch_enable_cf9_io();
fch_enable_legacy_io(); fch_enable_legacy_io();
fch_disable_legacy_dma_io();
enable_aoac_devices(); enable_aoac_devices();
/* /*

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <amdblocks/acpimmio.h>
#include <amdblocks/memmap.h> #include <amdblocks/memmap.h>
#include <arch/cpu.h> #include <arch/cpu.h>
#include <console/console.h> #include <console/console.h>
@ -31,6 +32,9 @@ asmlinkage void car_stage_entry(void)
fsp_memory_init(acpi_is_wakeup_s3()); fsp_memory_init(acpi_is_wakeup_s3());
/* Fixup settings FSP-M should not be changing */
fch_disable_legacy_dma_io();
memmap_stash_early_dram_usage(); memmap_stash_early_dram_usage();
run_ramstage(); run_ramstage();