@@ -46,7 +46,7 @@ DECLARE_GLOBAL_DATA_PTR;
#define GPIO_DDR_VTT_EN 203
const struct omap_sysinfo sysinfo = {
- "Board: BeagleBoard x15\n"
+ "Board: UNKNOWN(BeagleBoard X15?)\n"
};
static const struct dmm_lisa_map_regs beagle_x15_lisa_regs = {
@@ -262,6 +262,27 @@ void do_board_detect(void)
#else /* CONFIG_SPL_BUILD */
+void do_board_detect(void)
+{
+ struct ti_am_eeprom *ep;
+ char *bname = NULL;
+ int rc;
+
+ rc = ti_i2c_eeprom_am_get(CONFIG_EEPROM_BUS_ADDRESS,
+ CONFIG_EEPROM_CHIP_ADDRESS, &ep);
+ if (rc)
+ printf("ti_i2c_eeprom_init failed %d\n", rc);
+
+ if (board_is_x15())
+ bname = "BeagleBoard X15";
+ else if (board_is_am572x_evm())
+ bname = "AM572x EVM";
+
+ if (bname)
+ snprintf(sysinfo.board_string, sizeof(sysinfo.board_string),
+ "Board: %s\n", bname);
+}
+
static void setup_board_eeprom_env(void)
{
char *name = "beagle_x15";