mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
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>
This commit is contained in:
parent
326337fb00
commit
e1e0d9ab9f
2 changed files with 13 additions and 2 deletions
|
@ -3,6 +3,17 @@
|
||||||
* Copyright (C) 2020 Harald Seiler <hws@denx.de>
|
* Copyright (C) 2020 Harald Seiler <hws@denx.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
aliases {
|
||||||
|
eeprom0 = &eeprom0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c3 {
|
||||||
|
eeprom0: eeprom@50 {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
®_usb_otg_vbus {
|
®_usb_otg_vbus {
|
||||||
gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>;
|
gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
|
|
|
@ -100,9 +100,9 @@ static int setup_dhcom_mac_from_fuse(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
eeprom = ofnode_path("/soc/aips-bus@2100000/i2c@21a8000/eeprom@50");
|
eeprom = ofnode_get_aliases_node("eeprom0");
|
||||||
if (!ofnode_valid(eeprom)) {
|
if (!ofnode_valid(eeprom)) {
|
||||||
printf("Invalid hardware path to EEPROM!\n");
|
printf("Can't find eeprom0 alias!\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue