Merge tag 'efi-2020-07-rc6' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / board / imgtec / malta / malta.c
index e31331aec1ecaacb8e69d0eba3fce2312dcdb832..88a1a63bf48866d15a43ee35faf3bf06f7bcf014 100644 (file)
@@ -1,18 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org>
  * Copyright (C) 2013 Imagination Technologies
- *
- * SPDX-License-Identifier:    GPL-2.0
  */
 
 #include <common.h>
 #include <ide.h>
+#include <init.h>
+#include <net.h>
 #include <netdev.h>
 #include <pci.h>
 #include <pci_gt64120.h>
 #include <pci_msc01.h>
 #include <rtc.h>
-#include <serial.h>
+#include <linux/delay.h>
 
 #include <asm/addrspace.h>
 #include <asm/io.h>
@@ -20,6 +21,8 @@
 
 #include "superio.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 enum core_card {
        CORE_UNKNOWN,
        CORE_LV,
@@ -84,16 +87,18 @@ static enum sys_con malta_sys_con(void)
        }
 }
 
-phys_size_t initdram(int board_type)
+int dram_init(void)
 {
-       return CONFIG_SYS_MEM_SIZE;
+       gd->ram_size = CONFIG_SYS_MEM_SIZE;
+
+       return 0;
 }
 
 int checkboard(void)
 {
        enum core_card core;
 
-       malta_lcd_puts("U-boot");
+       malta_lcd_puts("U-Boot");
        puts("Board: MIPS Malta");
 
        core = malta_core_card();
@@ -161,18 +166,6 @@ int misc_init_r(void)
        return 0;
 }
 
-struct serial_device *default_serial_console(void)
-{
-       switch (malta_sys_con()) {
-       case SYSCON_GT64120:
-               return &eserial1_device;
-
-       default:
-       case SYSCON_MSC01:
-               return &eserial2_device;
-       }
-}
-
 void pci_init_board(void)
 {
        pci_dev_t bdf;