[PATCH] s5pv210: Change the base ram address to 0x3000'0000

Ben Dooks ben-linux at fluff.org
Thu May 27 23:53:52 EDT 2010


On Fri, May 28, 2010 at 11:35:59AM +0900, Kyungmin Park wrote:
> s5pc110 (aka s5pv210) has 2 DRAM port and used it both usually.
> Assume DMC0 starts with 0x2000'0000 with 128MiB.
> DMC1 starts with 0x4000'0000 with 128MiB.
> Note that DMC1 has to start address 0x4000'0000 at least.
> 
> Then there's too much memory hole 0x1800'0000 (128MiB + 256MiB)
> 
> To reduce memory waste, the DMC0 start with 0x3000'0000.

We should be using SPARSEMEM now, is it not reducing any wastage
in virtual memory space?

How will the user change their board to deal with this change to hte
kernel?
 
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> ---
> diff --git a/arch/arm/mach-s5pv210/Makefile.boot b/arch/arm/mach-s5pv210/Makefile.boot
> index ff90aa1..b0909e3 100644
> --- a/arch/arm/mach-s5pv210/Makefile.boot
> +++ b/arch/arm/mach-s5pv210/Makefile.boot
> @@ -1,2 +1,2 @@
> -   zreladdr-y	:= 0x20008000
> -params_phys-y	:= 0x20000100
> +   zreladdr-y	:= 0x30008000
> +params_phys-y	:= 0x30000100
> diff --git a/arch/arm/mach-s5pv210/include/mach/map.h b/arch/arm/mach-s5pv210/include/mach/map.h
> index 34eb168..9f4c368 100644
> --- a/arch/arm/mach-s5pv210/include/mach/map.h
> +++ b/arch/arm/mach-s5pv210/include/mach/map.h
> @@ -74,7 +74,7 @@
>  #define S5PV210_PA_VIC3		(0xF2300000)
>  #define S5P_PA_VIC3		S5PV210_PA_VIC3
>  
> -#define S5PV210_PA_SDRAM	(0x20000000)
> +#define S5PV210_PA_SDRAM	(0x30000000)
>  #define S5P_PA_SDRAM		S5PV210_PA_SDRAM
>  
>  /* I2S */
> diff --git a/arch/arm/mach-s5pv210/include/mach/memory.h b/arch/arm/mach-s5pv210/include/mach/memory.h
> index 379117e..07a15d8 100644
> --- a/arch/arm/mach-s5pv210/include/mach/memory.h
> +++ b/arch/arm/mach-s5pv210/include/mach/memory.h
> @@ -13,7 +13,7 @@
>  #ifndef __ASM_ARCH_MEMORY_H
>  #define __ASM_ARCH_MEMORY_H
>  
> -#define PHYS_OFFSET		UL(0x20000000)
> +#define PHYS_OFFSET		UL(0x30000000)
>  #define CONSISTENT_DMA_SIZE	(SZ_8M + SZ_4M + SZ_2M)
>  
>  /* Maximum of 256MiB in one bank */

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.




More information about the linux-arm-kernel mailing list