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)
commit6a2886711c07c1dc8e73c12a3681cf8fc65b612c
tree72edf895f4010e6ac49a395b5b5caf1b93438b0c
parentfeba6fcff5e419c103a1cc89f112ada0e9940bd6
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]