summaryrefslogtreecommitdiff
path: root/board/dhelectronics
diff options
context:
space:
mode:
authorPhilip Oberfichtner <pro@denx.de>2022-05-20 10:46:19 +0200
committerStefano Babic <sbabic@denx.de>2022-05-20 12:36:48 +0200
commite1e0d9ab9f256ed0919c9414f9c172c5de79ed57 (patch)
treeb270bf3263da35a359e29ca8cf1f26e3ae3ea3b9 /board/dhelectronics
parent326337fb005f968911d897867d09d1228b070d84 (diff)
downloadu-boot-e1e0d9ab9f256ed0919c9414f9c172c5de79ed57.tar.gz
u-boot-e1e0d9ab9f256ed0919c9414f9c172c5de79ed57.tar.bz2
u-boot-e1e0d9ab9f256ed0919c9414f9c172c5de79ed57.zip
ARM: imx6: Fix broken DT path in DH board file
In the DH electronics iMX6 board file fix the outdated eeprom path by using a DT label instead. The label has been newly created for all iMX6QDL DHCOM boards. Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Philip Oberfichtner <pro@denx.de>
Diffstat (limited to 'board/dhelectronics')
-rw-r--r--board/dhelectronics/dh_imx6/dh_imx6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
index 2969e90a70..6059f96e80 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6.c
@@ -100,9 +100,9 @@ static int setup_dhcom_mac_from_fuse(void)
return 0;
}
- eeprom = ofnode_path("/soc/aips-bus@2100000/i2c@21a8000/eeprom@50");
+ eeprom = ofnode_get_aliases_node("eeprom0");
if (!ofnode_valid(eeprom)) {
- printf("Invalid hardware path to EEPROM!\n");
+ printf("Can't find eeprom0 alias!\n");
return -ENODEV;
}