Tim Wawrzynczak uploaded patch set #7 to this change.

View Change

fw_config: Use UNDEFINED_FW_CONFIG to mean unprovisioned

A mainboard might want to configure some things differently when a
device is in an unprovisioned state. In the case when fw_config comes
from the Chromium EC, then usually means that there is no FW_CONFIG tag
in the CBI, and hence the device is in an unprovisioned state. This patch
will make the fw_config value equal to UNDEFINED_FW_CONFIG in the case
of an error retrieving the value, as well as adding a function,
`fw_config_is_provisioned()` to indicate the provisioning status.

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: Ib3046233667e97a5f78961fabacbeb3099b3d442
---
M src/include/fw_config.h
M src/lib/fw_config.c
2 files changed, 15 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/47956/7

To view, visit change 47956. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib3046233667e97a5f78961fabacbeb3099b3d442
Gerrit-Change-Number: 47956
Gerrit-PatchSet: 7
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-Reviewer: Duncan Laurie <dlaurie@chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Caveh Jalali <caveh@chromium.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-MessageType: newpatchset