diff options
Diffstat (limited to 'chip/npcx/system.c')
-rw-r--r-- | chip/npcx/system.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chip/npcx/system.c b/chip/npcx/system.c index 48727c2686..ac7056330f 100644 --- a/chip/npcx/system.c +++ b/chip/npcx/system.c @@ -1141,9 +1141,10 @@ int system_set_scratchpad(uint32_t value) return bbram_data_write(BBRM_DATA_INDEX_SCRATCHPAD, value); } -uint32_t system_get_scratchpad(void) +int system_get_scratchpad(uint32_t *value) { - return bbram_data_read(BBRM_DATA_INDEX_SCRATCHPAD); + *value = bbram_data_read(BBRM_DATA_INDEX_SCRATCHPAD); + return EC_SUCCESS; } int system_is_reboot_warm(void) |