From patchwork Fri Apr 12 03:33:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 1084405 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=csie.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44gNpj52htz9s70 for ; Fri, 12 Apr 2019 13:36:13 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1145DC21CB6; Fri, 12 Apr 2019 03:35:32 +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=none 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 7FA47C21CB6; Fri, 12 Apr 2019 03:34:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D7EA1C21C2C; Fri, 12 Apr 2019 03:33:24 +0000 (UTC) Received: from wens.csie.org (mirror2.csie.ntu.edu.tw [140.112.30.76]) by lists.denx.de (Postfix) with ESMTPS id CCCD2C21DB5 for ; Fri, 12 Apr 2019 03:33:23 +0000 (UTC) Received: by wens.csie.org (Postfix, from userid 1000) id 6776760AF4; Fri, 12 Apr 2019 11:33:19 +0800 (CST) From: Chen-Yu Tsai To: u-boot@lists.denx.de Date: Fri, 12 Apr 2019 11:33:12 +0800 Message-Id: <20190412033314.14034-3-wens@csie.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190412033314.14034-1-wens@csie.org> References: <20190412033314.14034-1-wens@csie.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 12 Apr 2019 03:34:43 +0000 Cc: Maxime Ripard , Joe Hershberger , Chen-Yu Tsai , Jagan Teki Subject: [U-Boot] [PATCH 2/4] net: sun8i-emac: Fix compilation for A83T 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The A83T has its own clock header file and clock control module structure, unlike H3/A64/R40 which share a common one. As such some of the SoC specific fields or macros are undefined when building U-boot for A83T. Define the AHB_RESET_OFFSET_EPHY macro if it isn't already defined to make the compiler happy. The code path including this macro is unused in the driver for A83T. Signed-off-by: Chen-Yu Tsai --- This patch should go in with the others through the sunxi tree, not independently through the net tree. drivers/net/sun8i_emac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index c9798445c7dd..b6b4b1030153 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -68,6 +68,9 @@ #define CONFIG_MDIO_TIMEOUT (3 * CONFIG_SYS_HZ) #define AHB_GATE_OFFSET_EPHY 0 +#ifndef AHB_RESET_OFFSET_EPHY +#define AHB_RESET_OFFSET_EPHY 2 +#endif /* IO mux settings */ #define SUN8I_IOMUX_H3 2