common: Move RAM-sizing functions to init.h
[oweals/u-boot.git] / board / AndesTech / adp-ag101p / adp-ag101p.c
index a462941448b1a8c3348f8fd32c147ed73ed8d52b..faf39b4ba6aa8412fbddc7b415d90db6c619d1e1 100644 (file)
@@ -1,18 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2011 Andes Technology Corporation
  * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
  * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
+#include <init.h>
 #if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
 #include <netdev.h>
 #endif
 #include <linux/io.h>
+#include <asm/io.h>
+#include <asm/mach-types.h>
 
-#include <faraday/ftsdc010.h>
 #include <faraday/ftsmc020.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -80,11 +81,3 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
                return 0;
        }
 }
-
-int board_mmc_init(bd_t *bis)
-{
-#ifdef CONFIG_FTSDC010
-       ftsdc010_mmc_init(0);
-#endif
-       return 0;
-}