From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen-Yu Tsai Date: Fri, 12 Apr 2019 14:40:41 +0800 Subject: [U-Boot] [RESEND-2 PATCH 2/4] net: sun8i-emac: Fix compilation for A83T In-Reply-To: <20190412064043.29017-1-wens@kernel.org> References: <20190412064043.29017-1-wens@kernel.org> Message-ID: <20190412064043.29017-3-wens@kernel.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Chen-Yu Tsai 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 -- 2.20.1