diff options
author | Tom Rini <trini@konsulko.com> | 2020-06-26 09:44:45 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-26 09:44:45 -0400 |
commit | 04983e936cf5096ca37ed88df0a3dfbafdc8da14 (patch) | |
tree | 47d1e2f159f3fe83d568f7e11eca25129cd24756 | |
parent | eae62ae8de1893f7cf08e276ab841d3f99245603 (diff) | |
parent | 8a204312abad7913f9b2209a71bef81853647b21 (diff) | |
download | u-boot-04983e936cf5096ca37ed88df0a3dfbafdc8da14.tar.gz |
Merge branch 'for-tom' of https://github.com/lftan/u-boot
- arm: socfpga: misc_s10: Fix EMAC register address calculation
-rw-r--r-- | arch/arm/mach-socfpga/misc_s10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/misc_s10.c b/arch/arm/mach-socfpga/misc_s10.c index ccff78a230..670bfa1a31 100644 --- a/arch/arm/mach-socfpga/misc_s10.c +++ b/arch/arm/mach-socfpga/misc_s10.c @@ -68,7 +68,7 @@ static u32 socfpga_phymode_setup(u32 gmac_index, const char *phymode) return -EINVAL; clrsetbits_le32(socfpga_get_sysmgr_addr() + SYSMGR_SOC64_EMAC0 + - gmac_index, + (gmac_index * sizeof(u32)), SYSMGR_EMACGRP_CTRL_PHYSEL_MASK, modereg); return 0; |