mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
microblaze: Avoid compile error on systems without cfi flash
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>
This commit is contained in:
parent
2629d63efc
commit
1fe7e8fa48
1 changed files with 9 additions and 3 deletions
|
@ -31,6 +31,15 @@
|
||||||
#define CONFIG_MICROBLAZE 1
|
#define CONFIG_MICROBLAZE 1
|
||||||
#define MICROBLAZE_V5 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 */
|
/* uart */
|
||||||
#ifdef XILINX_UARTLITE_BASEADDR
|
#ifdef XILINX_UARTLITE_BASEADDR
|
||||||
# define CONFIG_XILINX_UARTLITE
|
# define CONFIG_XILINX_UARTLITE
|
||||||
|
@ -164,9 +173,6 @@
|
||||||
/* stack */
|
/* stack */
|
||||||
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_MALLOC_BASE
|
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_MALLOC_BASE
|
||||||
|
|
||||||
/*#define RAMENV */
|
|
||||||
#define FLASH
|
|
||||||
|
|
||||||
#ifdef FLASH
|
#ifdef FLASH
|
||||||
# define CONFIG_SYS_FLASH_BASE XILINX_FLASH_START
|
# define CONFIG_SYS_FLASH_BASE XILINX_FLASH_START
|
||||||
# define CONFIG_SYS_FLASH_SIZE XILINX_FLASH_SIZE
|
# define CONFIG_SYS_FLASH_SIZE XILINX_FLASH_SIZE
|
||||||
|
|
Loading…
Reference in a new issue