util/sconfig: Probe device when fw_config is unprovisioned
When fw_config is unprovisioned (eg. in the factory), devices that do not have any probe list are enabled by default and those that have probe list are disabled. On mainboards that support multiple types of boot critical devices (eg. storage) through probing fw_config, all of them are disabled when fw_config is unprovisioned. Hence the devices do not boot to OS. Add sconfig fw_config rule `probe unprovisioned` to enable such devices when fw_config is unprovisioned. BUG=None TEST=Build Brox firmware and boot to OS when fw_config is unprovisioned. Change-Id: I178f821e077912776d654971924d67203a7c43df Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83983 Reviewed-by: Jon Murphy <jpmurphy@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com> Reviewed-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
This commit is contained in:
committed by
Felix Held
parent
f5b9e9aed1
commit
6bdc3becfd
@@ -8,6 +8,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct resource;
|
||||
struct resource {
|
||||
@@ -176,6 +177,7 @@ struct device {
|
||||
|
||||
/* List of field+option to probe. */
|
||||
struct fw_config_probe *probe;
|
||||
bool enable_on_unprovisioned_fw_config;
|
||||
};
|
||||
|
||||
extern struct bus *root_parent;
|
||||
@@ -226,4 +228,6 @@ void add_fw_config_probe(struct bus *bus, const char *field, const char *option)
|
||||
void append_fw_config_bits(struct fw_config_field_bits **bits,
|
||||
unsigned int start_bit, unsigned int end_bit);
|
||||
|
||||
void probe_unprovisioned_fw_config(struct bus *bus);
|
||||
|
||||
void add_device_ops(struct bus *, char *ops_id);
|
||||
|
Reference in New Issue
Block a user