c58d9684e568fe05ec4c088a87ff15cfbd9da33c
[openwrt.git] / target / linux / mxs / patches-3.13 / 200-duckbill.patch
1 diff -ruN old/arch/arm/boot/dts/Makefile new/arch/arm/boot/dts/Makefile
2 --- old/arch/arm/boot/dts/Makefile      2014-02-05 13:08:14.000000000 +0100
3 +++ new/arch/arm/boot/dts/Makefile      2014-02-05 13:12:40.493773522 +0100
4 @@ -164,6 +164,7 @@
5         imx28-cfa10057.dtb \
6         imx28-cfa10058.dtb \
7         imx28-evk.dtb \
8 +       imx28-duckbill.dtb \
9         imx28-m28cu3.dtb \
10         imx28-m28evk.dtb \
11         imx28-sps1.dtb \
12 diff -ruN old/arch/arm/mach-mxs/mach-mxs.c new/arch/arm/mach-mxs/mach-mxs.c
13 --- old/arch/arm/mach-mxs/mach-mxs.c    2014-02-05 13:08:14.000000000 +0100
14 +++ new/arch/arm/mach-mxs/mach-mxs.c    2014-02-05 13:13:27.121772897 +0100
15 @@ -157,6 +157,7 @@
16         OUI_FSL,
17         OUI_DENX,
18         OUI_CRYSTALFONTZ,
19 +       OUI_I2SE,
20  };
21  
22  static void __init update_fec_mac_prop(enum mac_oui oui)
23 @@ -211,6 +212,11 @@
24                         macaddr[1] = 0xb9;
25                         macaddr[2] = 0xe1;
26                         break;
27 +               case OUI_I2SE:
28 +                       macaddr[0] = 0x00;
29 +                       macaddr[1] = 0x01;
30 +                       macaddr[2] = 0x87;
31 +                       break;
32                 }
33                 val = ocotp[i];
34                 macaddr[3] = (val >> 16) & 0xff;
35 @@ -426,6 +432,11 @@
36         return 0;
37  }
38  
39 +static void __init duckbill_init(void)
40 +{
41 +       update_fec_mac_prop(OUI_I2SE);
42 +}
43 +
44  static void __init mxs_machine_init(void)
45  {
46         struct device_node *root;
47 @@ -464,6 +475,8 @@
48                 crystalfontz_init();
49         else if (of_machine_is_compatible("msr,m28cu3"))
50                 m28cu3_init();
51 +       else if (of_machine_is_compatible("i2se,duckbill"))
52 +               duckbill_init();
53  
54         of_platform_populate(NULL, of_default_bus_match_table,
55                              NULL, parent);