summaryrefslogtreecommitdiff
path: root/src/mainboard/prodrive/hermes/eeprom.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2022-09-09 15:15:22 +0200
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-08 21:07:46 +0000
commit373517cdeb5d97caa4585880b4fd74a3669ffd7f (patch)
treec944556c513315a8c92f5562b5ac56a48dccdac7 /src/mainboard/prodrive/hermes/eeprom.c
parentc96056481115fd6656be87d62d039dfd5f0f591f (diff)
mb/prodrive/hermes: Write reset cause regs to EEPROM
Write the value for reset cause registers to the EEPROM for debugging. Change-Id: I827f38731fd868aac72103957e01aac8263f1cd3 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67483 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/prodrive/hermes/eeprom.c')
-rw-r--r--src/mainboard/prodrive/hermes/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/prodrive/hermes/eeprom.c b/src/mainboard/prodrive/hermes/eeprom.c
index 4d671332ce..5defff6fc1 100644
--- a/src/mainboard/prodrive/hermes/eeprom.c
+++ b/src/mainboard/prodrive/hermes/eeprom.c
@@ -153,7 +153,7 @@ void report_eeprom_error(const size_t off)
* Write a single byte into the EEPROM at specified offset.
* Returns true on error, false on success.
*/
-static bool eeprom_write_byte(const uint8_t data, const uint16_t write_offset)
+bool eeprom_write_byte(const uint8_t data, const uint16_t write_offset)
{
int ret = 0;