]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
poplar: clean up board level mmc initialization code
authorShawn Guo <shawn.guo@linaro.org>
Thu, 17 Jan 2019 04:09:52 +0000 (12:09 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 25 Jan 2019 17:12:57 +0000 (12:12 -0500)
We have converted mmc to driver model on Poplar.  So let's clean up
board level mmc initialization code.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
arch/arm/include/asm/arch-hi3798cv200/dwmmc.h [deleted file]
arch/arm/include/asm/arch-hi3798cv200/hi3798cv200.h
board/hisilicon/poplar/poplar.c

diff --git a/arch/arm/include/asm/arch-hi3798cv200/dwmmc.h b/arch/arm/include/asm/arch-hi3798cv200/dwmmc.h
deleted file mode 100644 (file)
index d08c20b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2017 Linaro
- * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
- */
-
-#ifndef _HI3798cv200_DWMMC_H_
-#define _HI3798cv200_DWMMC_H_
-
-int hi6220_dwmci_add_port(int index, u32 regbase, int bus_width);
-
-#endif /* _HI3798cv200_DWMMC_H_ */
index bb221e17e0ed9efa82774ebfedc1734b518f4cdd..b98b45cc817b7f3dce2cc3a373c5f2ae7bba74d1 100644 (file)
@@ -11,7 +11,6 @@
 #define REG_BASE_CRG                   0xF8A22000
 
 /* DEVICES */
-#define REG_BASE_MCI                   0xF9830000
 #define REG_BASE_UART0                 0xF8B00000
 #define HIOTG_BASE_ADDR                        0xF98C0000
 
index 155dfbb401f1239bedb5807db263ca84b0346d25..77948445e261f89bf33762f62f9cfab24da2abf0 100644 (file)
@@ -9,7 +9,6 @@
 #include <asm/io.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <asm/arch/hi3798cv200.h>
-#include <asm/arch/dwmmc.h>
 #include <asm/armv8/mmu.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -155,17 +154,6 @@ static void usb2_phy_init(void)
        udelay(200);
 }
 
-int board_mmc_init(bd_t *bis)
-{
-       int ret;
-
-       ret = hi6220_dwmci_add_port(0, REG_BASE_MCI, 8);
-       if (ret)
-               printf("mmc init error (%d)\n", ret);
-
-       return ret;
-}
-
 #if defined(CONFIG_USB_GADGET) && defined(CONFIG_USB_GADGET_DWC2_OTG)
 #include <usb.h>
 #include <usb/dwc2_udc.h>