board: am57xx: Fix missing check for beagle_x15
authorNishanth Menon <nm@ti.com>
Fri, 2 Sep 2016 18:51:33 +0000 (13:51 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 7 Sep 2016 12:49:05 +0000 (08:49 -0400)
When beagleboard-X15 is booted, we see the following log:
Unidentified board claims BBRDX15_ in eeprom header

This is because of the missing check for x15 (the default) and reports
an error for a valid board configuration. Fix the same.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/am57xx/board.c

index 927d1364fe46736d0e52ab37d29e988d6125cbe0..64de60254136e7485213bf9aa6ba933344058e8e 100644 (file)
@@ -338,7 +338,9 @@ static void setup_board_eeprom_env(void)
        if (rc)
                goto invalid_eeprom;
 
-       if (board_is_am572x_evm())
+       if (board_is_x15())
+               name = "beagle_x15";
+       else if (board_is_am572x_evm())
                name = "am57xx_evm";
        else if (board_is_am572x_idk())
                name = "am572x_idk";