diff options
Diffstat (limited to 'include/configs/starfive-evb.h')
-rw-r--r-- | include/configs/starfive-evb.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/configs/starfive-evb.h b/include/configs/starfive-evb.h index a9ff995cb4..6f6e4b0b4c 100644 --- a/include/configs/starfive-evb.h +++ b/include/configs/starfive-evb.h @@ -177,8 +177,17 @@ #define CHIPA_SET \ "chipa_set=" \ - "if test ${chip_vision} = B; then " \ - "run chipa_gmac_set;" \ + "if test ${chip_vision} = B; then " \ + "fdt get name gmac1_subnode_name /soc/ethernet@16040000 0;" \ + "if test ${gmac1_subnode_name} = mdio; then " \ + "setenv gmac_conf_new 1;" \ + "else " \ + "setenv gmac_conf_new 0;" \ + "fi; " \ + "setenv gmac1_subnode_name;" \ + "if test ${gmac_conf_new} = 0; then " \ + "run chipa_gmac_set;" \ + "fi; " \ "fi; \0" \ "chipa_set_uboot=" \ "fdt addr ${fdtcontroladdr};" \ |