Skip to contentSkip to conversation

ARM: mxc: Select ARCH_HAS_HOLES_MEMORYMODEL

RFC PATCH New Fabio Estevam 2 participants 2 messages Sep 16, 2011 – Sep 19, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 ARM: mxc: Select ARCH_HAS_HOLES_MEMORYMODEL

Select ARCH_HAS_HOLES_MEMORYMODELfor ARCH_MXC so that the non-contiguous memory block can be handled correctly.

An example of such system is MX35PDK that has a total of 256MB dividedin two RAM banks:128MB at CS0 and another 128MB at CS1. On MX35 each chip select can address up to 256MB, so this configuration leaves a 128MB 'hole' in the memory map that needs to be handled properly.

---
 arch/arm/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/Kconfig +1 -0
index 5ebc5d9..29bbd1d 100644
@@ -397,6 +397,7 @@ config ARCH_MXC
 	select CLKSRC_MMIO
 	select GENERIC_IRQ_CHIP
 	select HAVE_SCHED_CLOCK
+	select ARCH_HAS_HOLES_MEMORYMODEL
 	help
 	  Support for Freescale MXC/iMX-based family of processors
 
Signature · 1 line
1.6.0.4
#1 lore raw

RFC PATCH 1/1 ARM: mxc: Select ARCH_HAS_HOLES_MEMORYMODEL

Quoted 7 lines · Fabio Estevam

Select ARCH_HAS_HOLES_MEMORYMODELfor ARCH_MXC so that the non-contiguous memory block can be handled correctly.

An example of such system is MX35PDK that has a total of 256MB dividedin two RAM banks:128MB at CS0 and another 128MB at CS1. On MX35 each chip select can address up to 256MB, so this configuration leaves a 128MB 'hole' in the memory map that needs to be handled properly.

Why exactly do we need this? I remember a custom i.MX25 board which also has a memory hole, but I can't remember adding ARCH_HAS_HOLES_MEMORYMODEL for it.

Sascha

Quoted 22 lines
---
 arch/arm/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/Kconfig +1 -0
index 5ebc5d9..29bbd1d 100644
@@ -397,6 +397,7 @@ config ARCH_MXC
 	select CLKSRC_MMIO
 	select GENERIC_IRQ_CHIP
 	select HAVE_SCHED_CLOCK
+	select ARCH_HAS_HOLES_MEMORYMODEL
 	help
 	  Support for Freescale MXC/iMX-based family of processors
 
Signature · 1 line
1.6.0.4
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 |