diff options
author | WingMan Kwok <w-kwok2@ti.com> | 2015-07-28 16:01:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-29 17:16:03 -0700 |
commit | 71382bc0431ea5901640a3794fea4eeb71cbcb2e (patch) | |
tree | 3bd48d0733189a16dd3cda96beca231defd5f08f /Documentation/devicetree | |
parent | 5a4c355229da12558b5ded0775f4d0bc6650d28d (diff) | |
download | op-kernel-dev-71382bc0431ea5901640a3794fea4eeb71cbcb2e.zip op-kernel-dev-71382bc0431ea5901640a3794fea4eeb71cbcb2e.tar.gz |
net: netcp: Fixes efuse mac addr swap on k2e and k2l
On some of the K2E and K2L platforms, the two DWORDs in
efuse occupied by the pre-programmed mac address for
slave port 1 are swapped. To workaround this issue,
this patch adds a new define NETCP_EFUSE_ADDR_SWAP (2)
which signifies the occurrence of such swapping so that
the driver can take proper action. The flag can be
enabled in the corresponding netcp interface dts binding
as efuse-mac = <2> under the corresponding netcp
interface node.
Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/net/keystone-netcp.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/net/keystone-netcp.txt b/Documentation/devicetree/bindings/net/keystone-netcp.txt index d0e6fa3..b30ab6b 100644 --- a/Documentation/devicetree/bindings/net/keystone-netcp.txt +++ b/Documentation/devicetree/bindings/net/keystone-netcp.txt @@ -130,7 +130,11 @@ Required properties: Optional properties: - efuse-mac: If this is 1, then the MAC address for the interface is - obtained from the device efuse mac address register + obtained from the device efuse mac address register. + If this is 2, the two DWORDs occupied by the MAC address + are swapped. The netcp driver will swap the two DWORDs + back to the proper order when this property is set to 2 + when it obtains the mac address from efuse. - local-mac-address: the driver is designed to use the of_get_mac_address api only if efuse-mac is 0. When efuse-mac is 0, the MAC address is obtained from local-mac-address. If this |