[RFC PATCH] ARM: mxc: Select ARCH_HAS_HOLES_MEMORYMODEL

Sascha Hauer s.hauer at pengutronix.de
Mon Sep 19 05:26:08 EDT 2011


On Thu, Sep 15, 2011 at 09:29:41PM -0300, Fabio Estevam wrote:
> 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

> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
>  arch/arm/Kconfig |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 5ebc5d9..29bbd1d 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -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
>  
> -- 
> 1.6.0.4
> 
> 

-- 
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 |



More information about the linux-arm-kernel mailing list