1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00
Files
u-boot-megous/common
Bin Meng bc393a7954 fdt: Rewrite the logic in fdt_fixup_ethernet()
Currently in fdt_fixup_ethernet() the MAC address fix up is
handled in a loop of which the exit condition is to test the
"eth%daddr" env is not NULL. However this creates unnecessary
constrains that those "eth%daddr" env variables must be
sequential even if "ethernet%d" does not start from 0 in the
"/aliases" node. For example, with "/aliases" node below:

    aliases {
        ethernet3 = &enet3;
        ethernet4 = &enet4;
    };

"ethaddr", "eth1addr", "eth2addr" must exist in order to fix
up ethernet3's MAC address successfully.

Now we change the loop logic to iterate the properties in the
"/aliases" node. For each property, test if it is in a format
of "ethernet%d", then get its MAC address from corresponding
"eth%daddr" env and fix it up in the dtb.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
On OMAP4 Panda (+v4.3 kernel)
Tested-by: Tom Rini <trini@konsulko.com>
2015-12-21 19:56:17 -06:00
..
2015-12-15 08:57:32 +08:00
2015-06-10 19:26:54 -06:00
2014-02-04 16:32:20 +01:00
2015-07-20 07:21:47 -06:00
2015-01-30 09:19:17 -05:00
2015-01-30 09:19:16 -05:00
2014-10-26 14:03:08 -04:00
2014-12-29 16:31:24 -05:00
2014-06-20 11:54:29 -06:00
2015-05-14 19:58:34 -06:00
2015-07-27 15:53:48 -07:00
2015-11-05 16:47:06 -05:00
2014-05-12 15:19:46 -04:00
2015-10-26 09:22:36 +01:00
2015-05-21 09:13:19 -04:00
2014-03-21 16:43:59 -04:00
2014-04-17 17:44:36 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2015-11-12 13:18:59 -05:00
2015-01-05 12:08:51 -05:00
2015-10-19 17:06:16 -04:00
2015-11-19 20:27:50 -07:00
2014-09-16 12:23:56 -04:00