From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EA2BC433F5 for ; Tue, 14 Sep 2021 03:26:57 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4BBEB60F51 for ; Tue, 14 Sep 2021 03:26:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4BBEB60F51 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A8A683AED; Tue, 14 Sep 2021 05:26:31 +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=1631589992; bh=GJdLhehk/A2Vot7lPO/nzgP5n1xd7NBBgYqMiALbkPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QWHSlWkgDnsIqOunnTP/1dFI5g/+BCdZbM8L2Vc9CFwZJ5hJHodlNl7+1jFdYUc/D w5Z2F0DmAYfmOexD/z4F8lh+w6tbvEtgVy1Xn4P3OQXXT7iKTd1HIgMNyOZ6HsakbY 2HerVBBLLPSlj1HJy5jxM4CPDCvIrHo9iKN+4pL/xVWwmLbAdcAdx+h6PwU5mS1PXH R6SVT4aoMd4BwdRvYScu3g/dCvBSZef8bxUAMf3ZnVhhL61XR2Dmm5+LEcA4Ng03JB jeEO06zmInBdArxVugTrv9PSxQ8QU/dnIgk2FuxLxzFqLb1Y9ED87Mdqh8MdQrqEat /FhjplYfdtd8g== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id E786383A73; Tue, 14 Sep 2021 05:25:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631589955; bh=GJdLhehk/A2Vot7lPO/nzgP5n1xd7NBBgYqMiALbkPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vOTav9zslPTb4aTQmq47yNTd69cYSvOW+NppfqyGitJ7lM9/HiAG1YrKp7enHuaX2 AkS7mcn74RPyhLjkWYJfcOx2DzQ+R7XSZvSNscgas3U9Lsdfy8zkmUrd/8Z4AUWJ4t lwLSxTALx848zqTwF0ptxKyDT4PUgvu/4W+c4Sw96to+SJFsLPHczf02mVw8GlspcT mxmh6+NjaKCZvXeS8qnLZfc/aPBIBtWHgejzP7V+4gznxUdk9s6HEaWNYpNE5RJbDh KL7rAlQILtjSJPBTe0tBoNDr6Ly8ijdqdYHn0cukGJoCCAbGimtDMHU0WYzYLto7Z1 B17ob7X1bVNjw== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Siew Chin Lim , Simon Goldschmidt , Tien Fong Chee Subject: [PATCH 8/8] arm: socfpga: vining: Let DWMAC configure PHY reset GPIO Date: Tue, 14 Sep 2021 05:25:36 +0200 Message-Id: <20210914032536.273530-8-marex@denx.de> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210914032536.273530-1-marex@denx.de> References: <20210914032536.273530-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.103.2 at phobos.denx.de X-Virus-Status: Clean The DM DWMAC driver is perfectly capable of configuring the ethernet PHY reset GPIO, let the driver do it instead of doing it in the board file. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- board/softing/vining_fpga/socfpga.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c index aaedf034504..22992273911 100644 --- a/board/softing/vining_fpga/socfpga.c +++ b/board/softing/vining_fpga/socfpga.c @@ -23,7 +23,6 @@ DECLARE_GLOBAL_DATA_PTR; */ int board_late_init(void) { - const unsigned int phy_nrst_gpio = 0; const unsigned int usb_nrst_gpio = 35; int ret; @@ -33,12 +32,6 @@ int board_late_init(void) /* Address of boot parameters for ATAG (if ATAG is used) */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; - ret = gpio_request(phy_nrst_gpio, "phy_nrst_gpio"); - if (!ret) - gpio_direction_output(phy_nrst_gpio, 1); - else - printf("Cannot remove PHY from reset!\n"); - ret = gpio_request(usb_nrst_gpio, "usb_nrst_gpio"); if (!ret) gpio_direction_output(usb_nrst_gpio, 1); -- 2.33.0