ACPI: Remove CBMEM TOC from GNVS
This existed for ChromeOS but was no longer used with DYNAMIC_CBMEM. Change-Id: I558a7ae333e5874670206e20a147dd6598a3a5e7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6032 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
parent
c862e44162
commit
a0b4a8d819
|
@ -72,9 +72,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
|
|
||||||
/* TPM Present */
|
/* TPM Present */
|
||||||
gnvs->tpmp = 1;
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
|
|
@ -64,9 +64,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -66,9 +66,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
|
|
||||||
/* TPM Present */
|
/* TPM Present */
|
||||||
gnvs->tpmp = 1;
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
|
|
@ -74,9 +74,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs, igd_opregion_t *opregion)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 1;
|
gnvs->ndid = 1;
|
||||||
gnvs->did[0] = 0x80000000;
|
gnvs->did[0] = 0x80000000;
|
||||||
|
|
|
@ -65,9 +65,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -75,9 +75,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
|
|
||||||
/* TPM Present */
|
/* TPM Present */
|
||||||
gnvs->tpmp = 1;
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
|
|
@ -52,9 +52,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
|
|
||||||
/* Top of Low Memory (start of resource allocation) */
|
/* Top of Low Memory (start of resource allocation) */
|
||||||
gnvs->tolm = nc_read_top_of_low_memory();
|
gnvs->tolm = nc_read_top_of_low_memory();
|
||||||
|
|
||||||
|
|
|
@ -72,9 +72,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
|
|
||||||
/* TPM Present */
|
/* TPM Present */
|
||||||
gnvs->tpmp = 1;
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
|
|
@ -68,9 +68,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -85,9 +85,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 1;
|
gnvs->s5u0 = 1;
|
||||||
gnvs->s5u1 = 1;
|
gnvs->s5u1 = 1;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
|
|
||||||
/* TPM Present */
|
/* TPM Present */
|
||||||
gnvs->tpmp = 1;
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
|
|
@ -55,9 +55,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
|
|
||||||
/* Enable DPTF */
|
/* Enable DPTF */
|
||||||
gnvs->dpte = 0;
|
gnvs->dpte = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long acpi_fill_madt(unsigned long current)
|
unsigned long acpi_fill_madt(unsigned long current)
|
||||||
|
|
|
@ -67,9 +67,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 1;
|
gnvs->s5u0 = 1;
|
||||||
gnvs->s5u1 = 1;
|
gnvs->s5u1 = 1;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -87,9 +87,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 1;
|
gnvs->s5u0 = 1;
|
||||||
gnvs->s5u1 = 1;
|
gnvs->s5u1 = 1;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -82,9 +82,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = 0;
|
|
||||||
|
|
||||||
/* TPM Present */
|
/* TPM Present */
|
||||||
gnvs->tpmp = 1;
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
|
|
@ -62,9 +62,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 0;
|
gnvs->ndid = 0;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -61,9 +61,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -61,9 +61,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -61,9 +61,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -89,9 +89,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -88,9 +88,6 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
gnvs->s5u0 = 1;
|
gnvs->s5u0 = 1;
|
||||||
gnvs->s5u1 = 1;
|
gnvs->s5u1 = 1;
|
||||||
|
|
||||||
/* CBMEM TOC */
|
|
||||||
gnvs->cmem = (u32)get_cbmem_toc();
|
|
||||||
|
|
||||||
/* IGD Displays */
|
/* IGD Displays */
|
||||||
gnvs->ndid = 3;
|
gnvs->ndid = 3;
|
||||||
gnvs->did[0] = 0x80000100;
|
gnvs->did[0] = 0x80000100;
|
||||||
|
|
|
@ -54,7 +54,7 @@ typedef struct {
|
||||||
u8 rsvd2[8];
|
u8 rsvd2[8];
|
||||||
|
|
||||||
/* Base Addresses */
|
/* Base Addresses */
|
||||||
u32 cmem; /* 0x30 - CBMEM TOC */
|
u32 obsolete_cmem; /* 0x30 - CBMEM TOC */
|
||||||
u32 tolm; /* 0x34 - Top of Low Memory */
|
u32 tolm; /* 0x34 - Top of Low Memory */
|
||||||
u32 cbmc; /* 0x38 - coreboot memconsole */
|
u32 cbmc; /* 0x38 - coreboot memconsole */
|
||||||
u8 rsvd3[196];
|
u8 rsvd3[196];
|
||||||
|
|
|
@ -56,7 +56,7 @@ typedef struct {
|
||||||
u8 rsvd2[8];
|
u8 rsvd2[8];
|
||||||
|
|
||||||
/* Base Addresses */
|
/* Base Addresses */
|
||||||
u32 cmem; /* 0x30 - CBMEM TOC */
|
u32 obsolete_cmem; /* 0x30 - CBMEM TOC */
|
||||||
u32 tolm; /* 0x34 - Top of Low Memory */
|
u32 tolm; /* 0x34 - Top of Low Memory */
|
||||||
u32 cbmc; /* 0x38 - coreboot memconsole */
|
u32 cbmc; /* 0x38 - coreboot memconsole */
|
||||||
u8 rsvd3[196];
|
u8 rsvd3[196];
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct {
|
||||||
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
||||||
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
||||||
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
||||||
u32 cmem; /* 0x38 - CBMEM TOC */
|
u32 obsolete_cmem; /* 0x38 - CBMEM TOC */
|
||||||
/* Integrated Graphics Device */
|
/* Integrated Graphics Device */
|
||||||
u8 igds; /* 0x3c - IGD state */
|
u8 igds; /* 0x3c - IGD state */
|
||||||
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct {
|
||||||
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
||||||
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
||||||
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
||||||
u32 cmem; /* 0x38 - CBMEM TOC */
|
u32 obsolete_cmem; /* 0x38 - CBMEM TOC */
|
||||||
/* Integrated Graphics Device */
|
/* Integrated Graphics Device */
|
||||||
u8 igds; /* 0x3c - IGD state */
|
u8 igds; /* 0x3c - IGD state */
|
||||||
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct {
|
||||||
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
||||||
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
||||||
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
||||||
u32 cmem; /* 0x38 - CBMEM TOC */
|
u32 obsolete_cmem; /* 0x38 - CBMEM TOC */
|
||||||
/* Integrated Graphics Device */
|
/* Integrated Graphics Device */
|
||||||
u8 igds; /* 0x3c - IGD state */
|
u8 igds; /* 0x3c - IGD state */
|
||||||
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct {
|
||||||
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
u8 s3u0; /* 0x35 - Enable USB0 in S3 */
|
||||||
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
u8 s3u1; /* 0x36 - Enable USB1 in S3 */
|
||||||
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
u8 s33g; /* 0x37 - Enable S3 in 3G */
|
||||||
u32 cmem; /* 0x38 - CBMEM TOC */
|
u32 obsolete_cmem; /* 0x38 - CBMEM TOC */
|
||||||
/* Integrated Graphics Device */
|
/* Integrated Graphics Device */
|
||||||
u8 igds; /* 0x3c - IGD state */
|
u8 igds; /* 0x3c - IGD state */
|
||||||
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
u8 tlst; /* 0x3d - Display Toggle List Pointer */
|
||||||
|
|
Loading…
Reference in New Issue