]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arm: atmel: sam9m10g45ek: let CONFIG_SYS_NO_FLASH at proper position
authorBo Shen <voice.shen@atmel.com>
Wed, 20 Nov 2013 03:17:16 +0000 (11:17 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 1 Dec 2013 21:38:53 +0000 (22:38 +0100)
In config_cmd_default.h, it will use CONFIG_SYS_NO_FLASH to decide
whether include CONFIG_CMD_FLASH and CONFIG_CMD_IMLS. So, if the
CONFIG_SYS_NO_FLASH defined later than include/config_cmd_default.h,
These two commands will be included always.

So move CONFIG_SYS_NO_FLASH definition to proper position.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
include/configs/at91sam9m10g45ek.h

index 0a4c781d3d468ebe25ce5d2fffb7faebab8194c0..ccfda71c959d6e0ebc91b10b2ebc586e1290f550 100644 (file)
 /*
  * Command line configuration.
  */
+
+/* No NOR flash */
+#define CONFIG_SYS_NO_FLASH
+
 #include <config_cmd_default.h>
 #undef CONFIG_CMD_BDI
 #undef CONFIG_CMD_FPGA
 #define CONFIG_SYS_INIT_SP_ADDR \
        (CONFIG_SYS_SDRAM_BASE + 4 * 1024 - GENERATED_GBL_DATA_SIZE)
 
-/* No NOR flash */
-#define CONFIG_SYS_NO_FLASH
-
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
 #define CONFIG_NAND_ATMEL