summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/basecode/debug
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/basecode/debug')
-rw-r--r--src/soc/intel/common/basecode/debug/debug_feature.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/common/basecode/debug/debug_feature.c b/src/soc/intel/common/basecode/debug/debug_feature.c
index 1c55f0b887..df32e1dbf2 100644
--- a/src/soc/intel/common/basecode/debug/debug_feature.c
+++ b/src/soc/intel/common/basecode/debug/debug_feature.c
@@ -27,12 +27,12 @@ bool is_debug_cse_fw_update_disable(void)
return pre_mem_debug.cse_fw_update_disable == 1;
}
-uint8_t pre_mem_debug_init(void)
+enum cb_err pre_mem_debug_init(void)
{
if (spi_flash_read(boot_device_spi_flash(), PRE_MEM_FEATURE_CTRL_OFFSET,
PRE_MEM_FEATURE_CTRL_SZ, &pre_mem_debug)) {
printk(BIOS_ERR, "Failed to read Descriptor Region from SPI Flash\n");
- return 1;
+ return CB_ERR;
}
- return 0;
+ return CB_SUCCESS;
}