mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
phy: marvell: a3700: Fix SGMII cfg and stat register addresses
The register addresses on lanes 0 and 1 are switched, first comes 1 and then 0. Signed-off-by: Marek Behun <marek.behun@nic.cz> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
7586ac2b49
commit
3282a3e75f
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
#define COMPHY_SEL_ADDR MVEBU_REG(0x0183FC)
|
||||
#define rf_compy_select(lane) (0x1 << (((lane) == 1) ? 4 : 0))
|
||||
|
||||
#define COMPHY_PHY_CFG1_ADDR(lane) MVEBU_REG(0x018300 + (lane) * 0x28)
|
||||
#define COMPHY_PHY_CFG1_ADDR(lane) MVEBU_REG(0x018300 + (1 - lane) * 0x28)
|
||||
#define rb_pin_pu_iveref BIT(1)
|
||||
#define rb_pin_reset_core BIT(11)
|
||||
#define rb_pin_reset_comphy BIT(12)
|
||||
|
@ -38,7 +38,7 @@
|
|||
#define rf_gen_tx_select (0x0F << rf_gen_tx_sel_shift)
|
||||
#define rb_phy_rx_init BIT(30)
|
||||
|
||||
#define COMPHY_PHY_STAT1_ADDR(lane) MVEBU_REG(0x018318 + (lane) * 0x28)
|
||||
#define COMPHY_PHY_STAT1_ADDR(lane) MVEBU_REG(0x018318 + (1 - lane) * 0x28)
|
||||
#define rb_rx_init_done BIT(0)
|
||||
#define rb_pll_ready_rx BIT(2)
|
||||
#define rb_pll_ready_tx BIT(3)
|
||||
|
|
Loading…
Reference in a new issue