From patchwork Mon Aug 17 07:07:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roese X-Patchwork-Id: 1345681 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=chaJqp2e; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BVQBY6PvWz9sPC for ; Mon, 17 Aug 2020 17:08:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 578DF82250; Mon, 17 Aug 2020 09:08:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1597648098; bh=CYoItLMSOVoC8q5KAZQeOR3nYYQekDxCa25rhNilrB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=chaJqp2eLYcUIXsVnOWexqK1snDwUVJe0Esz1nh78oy6InOHQmT0CRjKWd3fvCwch yw1IdvRW7W7MXy6FxT1n1zke7O+UYdoT3OaNySIFiRTHBepDG+s33SE+T9TwqzqIxw ppTN01789ATtq+MRWHAWLkzA7oIic4ptpEA6OOio09iiFSLTakSS8Qk8kj/S2si/9R oiOoIERk5kZI+ViEhdRVcKYhPPR6J1fbYMjBnOMRTewIME7t4oxgDuy643vko/asL6 wTt3w3OuiZMBKbo9D9CZSv3+4O1wMosYsQWTGEj6QLTkI646fPUcx4joHrp3Mu/HPn Uqc3GguIT/H2w== Received: by phobos.denx.de (Postfix, from userid 109) id A548B82245; Mon, 17 Aug 2020 09:08:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mx2.mailbox.org (mx2.mailbox.org [80.241.60.215]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6BCD3821D9 for ; Mon, 17 Aug 2020 09:08:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 11273A295A; Mon, 17 Aug 2020 09:08:07 +0200 (CEST) Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id zcfUqYoSQHG1; Mon, 17 Aug 2020 09:08:04 +0200 (CEST) From: Stefan Roese To: u-boot@lists.denx.de Cc: sjg@chromium.org, awilliams@marvell.com, trini@konsulko.com, sgarapati@marvell.com, cchavva@marvell.com, Marek Vasut Subject: [PATCH v2 04/25] ARM: renesas: Drop unnecessary function ft_board_setup() Date: Mon, 17 Aug 2020 09:07:41 +0200 Message-Id: <20200817070802.1517632-5-sr@denx.de> In-Reply-To: <20200817070802.1517632-1-sr@denx.de> References: <20200817070802.1517632-1-sr@denx.de> MIME-Version: 1.0 X-MBO-SPAM-Probability: * X-Rspamd-Score: 0.26 / 15.00 / 15.00 X-Rspamd-Queue-Id: EA2A4185A X-Rspamd-UID: 9f369a X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Marek explained on IRC, that ft_board_setup() is not used / necessary at all. So its best to just drop it completely, as it interferes with the cleanup of CONFIG_MAX_PCI_REGIONS (completely removed). Signed-off-by: Stefan Roese Suggested-by: Marek Vasut Cc: Simon Glass Reviewed-by: Simon Glass --- (no changes since v1) board/renesas/rcar-common/common.c | 48 ------------------------------ 1 file changed, 48 deletions(-) diff --git a/board/renesas/rcar-common/common.c b/board/renesas/rcar-common/common.c index 83dd288847..777d8c8e0f 100644 --- a/board/renesas/rcar-common/common.c +++ b/board/renesas/rcar-common/common.c @@ -42,51 +42,3 @@ int dram_init_banksize(void) return 0; } - -#if CONFIG_IS_ENABLED(OF_BOARD_SETUP) && CONFIG_IS_ENABLED(PCI) -int ft_board_setup(void *blob, struct bd_info *bd) -{ - struct udevice *dev; - struct uclass *uc; - fdt_addr_t regs_addr; - int i, off, ret; - - ret = uclass_get(UCLASS_PCI, &uc); - if (ret) - return ret; - - uclass_foreach_dev(dev, uc) { - struct pci_controller hose = { 0 }; - - for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) { - if (hose.region_count == MAX_PCI_REGIONS) { - printf("maximum number of regions parsed, aborting\n"); - break; - } - - if (bd->bi_dram[i].size) { - pci_set_region(&hose.regions[hose.region_count++], - bd->bi_dram[i].start, - bd->bi_dram[i].start, - bd->bi_dram[i].size, - PCI_REGION_MEM | - PCI_REGION_PREFETCH | - PCI_REGION_SYS_MEMORY); - } - } - - regs_addr = devfdt_get_addr_index(dev, 0); - off = fdt_node_offset_by_compat_reg(blob, - "renesas,pcie-rcar-gen3", regs_addr); - if (off < 0) { - printf("Failed to find PCIe node@%llx\n", regs_addr); - return off; - } - - fdt_pci_dma_ranges(blob, off, &hose); - } - - return 0; -} -#endif -#endif