]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: turris_mox: Setup Linux's device tree before boot
authorMarek Behún <marek.behun@nic.cz>
Wed, 8 Apr 2020 10:02:05 +0000 (12:02 +0200)
committerStefan Roese <sr@denx.de>
Tue, 14 Apr 2020 11:16:42 +0000 (13:16 +0200)
commite539383f662e2ffb34445c4fae41af41442de1f1
treed3bf908b7e94f02cb869bf65619bc5dd0706d850
parent050282723c6ffcd57ad64103f9f12ab9a0b51045
arm: mvebu: turris_mox: Setup Linux's device tree before boot

Patch Linux's device tree according to which Mox modules are connected.
Linux's device tree has all possible Mox module nodes preprogrammed, but
in disabled state.

If MOX B, MOX F or MOX G module is present, this code enables the PCI
node.

For the network modules (MOX C, MOX D and MOX E) are present, the code
enables corresponding ethernet and swtich nodes and DSA connections.
For the SFP cage the SFP GPIO controller node and SFP node are also
enabled.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_mox/turris_mox.c
configs/turris_mox_defconfig