From patchwork Tue Aug 14 13:07:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beniamino Galvani X-Patchwork-Id: 10565603 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A1ED81390 for ; Tue, 14 Aug 2018 13:08:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 922AD28CCD for ; Tue, 14 Aug 2018 13:08:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8669B28DCE; Tue, 14 Aug 2018 13:08:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 38FB228CCD for ; Tue, 14 Aug 2018 13:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Eiup2ythoKty5a2JfLZz9F1HtkLW7nnJl19kEOGluDE=; b=N3cntddCE+V6qmk3jYZwjtG227 HuEn13mFxUqq1sFWeLs+wpsw+Qse6PEZ8Yi+ZCOateLrVS+8yEiyoTarx2weZ9XyKkrByw9SMvrV5 TjHByJBaiOayqYZMhJqyrM/fOW4yooviaLk/J/02FW6Hc7lAgHURCxRXNJKqX7V+GXH3foaGttwrO ug4in3yCpAqBx9v7P4JSUNobEpGTcPWeU0ASUO50Q4+GLlROb7zO/x1i0723li8b/+/LUuiMKs0Pm pPsRboOQNVpIFAG98FguODIe6I5BmzBC3LCzA/QFWqv7c2gk2QQcr8toc2h/q8AQe+3wSQBETC3LX QzKSmYhg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fpZ3x-0000Kh-CQ; Tue, 14 Aug 2018 13:08:41 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fpZ3u-0000Ge-Ga for linux-amlogic@lists.infradead.org; Tue, 14 Aug 2018 13:08:39 +0000 Received: by mail-wr1-x432.google.com with SMTP id e7-v6so17144623wrs.9 for ; Tue, 14 Aug 2018 06:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DG9s5QiWCcf0B9BGJ3dYqjJXSSydKyWY4RFtZ7qkQRE=; b=QsNT1NkzdSreS8WUShbaXH5dy6nX/BUIy54zMUsskq2wv4fS4LP1589nrbd7F5Z8fj 7IMrsx68OQnbMn3jUx8bslysDwd3Ay1fDaNTGzTgbY2bvQ0BfnH+HviKpWGkUDw3VV+0 xJpezbM4zpvKLHLzl7OnFuOaszOn+l3PYM2EvNSSo671aZZgNhGwbot8hEqzlCrA1Eio tCvFCC6BwexHItgOMRJEkevG3/zhcTdEl2KMUAn5UbJl6XJTTM6AAyLPUGXM9UUM4uwL QhSdwn6/88/Y+X2cmg66Oy6DRR8/2XLZnB2/hWsdK3JXkEaQOYI5VtvrjkZGqOMIZ2wr 6ixw== 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=DG9s5QiWCcf0B9BGJ3dYqjJXSSydKyWY4RFtZ7qkQRE=; b=JQOjyLZ4dFGS266SlNetU/aUNpCXR+pey9SLb1KU0MaKcznMVSs4oHgfkv8yJWnTfa pPytu0Bd66IRtv5xqFWW5qNTmz3deukSaR45RUkeWBz5bHYGnHJ9OikvOiLfMkKVYcoQ iqxcZ6qh0xvbNlTM9RZvyvABVb91AcpqIaxBFRgV2nGuZ19GKUjunf7I9kR78bP9U0or oS0MH3rkr2wPmTKdYtuqf8TwDF1jKfJPH9WgzCbfQVwm0CcgzdnPW+OiaQ7gYbZtwQ0i knKmWgEVMnqUQ9alQJ5Ph4J40+aESOFDBmWKqaf0dpQxAD3mVtRJjt9g2/xxlKL3PiqN fDOA== X-Gm-Message-State: AOUpUlGFGlCQBrqw2rnM8nwgDZa5x72Jy6hVEiMYKPl0zEnutNc7iQrD J11/kHWa6gy1rSDTNJS+MYg0I5ju X-Google-Smtp-Source: AA+uWPxNu5QSEkIxQfFtAgORRj1GfUsaZiCA7wCJN+35qG/JyBHPcfzDOMQD1DTLbhINnNGo0Y2wfQ== X-Received: by 2002:adf:e841:: with SMTP id d1-v6mr7888365wrn.269.1534252105364; Tue, 14 Aug 2018 06:08:25 -0700 (PDT) Received: from sark.homenet.telecomitalia.it ([79.46.68.202]) by smtp.gmail.com with ESMTPSA id r16-v6sm29123997wru.59.2018.08.14.06.08.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Aug 2018 06:08:24 -0700 (PDT) From: Beniamino Galvani To: u-boot@lists.denx.de Subject: [PATCH u-boot 1/3] boards: amlogic: remove ethernet gpio reset code from boards Date: Tue, 14 Aug 2018 15:07:52 +0200 Message-Id: <20180814130754.19294-2-b.galvani@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180814130754.19294-1-b.galvani@gmail.com> References: <20180814130754.19294-1-b.galvani@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180814_060838_556390_632896A6 X-CRM114-Status: UNSURE ( 7.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Rini , Albert Aribaud , Neil Armstrong , Simon Glass , Beniamino Galvani , linux-amlogic@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The reset is already handled by the designware driver using information from device tree. Signed-off-by: Beniamino Galvani Acked-by: Neil Armstrong --- board/amlogic/nanopi-k2/nanopi-k2.c | 6 ------ board/amlogic/odroid-c2/odroid-c2.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/board/amlogic/nanopi-k2/nanopi-k2.c b/board/amlogic/nanopi-k2/nanopi-k2.c index 339dbb81db..ae29dd6fa4 100644 --- a/board/amlogic/nanopi-k2/nanopi-k2.c +++ b/board/amlogic/nanopi-k2/nanopi-k2.c @@ -30,12 +30,6 @@ int misc_init_r(void) meson_gx_eth_init(PHY_INTERFACE_MODE_RGMII, 0); - /* Reset PHY on GPIOZ_14 */ - clrbits_le32(GX_GPIO_EN(3), BIT(14)); - clrbits_le32(GX_GPIO_OUT(3), BIT(14)); - mdelay(10); - setbits_le32(GX_GPIO_OUT(3), BIT(14)); - if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { len = meson_sm_read_efuse(EFUSE_MAC_OFFSET, mac_addr, EFUSE_MAC_SIZE); diff --git a/board/amlogic/odroid-c2/odroid-c2.c b/board/amlogic/odroid-c2/odroid-c2.c index c47b9ce9cb..2a2755c387 100644 --- a/board/amlogic/odroid-c2/odroid-c2.c +++ b/board/amlogic/odroid-c2/odroid-c2.c @@ -30,12 +30,6 @@ int misc_init_r(void) meson_gx_eth_init(PHY_INTERFACE_MODE_RGMII, 0); - /* Reset PHY on GPIOZ_14 */ - clrbits_le32(GX_GPIO_EN(3), BIT(14)); - clrbits_le32(GX_GPIO_OUT(3), BIT(14)); - mdelay(10); - setbits_le32(GX_GPIO_OUT(3), BIT(14)); - if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { len = meson_sm_read_efuse(EFUSE_MAC_OFFSET, mac_addr, EFUSE_MAC_SIZE);