brcm63xx: fix warning in Redboot code
[openwrt/staging/yousong.git] / target / linux / mxs / patches / 200-duckbill.patch
1 diff -ruN orig/arch/arm/boot/dts/Makefile new/arch/arm/boot/dts/Makefile
2 --- orig/arch/arm/boot/dts/Makefile 2013-11-04 00:41:51.000000000 +0100
3 +++ new/arch/arm/boot/dts/Makefile 2013-11-11 14:38:07.108808212 +0100
4 @@ -159,6 +159,7 @@
5 imx28-cfa10057.dtb \
6 imx28-cfa10058.dtb \
7 imx28-evk.dtb \
8 + imx28-duckbill.dtb \
9 imx28-m28evk.dtb \
10 imx28-sps1.dtb \
11 imx28-tx28.dtb
12 diff -ruN orig/arch/arm/mach-mxs/mach-mxs.c new/arch/arm/mach-mxs/mach-mxs.c
13 --- orig/arch/arm/mach-mxs/mach-mxs.c 2013-11-04 00:41:51.000000000 +0100
14 +++ new/arch/arm/mach-mxs/mach-mxs.c 2013-11-11 14:40:07.555397389 +0100
15 @@ -159,6 +159,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 @@ -213,6 +214,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 @@ -423,6 +429,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 @@ -459,6 +470,8 @@
48 apx4devkit_init();
49 else if (of_machine_is_compatible("crystalfontz,cfa10036"))
50 crystalfontz_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);