mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 01:20:47 +09:00
mpc83xx: change ft code to modify local-mac-address property
Update 83xx OF code to update local-mac-address properties for ethernet instead of the obsolete 'address' property.
This commit is contained in:
parent
9ca880a250
commit
48041365b3
@ -297,12 +297,12 @@ ft_cpu_setup(void *blob, bd_t *bd)
|
|||||||
*p = cpu_to_be32(clock);
|
*p = cpu_to_be32(clock);
|
||||||
|
|
||||||
#ifdef CONFIG_MPC83XX_TSEC1
|
#ifdef CONFIG_MPC83XX_TSEC1
|
||||||
p = ft_get_prop(blob, "/" OF_SOC "/ethernet@24000/address", &len);
|
p = ft_get_prop(blob, "/" OF_SOC "/ethernet@24000/local-mac-address", &len);
|
||||||
memcpy(p, bd->bi_enetaddr, 6);
|
memcpy(p, bd->bi_enetaddr, 6);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MPC83XX_TSEC2
|
#ifdef CONFIG_MPC83XX_TSEC2
|
||||||
p = ft_get_prop(blob, "/" OF_SOC "/ethernet@25000/address", &len);
|
p = ft_get_prop(blob, "/" OF_SOC "/ethernet@25000/local-mac-address", &len);
|
||||||
memcpy(p, bd->bi_enet1addr, 6);
|
memcpy(p, bd->bi_enet1addr, 6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user