ARM: uniphier: enable CONFIG_SYS_NO_FLASH if no CONFIG_MICRO_SUPPORT_CARD
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 8 Oct 2016 04:25:27 +0000 (13:25 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 10 Oct 2016 01:03:23 +0000 (10:03 +0900)
NOR flash devices are seldom used on UniPhier platforms these days.
The only use case I see is the Micro Support Card is connected.
Otherwise, define CONFIG_SYS_NO_FLASH to disable NOR FLASH.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/configs/uniphier.h

index bb873a462c50f5705219f35b5580ba3b8a4e3110..2cd7dced5f3a9a2537abca70d6eabb590c8b55bc 100644 (file)
 /* FLASH related */
 #define CONFIG_MTD_DEVICE
 
-/*
- * uncomment the following to disable FLASH related code.
- */
-/* #define CONFIG_SYS_NO_FLASH */
+#ifndef CONFIG_MICRO_SUPPORT_CARD
+#define CONFIG_SYS_NO_FLASH
+#endif
 
 #define CONFIG_FLASH_CFI_DRIVER
 #define CONFIG_SYS_FLASH_CFI