board: am57xx: Fix missing check for beagle_x15
PATCH 1/1 board: am57xx: Fix missing check for beagle_x15
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.
---
based on v2016.09-rc2
board/ti/am57xx/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/ti/am57xx/board.c +1 -1
@@ -342,7 +342,7 @@ static void setup_board_eeprom_env(void) name ="am57xx_evm" ; else if (board_is_am572x_idk()) name ="am572x_idk" ; - else + else if (!board_is_x15()) printf("Unidentified board claims %s in eeprom header\n", board_ti_get_name());
Signature · 1 line
2.9.1.200.gb1ec08f
PATCH 1/1 board: am57xx: Fix missing check for beagle_x15
Quoted 19 lines · Nishanth Menon
When beagleboard-X15 is booted, we see the following log:
Unidentified board claimsBBRDX15_in eeprom headerThis 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 <[email protected]>---
based on v2016.09-rc2
board/ti/am57xx/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/ti/am57xx/board.c +0
-0
board/ti/am57xx/board.c static void setup_board_eeprom_env(void) · line 347
Quoted 7 lines
board/ti/am57xx/board.c +1
-1@@ -342,7 +342,7 @@ static void setup_board_eeprom_env(void) name ="am57xx_evm" ; else if (board_is_am572x_idk()) name ="am572x_idk" ; - else + else if (!board_is_x15()) printf("Unidentified board claims %s in eeprom header\n", board_ti_get_name());
Instead an entry can be added for x15 like below? So, that future rev of x15 can be updated
board/ti/am57xx/board.c +3 -1
@@ -308,7 +308,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" ;
Signature · 4 lines
2.9.3 Thanks and regards, Lokesh
Quoted 2 lines
PATCH 1/1 board: am57xx: Fix missing check for beagle_x15
Quoted 3 lines · Lokesh Vutla
On Friday 02 September 2016 01:23 PM, Nishanth Menon wrote:
[...]
Quoted 8 lines
Instead an entry can be added for x15 like below? So, that future rev of x15 can be updated
board/ti/am57xx/board.c +0
-0
board/ti/am57xx/board.c static void setup_board_eeprom_env(void) · line 316
Quoted 10 lines
board/ti/am57xx/board.c +3
-1@@ -308,7 +308,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" ;
Yeah, makes sense to prepare for what we know is incoming anyways...
Signature · 3 lines
--- Regards, Nishanth Menon