]> git.sur5r.net Git - u-boot/blobdiff - board/ti/common/board_detect.h
ti: common: board_detect: Allow settings board detection variables manually
[u-boot] / board / ti / common / board_detect.h
index 88b0a59f812fe3960c8c289f822ff0554a6270d8..e8d94844a7a4b1d6e65d0aa14c900232b9835267 100644 (file)
@@ -205,4 +205,21 @@ void set_board_info_env(char *name);
  */
 void board_ti_set_ethaddr(int index);
 
+/**
+ * ti_i2c_eeprom_am_set() - Setup the eeprom data with predefined values
+ * @name:      Name of the board
+ * @rev:       Revision of the board
+ *
+ * In some cases such as in RTC-only mode, we are able to skip reading eeprom
+ * and wasting i2c based initialization time by using predefined flags for
+ * detecting what platform we are booting on. For those platforms, provide
+ * a handy function to pre-program information.
+ *
+ * NOTE: many eeprom information such as serial number, mac address etc is not
+ * available.
+ *
+ * Return: 0 if all went fine, else return error.
+ */
+int ti_i2c_eeprom_am_set(const char *name, const char *rev);
+
 #endif /* __BOARD_DETECT_H */