From: Lothar Waßmann Date: Fri, 21 Aug 2015 14:44:38 +0000 (+0200) Subject: tx28: config.mk: fix build error: "No rule to make target `.u-boot.sb"' X-Git-Tag: KARO-TX6-2015-09-18~4034^2~1^2~13 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=7d5226350d77fc3c2dc13bfff641c62ff46f68e1 tx28: config.mk: fix build error: "No rule to make target `.u-boot.sb"' --- diff --git a/board/karo/tx28/spl_boot.c b/board/karo/tx28/spl_boot.c index 58335ff6f0..a423a4dd2b 100644 --- a/board/karo/tx28/spl_boot.c +++ b/board/karo/tx28/spl_boot.c @@ -277,7 +277,7 @@ static uint32_t tx28_dram_vals[] = { /* 2d0 */ 0x06120612, 0x04420442, 0x04420442, 0x00040004, /* 2e0 */ 0x00040004, 0x00000000, 0x00000000, 0x00000000, /* 2f0 */ 0x00000000, 0x00000000, -#elif CONFIG_SDRAM_SIZE == SZ_128M +#elif CONFIG_SYS_SDRAM_SIZE == SZ_128M /* TX28-40x0: MT47H64M16HR-3 */ /* 000 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 010 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000, @@ -327,7 +327,7 @@ static uint32_t tx28_dram_vals[] = { /* 2d0 */ 0x06120612, 0x04420442, 0x04420442, 0x00040004, /* 2e0 */ 0x00040004, 0x00000000, 0x00000000, 0x00000000, /* 2f0 */ 0x00000000, 0x00000000, -#elif CONFIG_SDRAM_SIZE == SZ_256M +#elif CONFIG_SYS_SDRAM_SIZE == SZ_256M /* TX28-40x2: MEM2G16D2DABG */ /* 000 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 010 */ 0x00000000, 0x00000000, 0x00000000, 0x00000000, diff --git a/board/karo/tx28/tx28.c b/board/karo/tx28/tx28.c index 0c707b8ae3..e81ee89285 100644 --- a/board/karo/tx28/tx28.c +++ b/board/karo/tx28/tx28.c @@ -908,7 +908,7 @@ int checkboard(void) const char *dlm = ""; printf("Board: Ka-Ro TX28-4%sx%d\n", TX28_MOD_SUFFIX, - CONFIG_SDRAM_SIZE / SZ_128M + + CONFIG_SYS_SDRAM_SIZE / SZ_128M + CONFIG_SYS_NAND_BLOCKS / 2048 * 2); printf("POWERUP Source: "); diff --git a/include/configs/tx28.h b/include/configs/tx28.h index c63ec18208..baffb8df1d 100644 --- a/include/configs/tx28.h +++ b/include/configs/tx28.h @@ -16,7 +16,7 @@ */ #define CONFIG_MXS_GPIO /* GPIO control */ #define CONFIG_SYS_HZ 1000 /* Ticks per second */ -#define PHYS_SDRAM_1_SIZE CONFIG_SDRAM_SIZE +#define PHYS_SDRAM_1_SIZE CONFIG_SYS_SDRAM_SIZE #ifdef CONFIG_TX28_S #define TX28_MOD_SUFFIX "1" #else