summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/system.h b/include/system.h
index a4595b3651..e432a994c3 100644
--- a/include/system.h
+++ b/include/system.h
@@ -287,10 +287,15 @@ int system_get_chip_unique_id(uint8_t **id);
/**
* Optional board-level callback functions to read a unique serial number per
- * chip. Default implementation reads from flash (flash_read_serial).
+ * chip. Default implementation reads from flash/otp (flash/otp_read_serial).
*/
const char *board_read_serial(void) __attribute__((weak));
+/**
+ * Optional board-level callback functions to write a unique serial number per
+ * chip. Default implementation reads from flash/otp (flash/otp_write_serial).
+ */
+int board_write_serial(const char *serial) __attribute__((weak));
/*
* Common bbram entries. Chips don't necessarily need to implement
* all of these, error will be returned from system_get/set_bbram if