From patchwork Thu Jan 17 04:09:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 155784 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1479348jaa; Wed, 16 Jan 2019 20:12:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN66H/zYvMOwAaPpLlrK8QfD/6ulnFkqtvCUfpfR23of4GYLYqNvsvn1p3DeqasECF5fnuaU X-Received: by 2002:a50:d797:: with SMTP id w23mr10367586edi.19.1547698351524; Wed, 16 Jan 2019 20:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547698351; cv=none; d=google.com; s=arc-20160816; b=apWCk7EuRJRFw+RctkMWiNPFS4WdSj3riVu2I0UW+f1/2E4jXU1kLNLYdZ7srQCInA q5eyztukEFNA3zjof0TBAouzC0S3S+MXPFbwq8eI/217qfus0n6kAg7nkV/nEB2MxkuP fcWZtW7O3O2sKxSZIi+iAMxckrJrojBp9TASJbRX6I5dVmRb3ATpssqoOvv3EYQgdgMa yh4mISP681qjeSFHDCZjmpWuirgGYfvj9ktbNz01zUB5B2br7X+7kh9kTXY4m7cbwOS6 X1K1olXkKjQalhtv30B8nmLMukJvdrUcCugubd76sQkZsRN9YD94/8kKKpNq/h0ona+C HUKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature; bh=OKIy87266CTShKshumys0JX4HnnpYZmXC/a5OI5P4bM=; b=FZCkGFJVYzM3rkgiaNzoOJgtwD+zrg2DuKIXSxk4abKKLO3eyVkVlmATMw9BxOldsQ g4Owbf3X8vnvhos3VRmxxiu28n8cQSmEuYypbrmNZlOg5A2qRvZGSUsWs4mhRmKWzPzs iX4xTryhYfrLumi4VYwTqODdCBK5r594QmcHqp6R6Welmz0lJirKZ9EB5uKzfQNmtF5Q DGjcQmy9jwZ1Ve6v5ZeBv+VaaPKcdDMcHA9knQNDkD9RHhcVGJw0UR4E0eL+dL7n8Ey1 6OuzjGKeqkgJxeYB9GD1P2espHceym/77x9zPPqucVRf1UpouiihYi8/8VjcUfK8rw1T 9BHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NdWunlGe; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m1-v6si2375177ejd.3.2019.01.16.20.12.31; Wed, 16 Jan 2019 20:12:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NdWunlGe; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 28A78C2207C; Thu, 17 Jan 2019 04:11:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 61D49C22102; Thu, 17 Jan 2019 04:10:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2B949C21F9C; Thu, 17 Jan 2019 04:10:40 +0000 (UTC) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by lists.denx.de (Postfix) with ESMTPS id DA200C220D8 for ; Thu, 17 Jan 2019 04:10:35 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id y4so3805199pgc.12 for ; Wed, 16 Jan 2019 20:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YXcbu2IqQW5Eg/khddBgIHDdXFR6SYK1h8w/m4YhzQk=; b=NdWunlGeGvkgTgF5Q7ChRAuamudC7mk3IT0RY9Mn+1TADhWAwKOff2p9ovgysrL6AD 8ZdPfVHg14cidSibHLqI+OFBKCuvt+R8hREXFbKzjQrG8whKJ9jTWOhAsjwBOHC1Edim gpXun1caNhoOAr4QUEus3BrqYPjDouEYRN8pU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YXcbu2IqQW5Eg/khddBgIHDdXFR6SYK1h8w/m4YhzQk=; b=QZ5bwjMFBVZE0+xeFXxMknoe9xh41gTnNMD+ETd8zo/TH7hbNhlzQf5NdOmNzxVPSy 4Da3kgZPqPlhRc8BWTQ5jT6A//XHK1XCtshs9LU2IvjsjFIc4d9YnGmck1+EWYBUSquC /Fg8sC26UuyGzMcrjcMUKTtLEgqYECulZVhWnmqMeaVsCChvNriJKip2P56/7pkjOw7A 9OlJ2Fj0DnQzGXYwSui4Eq/KLDcfaUqoq87l95Wu70E1wvRCDroZK41UVP+RnIpMu2OM O8q8MFBOfQHTE2s6l6S1cRgn/dEdkzfRiCsbfaqKsLMS9ISbGk53aaipuyU1jzyvF5k7 DFdA== X-Gm-Message-State: AJcUukdANM2Tom9CL0L8wqVzlPPpzayUoZLP2gfwd+humFTI7xIvBQGu BPyMT2inl5mqUFRnQhXxkR44jopxKcsh+g== X-Received: by 2002:a63:2784:: with SMTP id n126mr12274707pgn.48.1547698234513; Wed, 16 Jan 2019 20:10:34 -0800 (PST) Received: from localhost.localdomain (61-216-91-114.HINET-IP.hinet.net. [61.216.91.114]) by smtp.gmail.com with ESMTPSA id 202sm377257pfy.87.2019.01.16.20.10.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Jan 2019 20:10:33 -0800 (PST) From: Shawn Guo To: Tom Rini Date: Thu, 17 Jan 2019 12:09:52 +0800 Message-Id: <20190117040952.4024-4-shawn.guo@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190117040952.4024-1-shawn.guo@linaro.org> References: <20190117040952.4024-1-shawn.guo@linaro.org> Cc: u-boot@lists.denx.de, Manivannan Sadhasivam Subject: [U-Boot] [PATCH 3/3] poplar: clean up board level mmc initialization code X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We have converted mmc to driver model on Poplar. So let's clean up board level mmc initialization code. Signed-off-by: Shawn Guo Acked-by: Manivannan Sadhasivam --- 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 - */ - -#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 #include #include -#include #include 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 #include