Skip to content
Snippets Groups Projects
Commit bf43ce6c authored by Nishanth Menon's avatar Nishanth Menon Committed by Tom Rini
Browse files

board: ti: am57xx: Add support for detection of reva3 variations for GPEVM


AM57xx evm Rev A3 with SR2.0 platform have incompatible changes for HDMI
GPIO requiring new dtb support. This implies we have to properly identify
the platform now as well. Hence provide a different board name for the
Rev A3 variations.

Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent a0c0b97c
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
#define board_is_x15() board_ti_is("BBRDX15_") #define board_is_x15() board_ti_is("BBRDX15_")
#define board_is_am572x_evm() board_ti_is("AM572PM_") #define board_is_am572x_evm() board_ti_is("AM572PM_")
#define board_is_am572x_evm_reva3() \
(board_ti_is("AM572PM_") && \
(strncmp("A.30", board_ti_get_rev(), 3) <= 0))
#define board_is_am572x_idk() board_ti_is("AM572IDK") #define board_is_am572x_idk() board_ti_is("AM572IDK")
#ifdef CONFIG_DRIVER_TI_CPSW #ifdef CONFIG_DRIVER_TI_CPSW
...@@ -390,15 +393,19 @@ static void setup_board_eeprom_env(void) ...@@ -390,15 +393,19 @@ static void setup_board_eeprom_env(void)
if (rc) if (rc)
goto invalid_eeprom; goto invalid_eeprom;
if (board_is_x15()) if (board_is_x15()) {
name = "beagle_x15"; name = "beagle_x15";
else if (board_is_am572x_evm()) } else if (board_is_am572x_evm()) {
name = "am57xx_evm"; if (board_is_am572x_evm_reva3())
else if (board_is_am572x_idk()) name = "am57xx_evm_reva3";
else
name = "am57xx_evm";
} else if (board_is_am572x_idk()) {
name = "am572x_idk"; name = "am572x_idk";
else } else {
printf("Unidentified board claims %s in eeprom header\n", printf("Unidentified board claims %s in eeprom header\n",
board_ti_get_name()); board_ti_get_name());
}
invalid_eeprom: invalid_eeprom:
set_board_info_env(name); set_board_info_env(name);
......
...@@ -93,6 +93,8 @@ ...@@ -93,6 +93,8 @@
"setenv fdtfile am572x-idk.dtb; fi;" \ "setenv fdtfile am572x-idk.dtb; fi;" \
"if test $board_name = am57xx_evm; then " \ "if test $board_name = am57xx_evm; then " \
"setenv fdtfile am57xx-beagle-x15.dtb; fi;" \ "setenv fdtfile am57xx-beagle-x15.dtb; fi;" \
"if test $board_name = am57xx_evm_reva3; then " \
"setenv fdtfile am57xx-beagle-x15.dtb; fi;" \
"if test $fdtfile = undefined; then " \ "if test $fdtfile = undefined; then " \
"echo WARNING: Could not determine device tree to use; fi; \0" \ "echo WARNING: Could not determine device tree to use; fi; \0" \
DFUARGS \ DFUARGS \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment