summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/ccxmx51/ccxmx51.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-02-17 18:30:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-02-22 11:21:02 +0100
commitc5a154657063371940d95f58cf70e4aa45970f02 (patch)
tree6dd677160c8a9c4cf4ea951339d1a67412d7cd34 /arch/arm/boards/ccxmx51/ccxmx51.c
parent759e41088a26392e8af46942f8ac5be500eb513f (diff)
downloadbarebox-c5a154657063371940d95f58cf70e4aa45970f02.tar.gz
barebox-c5a154657063371940d95f58cf70e4aa45970f02.tar.xz
ARM: i.MX51: ccmx51: support newer device trees
Newer device trees have renamed nodes to adhere to schema. Add the new node names as well. Proper way would be to add aliases in barebox DT and reference those, but given that I can't test my changes, do this small change nad hope the new names are stable enough. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230217173057.1839835-8-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/ccxmx51/ccxmx51.c')
-rw-r--r--arch/arm/boards/ccxmx51/ccxmx51.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c
index cbf06e6cd6..4288efe2e0 100644
--- a/arch/arm/boards/ccxmx51/ccxmx51.c
+++ b/arch/arm/boards/ccxmx51/ccxmx51.c
@@ -189,11 +189,15 @@ static int ccxmx51_board_fixup(struct device_node *root, void *unused)
if (!ccxmx_id->eth0)
ccxmx51_disable_device(root, "ethernet@83fec000");
- if (!ccxmx_id->eth1)
+ if (!ccxmx_id->eth1) {
ccxmx51_disable_device(root, "lan9221@5,0");
+ ccxmx51_disable_device(root, "ethernet@5,0");
+ }
- if (!ccxmx_id->wless)
+ if (!ccxmx_id->wless) {
ccxmx51_disable_device(root, "esdhc@70008000");
+ ccxmx51_disable_device(root, "mmc@70008000");
+ }
serial = basprintf("%08x%08x", 0, boardserial);
of_set_property(root, "serial-number", serial, strlen(serial) + 1, 1);