summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index c7304a4d92..0f01907574 100644
--- a/include/system.h
+++ b/include/system.h
@@ -285,6 +285,12 @@ const char *system_get_chip_revision(void);
*/
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).
+ */
+const char *board_read_serial(void) __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