From: Lothar Waßmann Date: Thu, 1 Aug 2013 13:10:54 +0000 (+0200) Subject: karo: tx6: set PHYS_SDRAM_1_SIZE independent from processor type X-Git-Tag: KARO_TX6-2013-08-01~2 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=052fd5b507eefb9c65f89107218f28a72932a034;p=karo-tx-uboot.git karo: tx6: set PHYS_SDRAM_1_SIZE independent from processor type --- diff --git a/include/configs/tx6.h b/include/configs/tx6.h index aa44fd0feb..afbead9a6c 100644 --- a/include/configs/tx6.h +++ b/include/configs/tx6.h @@ -49,13 +49,16 @@ */ #define CONFIG_NR_DRAM_BANKS 1 /* # of SDRAM banks */ #define PHYS_SDRAM_1 0x10000000 /* Base address of bank 1 */ -#ifdef CONFIG_MX6Q -#define PHYS_SDRAM_1_SIZE SZ_1G +#ifdef CONFIG_SYS_SDRAM_BUS_WIDTH +#define PHYS_SDRAM_1_WIDTH CONFIG_SYS_SDRAM_BUS_WIDTH +#else #define PHYS_SDRAM_1_WIDTH 64 +#endif +#define PHYS_SDRAM_1_SIZE (SZ_512M * (PHYS_SDRAM_1_WIDTH / 32)) + +#ifdef CONFIG_MX6Q #define CONFIG_SYS_SDRAM_CLK 528 #else -#define PHYS_SDRAM_1_SIZE SZ_512M -#define PHYS_SDRAM_1_WIDTH 32 #define CONFIG_SYS_SDRAM_CLK 400 #endif #define CONFIG_STACKSIZE SZ_128K