Changeset 31588


Ignore:
Timestamp:
2012-05-05T13:43:13+02:00 (6 years ago)
Author:
juhosg
Message:

mpc83xx: fix MAC addresses on the RB333

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mpc83xx/patches-3.3/200-powerpc-add-rbppc-support.patch

    r31587 r31588  
    595595+                       tx-clock = <0x1a>; 
    596596+                       rx-clock = <0x1f>; 
    597 +                       mac-address = [00 0c 42 1c 29 d2]; 
     597+                       local-mac-address = [00 00 00 00 00 00]; 
    598598+                       interrupt-parent = <&qeic>; 
    599599+                       interrupts = <0x22>; 
     
    610610+                       tx-clock = <0x22>; 
    611611+                       rx-clock = <0x20>; 
    612 +                       mac-address = [00 0c 42 1c 29 d1]; 
     612+                       local-mac-address = [00 00 00 00 00 00]; 
    613613+                       interrupt-parent = <&qeic>; 
    614614+                       interrupts = <0x23>; 
     
    625625+                       tx-clock = <0x18>; 
    626626+                       rx-clock = <0x17>; 
    627 +                       mac-address = [00 0c 42 1c 29 d0]; 
     627+                       local-mac-address = [00 00 00 00 00 00]; 
    628628+                       interrupt-parent = <&qeic>; 
    629629+                       interrupts = <0x21>; 
     
    844844--- /dev/null 
    845845+++ b/arch/powerpc/boot/rb333.c 
    846 @@ -0,0 +1,73 @@ 
     846@@ -0,0 +1,86 @@ 
    847847+/* 
    848848+ * The RouterBOARD platform -- for booting RB333 RouterBOARDs. 
     
    872872+static void rb333_fixups(void) 
    873873+{ 
    874 +       const u32 *timebase, *clock; 
     874+       const u32 *reg, *timebase, *clock; 
    875875+       int node, size; 
    876876+       void *chosen; 
     
    884884+       clock = fdt_getprop(fw_dtb, node, "clock-frequency", &size); 
    885885+       dt_fixup_cpu_clocks(*clock, *timebase, 0); 
     886+ 
     887+       /* Set the MAC addresses. */ 
     888+       node = fdt_path_offset(fw_dtb, "/qe@e0100000/ucc@2200"); 
     889+       reg = fdt_getprop(fw_dtb, node, "mac-address", &size); 
     890+       dt_fixup_mac_address_by_alias("ethernet0", (const u8 *)reg); 
     891+ 
     892+       node = fdt_path_offset(fw_dtb, "/qe@e0100000/ucc@3200"); 
     893+       reg = fdt_getprop(fw_dtb, node, "mac-address", &size); 
     894+       dt_fixup_mac_address_by_alias("ethernet1", (const u8 *)reg); 
     895+ 
     896+       node = fdt_path_offset(fw_dtb, "/qe@e0100000/ucc@3000"); 
     897+       reg = fdt_getprop(fw_dtb, node, "mac-address", &size); 
     898+       dt_fixup_mac_address_by_alias("ethernet2", (const u8 *)reg); 
    886899+ 
    887900+       /* Fixup chosen 
Note: See TracChangeset for help on using the changeset viewer.