From patchwork Thu Feb 25 08:44:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1444172 X-Patchwork-Delegate: narmstrong@baylibre.com 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; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=MkzqV/C9; 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 4DmRFr320Wz9sVF for ; Thu, 25 Feb 2021 19:45:52 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B0EC80EFE; Thu, 25 Feb 2021 09:45:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="MkzqV/C9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D58E80765; Thu, 25 Feb 2021 09:44:57 +0100 (CET) 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,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8BD7C8092A for ; Thu, 25 Feb 2021 09:44:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wm1-x335.google.com with SMTP id m1so4099217wml.2 for ; Thu, 25 Feb 2021 00:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SAjq3SIpzuRJka+cscK8qb29AZulu6WA3Q1iakALxXY=; b=MkzqV/C9JRAkmiSGXWaYqfs3wcWlTMNryA2AWtq+j4Zlkej/YQJZWvyY5vJ6AAW46U 75T6wxnRXkb58VuW8+UbCNwa79UYuNa79qQ8mCFgC3VThfbPBtbfmZEUybfTyLm+BHzQ 4HgcHOFQ76C4t6G2+reoozeZ0d28bIow6EwX9FsBm2oFS2eNY209msjr9Ftoy7SOOsoP x+vNyUOQ7tVZhwkIoWaDuk2n4kmskU73BXAJIMmMJZ1+GdlDrN+Jbg6kIzjWw1aMVR4P /HFqFaAYY2qENIqiUCqXNLS5LtNWnlw+vD8r/4nlLiR74Wcg5LuSEc3uBA3aBGsiLna4 I2lg== 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:mime-version:content-transfer-encoding; bh=SAjq3SIpzuRJka+cscK8qb29AZulu6WA3Q1iakALxXY=; b=Zg3AQXbXpQeLvZS0QNxLnhxpNjp1WA+L9g6d2pHiufVWUr46dszYB3XQdz+MoP/AIm dqwSFfR6Anb5l3D/QT+Oiv9ONkSMQNWDFGLAoVuN1KiEolkIogSnXZsjetAfIs9V0GpF tmUfW6AQ2sNeL2Y2kOrZxKvvEGmz6KbnOb7M2Dlx8dvYUHg01ihCwDFiqJCyIcqMPmoe e5u7AQzlh/OrwLIePeG6aaFX8ySvQBg83oSX4WQ9FB7TrrEAttWlOFDKMElp3ghRwB7U C3mKHAqqjBkr4VJocjCRSVNAxUY39loDKDfxbwGChaGcKVuhCfV54kTcSZYYe2DG35Gt XAwg== X-Gm-Message-State: AOAM533Tl5JQfs+99LMMOy7rEpQi8mgaSzIVji9GuHxkBviflOFoTX6W zKazyYM1jB9vEXI2Umw8C3p1/fXzzohJ/+uf X-Google-Smtp-Source: ABdhPJzfff2TqQFIJr9x0Oa01vGVxpl9D6iKa/6IH9nZ8mhmS/k1gcR65MBlF032V6l6tqXV/XxXoA== X-Received: by 2002:a1c:9854:: with SMTP id a81mr649291wme.19.1614242690630; Thu, 25 Feb 2021 00:44:50 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:90c:e290:c3ab:3c03:bb16:99c6]) by smtp.gmail.com with ESMTPSA id t2sm7595705wrx.23.2021.02.25.00.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 00:44:49 -0800 (PST) From: Neil Armstrong To: u-boot@lists.denx.de Cc: u-boot-amlogic@groups.io, christianshewitt@gmail.com, b.galvani@gmail.com, Neil Armstrong Subject: [RFC/RFT 6/7] arm: meson: remove static ethernet memory power domain enable Date: Thu, 25 Feb 2021 09:44:37 +0100 Message-Id: <20210225084438.2964558-7-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210225084438.2964558-1-narmstrong@baylibre.com> References: <20210225084438.2964558-1-narmstrong@baylibre.com> MIME-Version: 1.0 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.4 at phobos.denx.de X-Virus-Status: Clean The ethernet memory power domain is handled by the meson-ee-pwrc driver, delete the static code. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/board-g12a.c | 3 --- arch/arm/mach-meson/board-gx.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/arch/arm/mach-meson/board-g12a.c b/arch/arm/mach-meson/board-g12a.c index bfd40fe14f..cc7e01d014 100644 --- a/arch/arm/mach-meson/board-g12a.c +++ b/arch/arm/mach-meson/board-g12a.c @@ -126,9 +126,6 @@ void meson_eth_init(phy_interface_t mode, unsigned int flags) printf("Invalid Ethernet interface mode\n"); return; } - - /* Enable power gate */ - clrbits_le32(G12A_MEM_PD_REG_0, G12A_MEM_PD_REG_0_ETH_MASK); } #if CONFIG_IS_ENABLED(USB_DWC3_MESON_G12A) && \ diff --git a/arch/arm/mach-meson/board-gx.c b/arch/arm/mach-meson/board-gx.c index 876405f0d4..cae7af5afb 100644 --- a/arch/arm/mach-meson/board-gx.c +++ b/arch/arm/mach-meson/board-gx.c @@ -142,9 +142,6 @@ void meson_eth_init(phy_interface_t mode, unsigned int flags) printf("Invalid Ethernet interface mode\n"); return; } - - /* Enable power gate */ - clrbits_le32(GX_MEM_PD_REG_0, GX_MEM_PD_REG_0_ETH_MASK); } #if CONFIG_IS_ENABLED(USB_DWC3_MESON_GXL) && \