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
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46604
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Tim Wawrzynczak 2020-10-09 17:06:28 -06:00
parent 24b4af668b
commit c70505acee
2 changed files with 8 additions and 6 deletions

View File

@ -32,6 +32,13 @@ struct fw_config {
#if CONFIG(FW_CONFIG) #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. * fw_config_probe() - Check if field and option matches.
* @match: Structure containing field and option to probe. * @match: Structure containing field and option to probe.

View File

@ -12,12 +12,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
/** uint64_t fw_config_get(void)
* fw_config_get() - Provide firmware configuration value.
*
* Return 64bit firmware configuration value determined for the system.
*/
static uint64_t fw_config_get(void)
{ {
static uint64_t fw_config_value; static uint64_t fw_config_value;
static bool fw_config_value_initialized; static bool fw_config_value_initialized;