]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
microblaze: Avoid compile error on systems without cfi flash
authorStephan Linz <linz@li-pro.net>
Tue, 26 Jun 2012 22:28:25 +0000 (00:28 +0200)
committerMichal Simek <monstr@monstr.eu>
Wed, 27 Jun 2012 08:18:20 +0000 (10:18 +0200)
Use XILINX_FLASH_START to set/unset FLASH and RAMENV.

Error:
board.c: In function 'board_init':
board.c:134: error: 'XILINX_FLASH_START' undeclared (first use in this function)
board.c:134: error: (Each undeclared identifier is reported only once
board.c:134: error: for each function it appears in.)

Signed-off-by: Stephan Linz <linz@li-pro.net>
Signed-off-by: Michal Simek <monstr@monstr.eu>
include/configs/microblaze-generic.h

index 5f16820218f2291cf5449fd9e7fc8eb2b1296ad2..2ef7d6257e6b9bbe2ce2a6bf0e5d5059e6a2585b 100644 (file)
 #define        CONFIG_MICROBLAZE       1
 #define        MICROBLAZE_V5           1
 
+/* linear flash memory */
+#ifdef XILINX_FLASH_START
+#define        FLASH
+#undef RAMENV  /* hold environment in flash */
+#else
+#undef FLASH
+#define        RAMENV  /* hold environment in RAM */
+#endif
+
 /* uart */
 #ifdef XILINX_UARTLITE_BASEADDR
 # define CONFIG_XILINX_UARTLITE
 /* stack */
 #define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_MALLOC_BASE
 
-/*#define      RAMENV */
-#define        FLASH
-
 #ifdef FLASH
 # define CONFIG_SYS_FLASH_BASE         XILINX_FLASH_START
 # define CONFIG_SYS_FLASH_SIZE         XILINX_FLASH_SIZE