[U-Boot] [PATCH v3 1/6] arm:exynos4:trats: Correct SDRAM configuration for trats

Jaehoon Chung jh80.chung at samsung.com
Wed Sep 19 12:33:45 CEST 2012


Acked-by: Jaehoon Chung <jh80.chung at samsung.com>

On 08/29/2012 04:56 PM, Piotr Wilczek wrote:
> SDRAM setup alike to ORIGEN Dev board.
> 
> Signed-off-by: Piotr Wilczek <p.wilczek at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> CC: Minkyu Kang <mk7.kang at samsung.com>
> ---
> Changes for v2:
> - no changes
> Changes for v3:
> - no changes
> 
>  include/configs/trats.h |   17 +++++++++++------
>  1 files changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/include/configs/trats.h b/include/configs/trats.h
> index 185cb68..f391227 100644
> --- a/include/configs/trats.h
> +++ b/include/configs/trats.h
> @@ -170,12 +170,17 @@
>  /* Stack sizes */
>  #define CONFIG_STACKSIZE		(256 << 10) /* regular stack 256KB */
>  
> -/* TRATS has 2 banks of DRAM */
> -#define CONFIG_NR_DRAM_BANKS	2
> -#define PHYS_SDRAM_1		CONFIG_SYS_SDRAM_BASE	/* LDDDR2 DMC 0 */
> -#define PHYS_SDRAM_1_SIZE	(512 << 20)		/* 512 MB in CS 0 */
> -#define PHYS_SDRAM_2		0x50000000		/* LPDDR2 DMC 1 */
> -#define PHYS_SDRAM_2_SIZE	(512 << 20)		/* 512 MB in CS 0 */
> +/* TRATS has 4 banks of DRAM */
> +#define CONFIG_NR_DRAM_BANKS	4
> +#define SDRAM_BANK_SIZE		(256UL << 20UL)	/* 256 MB */
> +#define PHYS_SDRAM_1		CONFIG_SYS_SDRAM_BASE
> +#define PHYS_SDRAM_1_SIZE	SDRAM_BANK_SIZE
> +#define PHYS_SDRAM_2		(CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
> +#define PHYS_SDRAM_2_SIZE	SDRAM_BANK_SIZE
> +#define PHYS_SDRAM_3		(CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
> +#define PHYS_SDRAM_3_SIZE	SDRAM_BANK_SIZE
> +#define PHYS_SDRAM_4		(CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
> +#define PHYS_SDRAM_4_SIZE	SDRAM_BANK_SIZE
>  
>  #define CONFIG_SYS_MEM_TOP_HIDE		(1 << 20)	/* ram console */
>  
> 



More information about the U-Boot mailing list