]> git.sur5r.net Git - u-boot/commit
phy: marvell: a3700: Save/restore selector reg in SGMII init
authorMarek BehĂșn <marek.behun@nic.cz>
Tue, 24 Apr 2018 15:21:24 +0000 (17:21 +0200)
committerStefan Roese <sr@denx.de>
Mon, 14 May 2018 08:00:15 +0000 (10:00 +0200)
commit7288182aa6c11e4b0b2783cd4c7762f93f12cb64
treedf5b8db97170a612024626fbf3eae42030591384
parent22f418935be4f5c6de26d2563a61d68136d80586
phy: marvell: a3700: Save/restore selector reg in SGMII init

In SGMII initialization PIN_PIPE_SEL has to be zero when resetting
the PHY. Since comphy_mux already set the selector register to
correct values, we have to store it's value before setting it to 0
and restore it after SGMII init.

Signed-off-by: Marek Behun <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/phy/marvell/comphy_a3700.c
drivers/phy/marvell/comphy_a3700.h