From 7d5226350d77fc3c2dc13bfff641c62ff46f68e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 21 Aug 2015 16:44:38 +0200 Subject: [PATCH] tx28: config.mk: fix build error: "No rule to make target `.u-boot.sb"' --- board/karo/tx28/spl_boot.c | 4 ++-- board/karo/tx28/tx28.c | 2 +- include/configs/tx28.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2