mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected
When Mox SFP module is connected after Topaz or Peridot module then port DT node already contains "sfp" label. But Mox SFP module can be connected also without Topaz or Peridot module in which case it is connected directly into he eth1 DT node, which is without any label. So add "sfp" label into eth1 DT node in this case. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <kabel@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
455f55e4a3
commit
c02eff8fcf
1 changed files with 5 additions and 0 deletions
|
@ -821,6 +821,11 @@ int ft_board_setup(void *blob, struct bd_info *bd)
|
|||
"sgmii");
|
||||
if (res < 0)
|
||||
return res;
|
||||
|
||||
res = fdt_setprop_string(blob, node, "label",
|
||||
"sfp");
|
||||
if (res < 0)
|
||||
return res;
|
||||
}
|
||||
|
||||
res = fdt_status_okay_by_compatible(blob, "cznic,moxtet-gpio");
|
||||
|
|
Loading…
Reference in a new issue