]> git.sur5r.net Git - u-boot/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)
commitf3d78fbfaf25ccbf74316760667c2ad1bb771375
treefce3ce9b26a219fc068382b06e25725f0af1e208
parent7a9ca9db400fc95463011449cf47012fb2e1db0d
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