126-dt-sun7i-add-eth-alias-for-gmac.patch 858 B

1234567891011121314151617181920212223242526
  1. From 614b4b996be81daca9d8333e1ac163d23e1701c4 Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 10 Feb 2014 18:35:54 +0800
  4. Subject: [PATCH] ARM: dts: sun7i: Add ethernet alias for GMAC
  5. All Allwinner A20 boards we support can only use either EMAC or GMAC,
  6. as they share the same pins. As we have switched all supported to
  7. GMAC, we should alias GMAC (the active controller) as ethernet0,
  8. so u-boot will insert the MAC address for the correct controller.
  9. Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  10. ---
  11. arch/arm/boot/dts/sun7i-a20.dtsi | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  14. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  15. @@ -17,7 +17,7 @@
  16. interrupt-parent = <&gic>;
  17. aliases {
  18. - ethernet0 = &emac;
  19. + ethernet0 = &gmac;
  20. serial0 = &uart0;
  21. serial1 = &uart1;
  22. serial2 = &uart2;