ramips: Get rt3050 ethernet ports to be disabled from the device tree.
author blogic
()
committer blogic
()
commit 45cd35845f52f9c4e58ed8d1bd7b5cac51939b6b
tree 72edf895f4010e6ac49a395b5b5caf1b93438b0c
parent acddb0edde74cef335e5fed26c14d3beee80196c
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49290 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ramips/patches-4.4/0518-net-mediatek-get-rt3050-ethernet-ports-to-be-disable.patch [ new file with mode 0644 ]
comments