ramips: Get rt3050 ethernet ports to be disabled from the device tree.
authorJohn Crispin <john@openwrt.org>
Mon, 2 May 2016 18:51:05 +0000 (18:51 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 2 May 2016 18:51:05 +0000 (18:51 +0000)
commit36718cb1853af3a57f49040a0fbdc35cb1856f9f
tree8ee75d3e1da0d355df9e88d3193cedaf44d347dd
parent2cb6122828b45ae542e60a966d31d004c4a88ad7
ramips: Get rt3050 ethernet ports to be disabled from the device tree.

This patch allows configuring ports to be disabled in the device tree; this
saves power, since disabling ports here actually disables power to ethernet
PHYs.

Line 444 enables all ethernet ports, so line 487 is getting zero ports to be
disabled, except for port 5 in SoCs where this is not implemented as it will
be sticky disabled in register POC0. Because of this, the code will still read
the switch configuration and OR it to the device tree setting.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49290
target/linux/ramips/patches-4.4/0518-net-mediatek-get-rt3050-ethernet-ports-to-be-disable.patch [new file with mode: 0644]