From 93078ba1ae144304a19c83ae7d565cb2c39c1d15 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 18 Jun 2021 12:56:21 +0000 Subject: Revert "soc/intel/broadwell/pch: Drop device NVS remainders" This reverts commit 34bd6ba97917b0bc54bb1f1e106a56b5c03e19ac. Reason for revert: Device NVS is expected by mainboard samus in payload depthcharge: https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/932c6ba2704987c0db64dbdfe03c158482c7ab11/src/board/samus/board.c#60 Not reverted: * ACPI_HAS_DEVICE_NVS does not exist anymore in ToT and hence it's selection in broadwell is not required. Signed-off-by: Furquan Shaikh Change-Id: Ic31d7ae62c5df72708b724160e96e10b46002eb1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54976 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/soc/intel/broadwell/include/soc/device_nvs.h | 24 ++++++++++++++++++++++++ src/soc/intel/broadwell/include/soc/pch.h | 21 --------------------- 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 src/soc/intel/broadwell/include/soc/device_nvs.h (limited to 'src/soc/intel/broadwell/include') diff --git a/src/soc/intel/broadwell/include/soc/device_nvs.h b/src/soc/intel/broadwell/include/soc/device_nvs.h new file mode 100644 index 0000000000..27304b573d --- /dev/null +++ b/src/soc/intel/broadwell/include/soc/device_nvs.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef _BROADWELL_DEVICE_NVS_H_ +#define _BROADWELL_DEVICE_NVS_H_ + +#include + +#define SIO_NVS_DMA 0 +#define SIO_NVS_I2C0 1 +#define SIO_NVS_I2C1 2 +#define SIO_NVS_SPI0 3 +#define SIO_NVS_SPI1 4 +#define SIO_NVS_UART0 5 +#define SIO_NVS_UART1 6 +#define SIO_NVS_SDIO 7 +#define SIO_NVS_ADSP 8 + +struct __packed device_nvs { + u8 enable[9]; + u32 bar0[9]; + u32 bar1[9]; +}; + +#endif diff --git a/src/soc/intel/broadwell/include/soc/pch.h b/src/soc/intel/broadwell/include/soc/pch.h index 8367a39b7f..8089f5bdb0 100644 --- a/src/soc/intel/broadwell/include/soc/pch.h +++ b/src/soc/intel/broadwell/include/soc/pch.h @@ -4,7 +4,6 @@ #define _BROADWELL_PCH_H_ #include -#include /* Haswell ULT Pch (LynxPoint-LP) */ #define PCH_LPT_LP_SAMPLE 0x9c41 @@ -26,25 +25,6 @@ #define PCH_PCS 0x84 #define PCH_PCS_PS_D3HOT 3 -enum pch_acpi_device { - PCH_ACPI_SDMA = 0, - PCH_ACPI_I2C0, - PCH_ACPI_I2C1, - PCH_ACPI_GSPI0, - PCH_ACPI_GSPI1, - PCH_ACPI_UART0, - PCH_ACPI_UART1, - PCH_ACPI_SDIO, - PCH_ACPI_ADSP, - NUM_PCH_ACPI_DEVICES, -}; - -struct pch_acpi_device_state { - bool enable; - uint32_t bar0; - uint32_t bar1; -}; - u8 pch_revision(void); u16 pch_type(void); int pch_is_wpt(void); @@ -52,7 +32,6 @@ int pch_is_wpt_ulx(void); u32 pch_read_soft_strap(int id); void pch_disable_devfn(struct device *dev); -struct pch_acpi_device_state *get_acpi_device_state(enum pch_acpi_device dev_index); void acpi_create_serialio_ssdt(acpi_header_t *ssdt); void broadwell_pch_finalize(void); -- cgit v1.2.3