cbtable: remove chromeos_acpi from cbtable
Since we can derive chromeos_acpi's location from that of ACPI GNVS, remove chromeos_acpi entry from cbtable and instead use acpi_gnvs + GVNS_CHROMEOS_ACPI_OFFSET. BUG=b:112288216 TEST=None CQ-DEPEND=CL:1179725 Change-Id: I74d8a9965a0ed7874ff03884e7a921fd725eace9 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://review.coreboot.org/28190 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Martin Roth
parent
5846d5727a
commit
44cff7a897
@@ -55,6 +55,6 @@ typedef struct global_nvs_t {
|
||||
/* ChromeOS specific (0x100 - 0xfff) */
|
||||
chromeos_acpi_t chromeos;
|
||||
} __packed global_nvs_t;
|
||||
check_member(global_nvs_t, chromeos, 0x100);
|
||||
check_member(global_nvs_t, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
|
||||
|
||||
#endif /* __SOC_STONEYRIDGE_NVS_H__ */
|
||||
|
@@ -53,6 +53,6 @@ typedef struct global_nvs_t {
|
||||
/* ChromeOS specific (0x100 - 0xfff) */
|
||||
chromeos_acpi_t chromeos;
|
||||
} __packed global_nvs_t;
|
||||
check_member(global_nvs_t, chromeos, 0x100);
|
||||
check_member(global_nvs_t, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
|
||||
|
||||
#endif /* _SOC_APOLLOLAKE_NVS_H_ */
|
||||
|
@@ -19,9 +19,6 @@
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
/* Offset in Global NVS where this structure lives */
|
||||
#define DEVICE_NVS_OFFSET 0x1000
|
||||
|
||||
#define LPSS_NVS_SIO_DMA1 0
|
||||
#define LPSS_NVS_I2C1 1
|
||||
#define LPSS_NVS_I2C2 2
|
||||
|
@@ -102,7 +102,7 @@ typedef struct global_nvs_t {
|
||||
/* Baytrail LPSS (0x1000) */
|
||||
device_nvs_t dev;
|
||||
} __packed global_nvs_t;
|
||||
check_member(global_nvs_t, chromeos, 0x100);
|
||||
check_member(global_nvs_t, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
|
||||
|
||||
void acpi_create_gnvs(global_nvs_t *gnvs);
|
||||
#ifdef __SMM__
|
||||
|
@@ -20,9 +20,6 @@
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
/* Offset in Global NVS where this structure lives */
|
||||
#define DEVICE_NVS_OFFSET 0x1000
|
||||
|
||||
#define LPSS_NVS_SIO_DMA1 0
|
||||
#define LPSS_NVS_I2C1 1
|
||||
#define LPSS_NVS_I2C2 2
|
||||
|
@@ -106,7 +106,7 @@ typedef struct global_nvs_t {
|
||||
/* LPSS (0x1000) */
|
||||
device_nvs_t dev;
|
||||
} __packed global_nvs_t;
|
||||
check_member(global_nvs_t, chromeos, 0x100);
|
||||
check_member(global_nvs_t, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
|
||||
|
||||
void acpi_create_gnvs(global_nvs_t *gnvs);
|
||||
#if ENV_SMM
|
||||
|
@@ -19,9 +19,6 @@
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
/* Offset in Global NVS where this structure lives */
|
||||
#define DEVICE_NVS_OFFSET 0x1000
|
||||
|
||||
#define SIO_NVS_DMA 0
|
||||
#define SIO_NVS_I2C0 1
|
||||
#define SIO_NVS_I2C1 2
|
||||
|
@@ -94,7 +94,7 @@ typedef struct global_nvs_t {
|
||||
/* Device specific (0x1000) */
|
||||
device_nvs_t dev;
|
||||
} __packed global_nvs_t;
|
||||
check_member(global_nvs_t, chromeos, 0x100);
|
||||
check_member(global_nvs_t, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
|
||||
|
||||
void acpi_create_gnvs(global_nvs_t *gnvs);
|
||||
#ifdef __SMM__
|
||||
|
@@ -46,7 +46,7 @@ typedef struct global_nvs_t {
|
||||
/* ChromeOS specific (0x100 - 0xfff) */
|
||||
chromeos_acpi_t chromeos;
|
||||
} __packed global_nvs_t;
|
||||
check_member(global_nvs_t, chromeos, 0x100);
|
||||
check_member(global_nvs_t, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
|
||||
|
||||
|
||||
#endif
|
||||
|
@@ -19,9 +19,6 @@
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
/* Offset in Global NVS where this structure lives */
|
||||
#define DEVICE_NVS_OFFSET 0x1000
|
||||
|
||||
#define LPSS_NVS_SIO_DMA1 0
|
||||
#define LPSS_NVS_I2C1 1
|
||||
#define LPSS_NVS_I2C2 2
|
||||
|
@@ -20,9 +20,6 @@
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
/* Offset in Global NVS where this structure lives */
|
||||
#define DEVICE_NVS_OFFSET 0x1000
|
||||
|
||||
#define SIO_NVS_I2C0 0
|
||||
#define SIO_NVS_I2C1 1
|
||||
#define SIO_NVS_I2C2 2
|
||||
|
@@ -102,6 +102,6 @@ typedef struct global_nvs_t {
|
||||
/* ChromeOS specific (0x100 - 0xfff) */
|
||||
chromeos_acpi_t chromeos;
|
||||
} __packed global_nvs_t;
|
||||
check_member(global_nvs_t, chromeos, 0x100);
|
||||
check_member(global_nvs_t, chromeos, GNVS_CHROMEOS_ACPI_OFFSET);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user