imx21ads : avoid overlapping static i/o mappings
Subsystems (3)
PATCH 1/1 imx21ads : avoid overlapping static i/o mappings
The static I/O mappings for the cs89x0 ethernet controller and the secondary AHB port 1 (SAHB1) overlapped, causing a kernel crash at startup. This is fixed by mapping the cs89x0 to 0xf6000000 (which is free to use according to arch/arm/plat-mxc/include/mach/hardware.h).
--- arch/arm/mach-imx/mach-mx21ads.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-mx21ads.c +1 -1
@@ -31,7 +31,7 @@/* * Memory-mapped I/O on MX21ADS base board */ -#define MX21ADS_MMIO_BASE_ADDR 0xf5000000 +#define MX21ADS_MMIO_BASE_ADDR 0xf6000000#define MX21ADS_MMIO_SIZE 0xc00000#define MX21ADS_REG_ADDR (offset) (void __force __iomem *) \
Signature · 1 line
1.7.1
Sascha Hauer
maintainerPATCH 1/1 imx21ads : avoid overlapping static i/o mappings
Quoted 15 lines · Jaccon Bastiaansen
The static I/O mappings for the cs89x0 ethernet controller and the secondary AHB port 1 (SAHB1) overlapped, causing a kernel crash at startup. This is fixed by mapping the cs89x0 to
0xf6000000(which is free to use according toarch/arm/plat-mxc/include/mach/hardware.h).Signed-off-by Jaccon Bastiaansen <[email protected]>--- arch/arm/mach-imx/mach-mx21ads.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-imx/mach-mx21ads.c +0
-0
arch/arm/mach-imx/mach-mx21ads.c line 34
Quoted 5 lines
arch/arm/mach-imx/mach-mx21ads.c +1
-1@@ -31,7 +31,7 @@/* * Memory-mapped I/O on MX21ADS base board */ -#define MX21ADS_MMIO_BASE_ADDR 0xf5000000 +#define MX21ADS_MMIO_BASE_ADDR 0xf6000000
I would prefer to ioremap the region instead. This makes sure this problem is solved once and for all.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |