diff options
Diffstat (limited to 'chip')
-rw-r--r-- | chip/g/factory_config.c | 2 | ||||
-rw-r--r-- | chip/g/factory_config.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/chip/g/factory_config.c b/chip/g/factory_config.c index 4e30b79e8c..8ead8dae67 100644 --- a/chip/g/factory_config.c +++ b/chip/g/factory_config.c @@ -25,7 +25,7 @@ static int factory_config_is_blank(uint64_t fc) * @return EC_SUCCESS or an error code in cases of various failures to read the * flash space. */ -static int read_factory_config(uint64_t *fc) +int read_factory_config(uint64_t *fc) { uint32_t *fc_p; int i; diff --git a/chip/g/factory_config.h b/chip/g/factory_config.h index 26345c1eb9..4f0de5fc3a 100644 --- a/chip/g/factory_config.h +++ b/chip/g/factory_config.h @@ -13,4 +13,11 @@ */ void print_factory_config(void); +/** + * Read the INFO1 factory config value into fc. + * + * @return EC_SUCCESS or an error code in cases of various failures to read the + * flash space. + */ +int read_factory_config(uint64_t *fc); #endif /* ! __EC_CHIP_G_FACTORY_CONFIG_H */ |