summaryrefslogtreecommitdiff
path: root/chip/mt_scp/mt8183/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mt_scp/mt8183/system.c')
-rw-r--r--chip/mt_scp/mt8183/system.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/chip/mt_scp/mt8183/system.c b/chip/mt_scp/mt8183/system.c
index dc822e47d5..03f39298c9 100644
--- a/chip/mt_scp/mt8183/system.c
+++ b/chip/mt_scp/mt8183/system.c
@@ -35,9 +35,10 @@ int system_set_scratchpad(uint32_t value)
return EC_SUCCESS;
}
-uint32_t system_get_scratchpad(void)
+int system_get_scratchpad(uint32_t *value)
{
- return SCP_GPR[0] & 0xffff;
+ *value = SCP_GPR[0] & 0xffff;
+ return EC_SUCCESS;
}
const char *system_get_chip_vendor(void)