summaryrefslogtreecommitdiff
path: root/target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-12-28 04:56:27 +0000
committerLuka Perkov <luka@openwrt.org>2015-12-28 04:56:27 +0000
commit3d11f8ae36e60019509a202fa592dd12f4e54ffb (patch)
treeb65c03f47a8b22a0270bf9987ac02d1cdab29570 /target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch
parent2578f0183c64b49218d2e5714480078adfc6e120 (diff)
downloadmtk-20170518-3d11f8ae36e60019509a202fa592dd12f4e54ffb.zip
mtk-20170518-3d11f8ae36e60019509a202fa592dd12f4e54ffb.tar.gz
mtk-20170518-3d11f8ae36e60019509a202fa592dd12f4e54ffb.tar.bz2
imx6: fix device-tree mac address assignment for ventana sky2/eth1
Some Ventana boards have a Marvell sky2 GigE controller as eth1 however assigning the mac address through device-tree is difficult because the PCI slot can move around depending on board configuration and slot population. To work around this we add a patch to the sky2 driver to allow accessing its mac address via a device-tree alias. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> SVN-Revision: 48013
Diffstat (limited to 'target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch')
-rw-r--r--target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch b/target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch
new file mode 100644
index 0000000..7377ce3
--- /dev/null
+++ b/target/linux/imx6/patches-4.3/209-ARM-imx-ventana-add-sky2-alias.patch
@@ -0,0 +1,24 @@
+Index: linux-4.3/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
+===================================================================
+--- linux-4.3.orig/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi 2015-12-18 10:39:44.959158318 -0800
++++ linux-4.3/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi 2015-12-18 10:43:21.000000000 -0800
+@@ -15,6 +15,7 @@
+ /* these are used by bootloader for disabling nodes */
+ aliases {
+ ethernet1 = &eth1;
++ sky2 = &eth1;
+ led0 = &led0;
+ led1 = &led1;
+ led2 = &led2;
+Index: linux-4.3/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+===================================================================
+--- linux-4.3.orig/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi 2015-12-18 10:39:44.959158318 -0800
++++ linux-4.3/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi 2015-12-18 10:43:21.000000000 -0800
+@@ -15,6 +15,7 @@
+ /* these are used by bootloader for disabling nodes */
+ aliases {
+ ethernet1 = &eth1;
++ sky2 = &eth1;
+ led0 = &led0;
+ led1 = &led1;
+ led2 = &led2;