board: fsl: lx2160ardb: add dts fixup function for RevC
authorFlorin Chiculita <florinlaurentiu.chiculita@nxp.com>
Wed, 21 Apr 2021 09:48:24 +0000 (12:48 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Wed, 28 Apr 2021 04:22:53 +0000 (09:52 +0530)
commitede6fe8d68cdb332c7e2e3a887e8c3dc50a00bd3
treea672b6a7d28fe10dfded68d22fd45b1f6bd26435
parentc66e21f69b03bafe2a387cfa19f53b4eb6afdb2a
board: fsl: lx2160ardb: add dts fixup function for RevC

Since the new RevC LX2160A-RDB board has its 10G Aquantia PHYs at
different MDIO bus addresses, we must update both the kernel DTS and
u-boot's DTS (in case of DM_ETH) in case the board is indeed RevC.
Use the newly introduced get_board_rev() function to trigger a fixup
of the kernel DTS to properly match the actual PHY addresses.
All this is encapsulated in the fdt_fixup_board_phy_revc() function
which will be used in the next patch.

Signed-off-by: Florin Chiculita <florinlaurentiu.chiculita@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
board/freescale/lx2160a/eth_lx2160ardb.c
board/freescale/lx2160a/lx2160a.h