aboutsummaryrefslogtreecommitdiff
path: root/include/configs/lx2160ardb.h
diff options
context:
space:
mode:
authorFlorin Chiculita2023-05-31 18:02:18 +0300
committerPeng Fan2023-06-15 17:58:48 +0800
commitc761028e34fe18e0cd63fd80d1317cf17c8895bf (patch)
tree017ea2523d58dc26956935b5aabd1e5a3bd67212 /include/configs/lx2160ardb.h
parentee22330e81ae0022dd79b9b9d575b3eff589084c (diff)
board: fsl: lx2160ardb: add dts fixup function for RevC and newer
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 or newer. 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. Use the newly fdt_fixup_board_phy_revc() function introduced to update both kernel's DTS and u-boot's DTS. Signed-off-by: Florin Chiculita <florinlaurentiu.chiculita@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/configs/lx2160ardb.h')
-rw-r--r--include/configs/lx2160ardb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/lx2160ardb.h b/include/configs/lx2160ardb.h
index 8cc4e0db03f..6404b359111 100644
--- a/include/configs/lx2160ardb.h
+++ b/include/configs/lx2160ardb.h
@@ -11,6 +11,11 @@
/* RTC */
#define CFG_SYS_RTC_BUS_NUM 4
+#if defined(CONFIG_FSL_MC_ENET)
+#define AQR113C_PHY_ADDR1 0x0
+#define AQR113C_PHY_ADDR2 0x08
+#endif
+
/* EMC2305 */
#define I2C_MUX_CH_EMC2305 0x09
#define I2C_EMC2305_ADDR 0x4D