Commit 2ee03c6e23237a29729b27457f69b22b2d7d4fe1

Authored by Alison Wang
Committed by Jason
1 parent 49b3962d20

ColdFire: Rename NANDFLASH_SIZE into CONFIG_NANDFLASH_SIZE for MCF537x

This patch fixes the build error for MCF537x. As the NANDFLASH_SIZE is
redefined in boards.cfg, it is needed to rename NANDFLASH_SIZE into
CONFIG_NANDFLASH_SIZE in include/configs/M5373EVB.h.

Signed-off-by: Alison Wang <b18965@freescale.com>

Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff

include/configs/M5373EVB.h
1 1 /*
2 2 * Configuation settings for the Freescale MCF5373 FireEngine board.
3 3 *
4   - * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
  4 + * Copyright (C) 2004-2007, 2012 Freescale Semiconductor, Inc.
5 5 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
6 6 *
7 7 * See file CREDITS for list of people who contributed to this
... ... @@ -59,7 +59,7 @@
59 59 #define CONFIG_CMD_PING
60 60 #define CONFIG_CMD_REGINFO
61 61  
62   -#ifdef NANDFLASH_SIZE
  62 +#ifdef CONFIG_NANDFLASH_SIZE
63 63 # define CONFIG_CMD_NAND
64 64 #endif
65 65  
... ... @@ -208,7 +208,7 @@
208 208 # define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */
209 209 #endif
210 210  
211   -#ifdef NANDFLASH_SIZE
  211 +#ifdef CONFIG_NANDFLASH_SIZE
212 212 # define CONFIG_SYS_MAX_NAND_DEVICE 1
213 213 # define CONFIG_SYS_NAND_BASE CONFIG_SYS_CS2_BASE
214 214 # define CONFIG_SYS_NAND_SIZE 1
215 215  
... ... @@ -264,9 +264,9 @@
264 264 #define CONFIG_SYS_CS1_MASK 0x001f0001
265 265 #define CONFIG_SYS_CS1_CTRL 0x002A3780
266 266  
267   -#ifdef NANDFLASH_SIZE
  267 +#ifdef CONFIG_NANDFLASH_SIZE
268 268 #define CONFIG_SYS_CS2_BASE 0x20000000
269   -#define CONFIG_SYS_CS2_MASK ((NANDFLASH_SIZE << 20) | 1)
  269 +#define CONFIG_SYS_CS2_MASK ((CONFIG_NANDFLASH_SIZE << 20) | 1)
270 270 #define CONFIG_SYS_CS2_CTRL 0x00001f60
271 271 #endif
272 272