summaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-10-23 11:39:38 -0400
committerTom Rini <trini@konsulko.com>2023-10-23 11:39:38 -0400
commitcedc74123117cb0388766c4056c7d51846779f72 (patch)
tree3a31e16543d6ed29eb766f6315e1bbc57e611286 /include/init.h
parenta8f6dab0d41caaa985241d4d79690b8bcef40720 (diff)
parent27347893f02d4457b80357a38c194a726a43533a (diff)
Merge tag 'u-boot-at91-2024.01-b' of https://source.denx.de/u-boot/custodians/u-boot-at91
Second set of u-boot-at91 features for the 2024.01 cycle This feature set a new board named Conclusive KSTR sama5d27 with some small prerequisites patches.
Diffstat (limited to 'include/init.h')
-rw-r--r--include/init.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h
index 4e7fe26c200..d57a24fd00d 100644
--- a/include/init.h
+++ b/include/init.h
@@ -271,6 +271,20 @@ void board_init_r(struct global_data *id, ulong dest_addr)
int cpu_init_r(void);
int mac_read_from_eeprom(void);
+
+/**
+ * serial_read_from_eeprom - read the serial number from EEPROM
+ *
+ * This function reads the serial number from the EEPROM and sets the
+ * appropriate environment variable.
+ *
+ * The environment variable is only set if it has not been set
+ * already. This ensures that any user-saved variables are never
+ * overwritten.
+ *
+ * This function must be called after relocation.
+ */
+int serial_read_from_eeprom(int devnum);
int set_cpu_clk_info(void);
int update_flash_size(int flash_size);
int arch_early_init_r(void);