mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset
Fix EC1 and EC2 read from correct offset 26, instead of 25 Signed-off-by: Pramod Kumar <pramod.kumar_1@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
This commit is contained in:
parent
d296842c2d
commit
ba7eadd8e1
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ void fsl_rgmii_init(void)
|
|||
u32 ec;
|
||||
|
||||
#ifdef CONFIG_SYS_FSL_EC1
|
||||
ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC1_REGSR - 1])
|
||||
ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC1_REGSR])
|
||||
& FSL_CHASSIS3_RCWSR25_EC1_PRTCL_MASK;
|
||||
ec >>= FSL_CHASSIS3_RCWSR25_EC1_PRTCL_SHIFT;
|
||||
|
||||
|
@ -102,7 +102,7 @@ void fsl_rgmii_init(void)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_SYS_FSL_EC2
|
||||
ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC2_REGSR - 1])
|
||||
ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC2_REGSR])
|
||||
& FSL_CHASSIS3_RCWSR25_EC2_PRTCL_MASK;
|
||||
ec >>= FSL_CHASSIS3_RCWSR25_EC2_PRTCL_SHIFT;
|
||||
|
||||
|
|
Loading…
Reference in a new issue