]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
astro_mcf5373l: Rework ASTRO_ID logic
authorTom Rini <trini@konsulko.com>
Thu, 19 Aug 2021 19:16:15 +0000 (15:16 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 30 Aug 2021 18:13:28 +0000 (14:13 -0400)
Rather than using CONFIG namespace for logic internal to
include/configs/astro_mcf5373l.h to select ASTRO_ID (and populate the
default environment), strip CONFIG from the various options used and
set.

Signed-off-by: Tom Rini <trini@konsulko.com>
include/configs/astro_mcf5373l.h

index 12488b66c30b11a17f1c8f4e4d1153615120483a..65c7d03efc1c2ff772822c68335bce21ade82328 100644 (file)
  * set the card type to actually compile for; either of
  * the possibilities listed below has to be used!
  */
-#define CONFIG_ASTRO_V532      1
+#define ASTRO_V532     1
 
-#if CONFIG_ASTRO_V532
+#if ASTRO_V532
 #define ASTRO_ID       0xF8
-#elif CONFIG_ASTRO_V512
+#elif ASTRO_V512
 #define ASTRO_ID       0xFA
-#elif CONFIG_ASTRO_TWIN7S2
+#elif ASTRO_TWIN7S2
 #define ASTRO_ID       0xF9
-#elif CONFIG_ASTRO_V912
+#elif ASTRO_V912
 #define ASTRO_ID       0xFC
-#elif CONFIG_ASTRO_COFDMDUOS2
+#elif ASTRO_COFDMDUOS2
 #define ASTRO_ID       0xFB
 #else
 #error No card type defined!
 #ifdef CONFIG_MONITOR_IS_IN_RAM
 #define CONFIG_BOOTCOMMAND     ""      /* no autoboot in this case */
 #else
-#if CONFIG_ASTRO_V532
+#if ASTRO_V532
 #define CONFIG_BOOTCOMMAND     "protect off 0x80000 0x1ffffff;run env_check;"\
                                "run xilinxload&&run alteraload&&bootm 0x80000;"\
                                "update;reset"