ramips: Get rt3052 ethernet ports to be disabled from the device tree.
authorJohn Crispin <blogic@openwrt.org>
Sun, 3 Jan 2016 18:03:17 +0000 (18:03 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sun, 3 Jan 2016 18:03:17 +0000 (18:03 +0000)
commitf92804f323d613e1c7809fe250e260b1279c2e11
tree4d50ad78bc1d8346dbbb46efc9ce465a849e08dc
parentcc665dc23abcc1eaf7d5c69f911150851c0b131b
ramips: Get rt3052 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 461 enables all ethernet ports, so line 508 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/branches/chaos_calmer@48096 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c