global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*
[platform/kernel/u-boot.git] / board / mscc / servalt / servalt.c
index d0e6016..4999316 100644 (file)
@@ -6,9 +6,12 @@
 #include <common.h>
 #include <image.h>
 #include <init.h>
+#include <asm/global_data.h>
 #include <asm/io.h>
 #include <led.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 enum {
        BOARD_TYPE_PCB116 = 0xAABBCE00,
 };
@@ -19,11 +22,7 @@ int board_early_init_r(void)
        writel(0, BASE_CFG + ICPU_SW_MODE);
 
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
-
-       /* LED setup */
-       if (IS_ENABLED(CONFIG_LED))
-               led_default_state();
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
        return 0;
 }