fw_config: Convert fw_config to a 64-bit field
We all knew this was coming, 32 bits is never enough. Doing this early so that it doesn't affect too much code yet. Take care of every usage of fw_config throughout the codebase so the conversion is all done at once. BUG=b:169668368 TEST=Hacked up this code to OR 0x1_000_0000 with CBI-sourced FW_CONFIG and verify the console print contained that bit. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I6f2065d347eafa0ef7b346caeabdc3b626402092 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45939 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/* sconfig, coreboot device tree compiler */
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -31,7 +32,7 @@ struct pci_irq_info {
|
||||
struct fw_config_option;
|
||||
struct fw_config_option {
|
||||
const char *name;
|
||||
unsigned int value;
|
||||
uint64_t value;
|
||||
struct fw_config_option *next;
|
||||
};
|
||||
struct fw_config_field;
|
||||
@@ -213,6 +214,6 @@ struct fw_config_field *new_fw_config_field(const char *name,
|
||||
unsigned int start_bit, unsigned int end_bit);
|
||||
|
||||
void add_fw_config_option(struct fw_config_field *field, const char *name,
|
||||
unsigned int value);
|
||||
uint64_t value);
|
||||
|
||||
void add_fw_config_probe(struct bus *bus, const char *field, const char *option);
|
||||
|
Reference in New Issue
Block a user