Skip to content

Commit

Permalink
drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset
Browse files Browse the repository at this point in the history
Fix EC1 and EC2 read from correct offset 26, instead of 25

Signed-off-by: Pramod Kumar <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
  • Loading branch information
pramodkumar1974 authored and Prabhakar Kushwaha committed Mar 15, 2019
1 parent d296842 commit ba7eadd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ldpaa_eth/ls1088a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit ba7eadd

Please sign in to comment.