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