Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46604 )
Change subject: fw_config: Make fw_config_get() public ......................................................................
fw_config: Make fw_config_get() public
Further patches will make use of this raw 64-bit value.
Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org Change-Id: I161893c09da6a44265299f6ae3c3a81249a96084 --- M src/include/fw_config.h M src/lib/fw_config.c 2 files changed, 8 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/46604/1
diff --git a/src/include/fw_config.h b/src/include/fw_config.h index 494ce7f..c9ef75f 100644 --- a/src/include/fw_config.h +++ b/src/include/fw_config.h @@ -33,6 +33,13 @@ #if CONFIG(FW_CONFIG)
/** + * fw_config_get() - Provide firmware configuration value. + * + * Return 64bit firmware configuration value determined for the system. + */ +uint64_t fw_config_get(void); + +/** * fw_config_probe() - Check if field and option matches. * @match: Structure containing field and option to probe. * diff --git a/src/lib/fw_config.c b/src/lib/fw_config.c index 0973cbe..e17d40e 100644 --- a/src/lib/fw_config.c +++ b/src/lib/fw_config.c @@ -12,12 +12,7 @@ #include <stdbool.h> #include <stdint.h>
-/** - * fw_config_get() - Provide firmware configuration value. - * - * Return 64bit firmware configuration value determined for the system. - */ -static uint64_t fw_config_get(void) +uint64_t fw_config_get(void) { static uint64_t fw_config_value; static bool fw_config_value_initialized;