soc/amd/common/blocks/lpc: Remove common SPI registers

Use the SoC versions instead.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Ia0b8129b165f8a2e6be6706ab2e3f2d39e1025a0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50446
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
Raul E Rangel 2021-02-09 11:24:13 -07:00 committed by Felix Held
parent 6ba1fcac34
commit 466edb51b4
5 changed files with 5 additions and 10 deletions

View File

@ -113,15 +113,6 @@
#define LPC_WIDEIO2_GENERIC_PORT 0x90 #define LPC_WIDEIO2_GENERIC_PORT 0x90
#define SPIROM_BASE_ADDRESS_REGISTER 0xa0
#define SPI_BASE_ALIGNMENT BIT(6)
#define SPI_BASE_RESERVED (BIT(4) | BIT(5))
#define ROUTE_TPM_2_SPI BIT(3)
#define SPI_ABORT_ENABLE BIT(2)
#define SPI_ROM_ENABLE BIT(1)
#define SPI_ROM_ALT_ENABLE BIT(0)
#define SPI_PRESERVE_BITS (BIT(0) | BIT(1) | BIT(2) | BIT(3))
/* LPC register 0xb8 is DWORD, here there are definitions for byte /* LPC register 0xb8 is DWORD, here there are definitions for byte
access. For example, bits 31-24 are accessed through byte access access. For example, bits 31-24 are accessed through byte access
at register 0xbb. */ at register 0xbb. */

View File

@ -16,8 +16,9 @@
#include <amdblocks/espi.h> #include <amdblocks/espi.h>
#include <amdblocks/lpc.h> #include <amdblocks/lpc.h>
#include <soc/acpi.h> #include <soc/acpi.h>
#include <soc/southbridge.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/lpc.h>
#include <soc/southbridge.h>
/* Most systems should have already enabled the bridge */ /* Most systems should have already enabled the bridge */
void __weak soc_late_lpc_bridge_enable(void) { } void __weak soc_late_lpc_bridge_enable(void) { }

View File

@ -8,6 +8,7 @@
#include <amdblocks/acpimmio.h> #include <amdblocks/acpimmio.h>
#include <amdblocks/lpc.h> #include <amdblocks/lpc.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/lpc.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
/* The LPC-ISA bridge is always at D14F3 */ /* The LPC-ISA bridge is always at D14F3 */

View File

@ -6,6 +6,7 @@
#include <arch/mmio.h> #include <arch/mmio.h>
#include <console/console.h> #include <console/console.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/lpc.h>
#include <stdint.h> #include <stdint.h>
static void fch_spi_set_spi100(int norm, int fast, int alt, int tpm) static void fch_spi_set_spi100(int norm, int fast, int alt, int tpm)

View File

@ -26,6 +26,7 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <agesa_headers.h> #include <agesa_headers.h>
#include <soc/acpi.h> #include <soc/acpi.h>
#include <soc/lpc.h>
#include <soc/nvs.h> #include <soc/nvs.h>
#include <types.h> #include <types.h>