All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] poplar: clean up board level mmc initialization code
Date: Thu, 17 Jan 2019 12:09:52 +0800	[thread overview]
Message-ID: <20190117040952.4024-4-shawn.guo@linaro.org> (raw)
In-Reply-To: <20190117040952.4024-1-shawn.guo@linaro.org>

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>
---
 arch/arm/include/asm/arch-hi3798cv200/dwmmc.h       | 12 ------------
 arch/arm/include/asm/arch-hi3798cv200/hi3798cv200.h |  1 -
 board/hisilicon/poplar/poplar.c                     | 12 ------------
 3 files changed, 25 deletions(-)
 delete mode 100644 arch/arm/include/asm/arch-hi3798cv200/dwmmc.h

diff --git a/arch/arm/include/asm/arch-hi3798cv200/dwmmc.h b/arch/arm/include/asm/arch-hi3798cv200/dwmmc.h
deleted file mode 100644
index d08c20b36d31..000000000000
--- a/arch/arm/include/asm/arch-hi3798cv200/dwmmc.h
+++ /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_ */
diff --git a/arch/arm/include/asm/arch-hi3798cv200/hi3798cv200.h b/arch/arm/include/asm/arch-hi3798cv200/hi3798cv200.h
index bb221e17e0ed..b98b45cc817b 100644
--- a/arch/arm/include/asm/arch-hi3798cv200/hi3798cv200.h
+++ b/arch/arm/include/asm/arch-hi3798cv200/hi3798cv200.h
@@ -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
 
diff --git a/board/hisilicon/poplar/poplar.c b/board/hisilicon/poplar/poplar.c
index 155dfbb401f1..77948445e261 100644
--- a/board/hisilicon/poplar/poplar.c
+++ b/board/hisilicon/poplar/poplar.c
@@ -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>
-- 
2.18.0

  parent reply	other threads:[~2019-01-17  4:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17  4:09 [U-Boot] [PATCH 0/3] Enable mmc driver model for Poplar board Shawn Guo
2019-01-17  4:09 ` [U-Boot] [PATCH 1/3] poplar: sync up device tree with kernel 4.20 Shawn Guo
2019-01-17 14:53   ` Manivannan Sadhasivam
2019-01-18  0:57     ` Shawn Guo
2019-01-18  3:11       ` Manivannan Sadhasivam
2019-01-27  3:51   ` [U-Boot] [U-Boot, " Tom Rini
2019-01-17  4:09 ` [U-Boot] [PATCH 2/3] mmc: hi6220_dw_mmc: add compatible for Poplar support Shawn Guo
2019-01-17 14:37   ` Manivannan Sadhasivam
2019-01-27  3:51   ` [U-Boot] [U-Boot, " Tom Rini
2019-01-17  4:09 ` Shawn Guo [this message]
2019-01-17 14:38   ` [U-Boot] [PATCH 3/3] poplar: clean up board level mmc initialization code Manivannan Sadhasivam
2019-01-27  3:52   ` [U-Boot] [U-Boot, " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190117040952.4024-4-shawn.guo@linaro.org \
    --to=shawn.guo@linaro.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.