[OpenWrt-Devel] [PATCH 3/3] ramips: Disable all ethernet ports except port 4 on HT-TM02.

Vittorio G (VittGam) openwrt at vittgam.net
Fri Dec 11 08:55:26 EST 2015


On 11/12/2015 12:29:00 CET, John Crispin wrote:
> On 05/12/2015 12:04, Vittorio G (VittGam) wrote:
>>  	esw at 10110000 {
>>  		ralink,portmap = <0x10>;
>> +		ralink,portdisable = <0x2f>;
>>  	};
> i think it makes more sense to derive 0x2f from the 0x10 as both
> together will always be 0x3f

No, it does not.

Portmap selects which ports are LAN ports and which are WAN ports.
Here the only port (4) is selected as LAN.

Portdisable instead selects which port we need to power down in order
to save power. In this case, every port except 4 is selected because
4 is the only port.

The fact that for this router the combination is 0x3f is just a

Vittorio G
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list