[coreboot-gerrit] New patch to review for coreboot: 829ca8a chromeos: Add WiFi calibration CBMEM entry pointer to coreboot table

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Thu Apr 2 00:00:34 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9232

-gerrit

commit 829ca8a8924d29f83589f5bf97e2abb39f95869e
Author: Vadim Bendebury <vbendeb at chromium.org>
Date:   Thu Oct 23 15:15:45 2014 -0700

    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: I072f2368b628440b6fe84f310eebc1ab945f809e
    Signed-off-by: Stefan Reinauer <reinauer at chromium.org>
    Original-Commit-Id: d0330280369753a6520196425e6dfc7d7bd226a3
    Original-Change-Id: I04d52934ad1c5466d0d124b32df5ab17c0f59686
    Original-Signed-off-by: Vadim Bendebury <vbendeb at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/225270
    Original-Reviewed-by: Aaron Durbin <adurbin at chromium.org>
---
 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 fc44a3c..46c1df5 100644
--- a/src/include/boot/coreboot_tables.h
+++ b/src/include/boot/coreboot_tables.h
@@ -239,6 +239,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 8ba0881..8378a17 100644
--- a/src/include/cbmem.h
+++ b/src/include/cbmem.h
@@ -73,6 +73,7 @@
 #define CBMEM_ID_SMM_SAVE_SPACE	0x07e9acee
 #define CBMEM_ID_RAM_OOPS	0x05430095
 #define CBMEM_ID_MEMINFO	0x494D454D
+#define CBMEM_ID_WIFI_CALIBRATION 0x57494649
 #define CBMEM_ID_AMDMCT_MEMINFO 0x494D454E
 #define CBMEM_ID_SPINTABLE	0x59175917
 #define CBMEM_ID_NONE		0x00000000
@@ -121,6 +122,7 @@ struct cbmem_id_to_name {
 	{ CBMEM_ID_RAM_OOPS,		"RAMOOPS    " }, \
 	{ CBMEM_ID_MEMINFO,		"MEM INFO   " }, \
 	{ CBMEM_ID_AMDMCT_MEMINFO,	"AMDMEM INFO" }, \
+	{ CBMEM_ID_WIFI_CALIBRATION,	"WIFI CLBR  " }, \
 	{ CBMEM_ID_SPINTABLE,		"SPIN TABLE " },
 
 struct cbmem_entry;
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index 4126e82..d6d84cd 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -239,6 +239,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;
 



More information about the coreboot-gerrit mailing list