From: Masahiro Yamada Date: Sat, 8 Oct 2016 04:25:27 +0000 (+0900) Subject: ARM: uniphier: enable CONFIG_SYS_NO_FLASH if no CONFIG_MICRO_SUPPORT_CARD X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f4c93a4f4d73a838954a2b546799fb18e48eab56;p=u-boot.git ARM: uniphier: enable CONFIG_SYS_NO_FLASH if no CONFIG_MICRO_SUPPORT_CARD 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 --- diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index bb873a462c..2cd7dced5f 100644 --- a/include/configs/uniphier.h +++ b/include/configs/uniphier.h @@ -40,10 +40,9 @@ /* 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