]> git.baikalelectronics.ru Git - uboot.git/commit
net: phy: b53: Add b53_reg read/write commands
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 9 Dec 2017 22:59:56 +0000 (14:59 -0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jan 2018 18:05:22 +0000 (12:05 -0600)
commit5d2d7592f4d120fc4213ef8aa54420c7c662c706
treefce3ce9b26a219fc068382b06e25725f0af1e208
parent81f86c997660a027a1b3b702dcf63354cb3d32c1
net: phy: b53: Add b53_reg read/write commands

Add a b53_reg read/write command which allows inspecting the switch
registers. Because the Broadcom BCM53xx registers have different sizes,
we need to split the accesses in 8, 16, 32, 48 or 64 bits to obtain
expected results.

Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/net/phy/b53.c