summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-10-08 13:25:27 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2016-10-10 10:03:23 +0900
commitf4c93a4f4d73a838954a2b546799fb18e48eab56 (patch)
tree70430d43321902b268761c3b53bb5dbc7176c4e1 /include
parent66deb91ec0113d545ece62130e0823a74edc10e6 (diff)
downloadu-boot-imx-f4c93a4f4d73a838954a2b546799fb18e48eab56.zip
u-boot-imx-f4c93a4f4d73a838954a2b546799fb18e48eab56.tar.gz
u-boot-imx-f4c93a4f4d73a838954a2b546799fb18e48eab56.tar.bz2
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 <yamada.masahiro@socionext.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/uniphier.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h
index bb873a4..2cd7dce 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