]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Kconfig: move common settings into a shared code block
authorHans de Goede <hdegoede@redhat.com>
Fri, 1 Aug 2014 07:28:24 +0000 (09:28 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 12 Aug 2014 06:40:12 +0000 (08:40 +0200)
SYS_CPU, SYS_BOARD and SYS_SOC are identical for all sunxi boards, move
them to a shared code block.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/Kconfig

index b06b5e0548e196dc504b9c18bcc2fa59f7e3a02f..24cca4747b49120ed8f4090cd93fdc3b7772db16 100644 (file)
@@ -1,17 +1,5 @@
 if TARGET_SUN4I
 
-config SYS_CPU
-       string
-       default "armv7"
-
-config SYS_BOARD
-       string
-       default "sunxi"
-
-config SYS_SOC
-       string
-       default "sunxi"
-
 config SYS_CONFIG_NAME
        string
        default "sun4i"
@@ -20,25 +8,21 @@ endif
 
 if TARGET_SUN5I
 
-config SYS_CPU
+config SYS_CONFIG_NAME
        string
-       default "armv7"
+       default "sun5i"
 
-config SYS_BOARD
-       string
-       default "sunxi"
+endif
 
-config SYS_SOC
-       string
-       default "sunxi"
+if TARGET_SUN7I
 
 config SYS_CONFIG_NAME
        string
-       default "sun5i"
+       default "sun7i"
 
 endif
 
-if TARGET_SUN7I
+if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN7I
 
 config SYS_CPU
        string
@@ -52,8 +36,4 @@ config SYS_SOC
        string
        default "sunxi"
 
-config SYS_CONFIG_NAME
-       string
-       default "sun7i"
-
 endif