From d0330280369753a6520196425e6dfc7d7bd226a3 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 23 Oct 2014 15:15:45 -0700 Subject: [PATCH] chromeos: Add WiFi calibration CBMEM entry pointer to coreboot table This patch adds plumbing necessary to ensure that the CBMEM WiFi calibration blobs entry, if present, is referenced if the coreboot table. BRANCH=storm BUG=chrome-os-partner:32611 TEST=none - the entry is not yet in the CBMEM Change-Id: I04d52934ad1c5466d0d124b32df5ab17c0f59686 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/225270 Reviewed-by: Aaron Durbin --- src/include/boot/coreboot_tables.h | 1 + src/include/cbmem.h | 2 ++ src/lib/coreboot_table.c | 1 + 3 files changed, 4 insertions(+) diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h index c45ab1ff2a..5020760a0d 100644 --- a/src/include/boot/coreboot_tables.h +++ b/src/include/boot/coreboot_tables.h @@ -233,6 +233,7 @@ struct lb_range { #define LB_TAG_CBMEM_CONSOLE 0x0017 #define LB_TAG_MRC_CACHE 0x0018 #define LB_TAG_ACPI_GNVS 0x0024 +#define LB_TAG_WIFI_CALIBRATION 0x0027 struct lb_cbmem_ref { uint32_t tag; uint32_t size; diff --git a/src/include/cbmem.h b/src/include/cbmem.h index f544d870e5..da50d5f59d 100644 --- a/src/include/cbmem.h +++ b/src/include/cbmem.h @@ -50,6 +50,7 @@ #define CBMEM_ID_ACPI 0x41435049 #define CBMEM_ID_ACPI_GNVS 0x474e5653 #define CBMEM_ID_ACPI_GNVS_PTR 0x474e5650 +#define CBMEM_ID_WIFI_CALIBRATION 0x57494649 #define CBMEM_ID_CAR_GLOBALS 0xcac4e6a3 #define CBMEM_ID_CBTABLE 0x43425442 #define CBMEM_ID_CONSOLE 0x434f4e53 @@ -91,6 +92,7 @@ struct cbmem_id_to_name { { CBMEM_ID_ACPI, "ACPI " }, \ { CBMEM_ID_ACPI_GNVS, "ACPI GNVS " }, \ { CBMEM_ID_ACPI_GNVS_PTR, "GNVS PTR " }, \ + { CBMEM_ID_WIFI_CALIBRATION, "WIFI CLBR " }, \ { CBMEM_ID_CAR_GLOBALS, "CAR GLOBALS" }, \ { CBMEM_ID_CBTABLE, "COREBOOT " }, \ { CBMEM_ID_CONSOLE, "CONSOLE " }, \ diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index af1d7f0b34..901de0fcf6 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -282,6 +282,7 @@ static void add_cbmem_pointers(struct lb_header *header) {CBMEM_ID_TIMESTAMP, LB_TAG_TIMESTAMPS}, {CBMEM_ID_CONSOLE, LB_TAG_CBMEM_CONSOLE}, {CBMEM_ID_ACPI_GNVS, LB_TAG_ACPI_GNVS}, + {CBMEM_ID_WIFI_CALIBRATION, LB_TAG_WIFI_CALIBRATION} }; int i;