diff options
author | Greg Ungerer <gerg@uclinux.org> | 2015-03-17 20:14:45 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2015-03-29 19:52:24 -0400 |
commit | a630ec1b64c57f681877cc19c8e7ea5640cf7fcb (patch) | |
tree | 103bf58b14e8f38a4f0eb1e93ec2c87a6d4d4eb4 /arch/m68k | |
parent | faa7cc2862c861d241cdb052e495e296bece1ccb (diff) |
m68knommu: ColdFire 5271 only has a single FEC controller
The inclusion of multiple FEC ethernet platform devices is based around
the FEC address definitions in the platform headers. The ColdFire m527x
platform is defining 2 FEC modules, but the 5271 SoC only has a single
FEC hardware module. The attempt to probe and init a second FEC module
causes a trap and dump on boot on this platform.
Fix the definitions so that only the 5275 SoC platform (which has 2 FEC
hardware modules) defines the second base address.
Reported-by: ertheb <3rth3bnospam@ethe.fr>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/m527xsim.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h index 1bebbe78055a..2c648a043f24 100644 --- a/arch/m68k/include/asm/m527xsim.h +++ b/arch/m68k/include/asm/m527xsim.h | |||
@@ -103,8 +103,10 @@ | |||
103 | */ | 103 | */ |
104 | #define MCFFEC_BASE0 (MCF_IPSBAR + 0x1000) | 104 | #define MCFFEC_BASE0 (MCF_IPSBAR + 0x1000) |
105 | #define MCFFEC_SIZE0 0x800 | 105 | #define MCFFEC_SIZE0 0x800 |
106 | #ifdef CONFIG_M5275 | ||
106 | #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800) | 107 | #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800) |
107 | #define MCFFEC_SIZE1 0x800 | 108 | #define MCFFEC_SIZE1 0x800 |
109 | #endif | ||
108 | 110 | ||
109 | /* | 111 | /* |
110 | * QSPI module. | 112 | * QSPI module. |