summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-08-13 14:02:29 +0200
committerHans de Goede <hdegoede@redhat.com>2014-10-24 09:35:38 +0200
commit722e00cef4e497f171dcbc5ef84d81d215670a24 (patch)
tree769e8e7984fa9a15bc81261789a7ce2641a11c43 /board
parent69c050a6715995e666b3ece028db6a8f75dc502c (diff)
downloadblackbird-obmc-uboot-722e00cef4e497f171dcbc5ef84d81d215670a24.tar.gz
blackbird-obmc-uboot-722e00cef4e497f171dcbc5ef84d81d215670a24.zip
sunxi: Kconfig: Unify sunxi Kconfig code
Unify the sunxi Kconfig code, instead of having separate code blocks for each of sun4i - sun7i. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'board')
-rw-r--r--board/sunxi/Kconfig32
1 files changed, 5 insertions, 27 deletions
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 552fce8394..9892a34cfb 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -1,33 +1,11 @@
-if TARGET_SUN4I
-
-config SYS_CONFIG_NAME
- default "sun4i"
-
-endif
-
-if TARGET_SUN5I
-
-config SYS_CONFIG_NAME
- default "sun5i"
-
-endif
-
-if TARGET_SUN6I
+if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I
config SYS_CONFIG_NAME
string
- default "sun6i"
-
-endif
-
-if TARGET_SUN7I
-
-config SYS_CONFIG_NAME
- default "sun7i"
-
-endif
-
-if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I
+ default "sun4i" if TARGET_SUN4I
+ default "sun5i" if TARGET_SUN5I
+ default "sun6i" if TARGET_SUN6I
+ default "sun7i" if TARGET_SUN7I
config SYS_CPU
default "armv7"
OpenPOWER on IntegriCloud