summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vendorcode/google/chromeos/gnvs.c42
-rw-r--r--src/vendorcode/google/chromeos/gnvs.h1
2 files changed, 0 insertions, 43 deletions
diff --git a/src/vendorcode/google/chromeos/gnvs.c b/src/vendorcode/google/chromeos/gnvs.c
index 6b545f4a50..024dbf8f7e 100644
--- a/src/vendorcode/google/chromeos/gnvs.c
+++ b/src/vendorcode/google/chromeos/gnvs.c
@@ -34,48 +34,6 @@ void chromeos_init_vboot(chromeos_acpi_t *chromeos)
memcpy(vboot_data->mehh, me_hash_saved, sizeof(vboot_data->mehh));
}
-void chromeos_set_vboot_data_ptr(void *blob)
-{
- /* This code has to be rewritten to pass the vboot table
- * pointer through the coreboot table instead of the
- * FDT, since FDT support was rejected upstream. For now
- * just make the code available for reference.
- */
-#if 0 // CONFIG_ADD_FDT
- int node_offset, addr_cell_len;
- const u32 *cell;
- uintptr_t table_addr = (uintptr_t)vboot_data;
- u32 table_addr32;
- u64 table_addr64;
- void *table_ptr;
-
- cell = fdt_getprop(blob, 0, "#address-cells", NULL);
- if (cell && *cell == 2) {
- addr_cell_len = 8;
- table_addr64 = cpu_to_fdt64(table_addr);
- table_ptr = &table_addr64;
- } else {
- addr_cell_len = 4;
- table_addr32 = cpu_to_fdt32(table_addr);
- table_ptr = &table_addr32;
- }
-
- node_offset = fdt_path_offset(blob, "/chromeos-config");
- if (node_offset < 0) {
- printk(BIOS_ERR,
- "Couldn't find /chromeos-config in the fdt.\n");
- return;
- }
-
- if (fdt_setprop(blob, node_offset, "gnvs-vboot-table",
- table_ptr, addr_cell_len) < 0) {
- printk(BIOS_ERR, "Couldn't set gnvs-vboot-table.\n");
- }
-#else
- printk(BIOS_ERR, "Can't set gnvs-vboot-table.\n");
-#endif
-}
-
void chromeos_set_me_hash(u32 *hash, int len)
{
if ((len*sizeof(u32)) > sizeof(vboot_data->mehh))
diff --git a/src/vendorcode/google/chromeos/gnvs.h b/src/vendorcode/google/chromeos/gnvs.h
index 36922baac8..6dd740fb77 100644
--- a/src/vendorcode/google/chromeos/gnvs.h
+++ b/src/vendorcode/google/chromeos/gnvs.h
@@ -63,7 +63,6 @@ typedef struct {
extern chromeos_acpi_t *vboot_data;
void chromeos_init_vboot(chromeos_acpi_t *chromeos);
-void chromeos_set_vboot_data_ptr(void *);
void chromeos_set_me_hash(u32*, int);
#endif