Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / x86 / cpu / tangier / sdram.c
index eae8d785df9ed431e1cb59b1cad528ff9b5875d8..df3b9e4ec975ffdce9c8781c7b0b8be277e5527b 100644 (file)
@@ -1,10 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2017 Intel Corporation
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
+#include <init.h>
+#include <log.h>
 #include <asm/e820.h>
 #include <asm/global_data.h>
 #include <asm/sfi.h>
@@ -99,7 +100,8 @@ static struct sfi_table_simple *sfi_search_mmap(void)
             i < SFI_GET_NUM_ENTRIES(sb, struct sfi_mem_entry);         \
             i++, mentry++)                                             \
 
-static unsigned sfi_setup_e820(unsigned max_entries, struct e820entry *entries)
+static unsigned int sfi_setup_e820(unsigned int max_entries,
+                                  struct e820_entry *entries)
 {
        struct sfi_table_simple *sb;
        struct sfi_mem_entry *mentry;
@@ -188,7 +190,8 @@ static phys_size_t sfi_get_ram_size(void)
        return ram;
 }
 
-unsigned install_e820_map(unsigned max_entries, struct e820entry *entries)
+unsigned int install_e820_map(unsigned int max_entries,
+                             struct e820_entry *entries)
 {
        return sfi_setup_e820(max_entries, entries);
 }