All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@kernel.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RESEND-2 PATCH 1/4] sunxi: Fix compilation of sun8i-emac for A83T
Date: Fri, 12 Apr 2019 14:40:40 +0800	[thread overview]
Message-ID: <20190412064043.29017-2-wens@kernel.org> (raw)
In-Reply-To: <20190412064043.29017-1-wens@kernel.org>

From: Chen-Yu Tsai <wens@csie.org>

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.

Add dummy entries to the clock control module structure to make
the compiler happy. The code path using these fields is unused
for A83T in the driver.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---

 arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h b/arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h
index 14df3cc8f46b..15c1d6fe820a 100644
--- a/arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h
+++ b/arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h
@@ -124,6 +124,10 @@ struct sunxi_ccm_reg {
 	u32 ahb_reset3_cfg;	/* 0x2d0 AHB1 Reset 3 config */
 	u32 reserved32;		/* 0x2d4 */
 	u32 apb2_reset_cfg;	/* 0x2d8 BUS Reset 4 config */
+
+	/* the following exist only to make sun8i-emac happy */
+	u32 gmac_clk_cfg;
+	u32 bus_gate4;
 };
 
 /* apb2 bit field */
-- 
2.20.1

  reply	other threads:[~2019-04-12  6:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-12  6:40 [U-Boot] [RESEND-2 PATCH 0/4] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY Chen-Yu Tsai
2019-04-12  6:40 ` Chen-Yu Tsai [this message]
2019-04-12  6:40 ` [U-Boot] [RESEND-2 PATCH 2/4] net: sun8i-emac: Fix compilation for A83T Chen-Yu Tsai
2019-04-12  6:40 ` [U-Boot] [RESEND-2 PATCH 3/4] sunxi: Enable EMAC on the Cubietruck Plus Chen-Yu Tsai
2019-04-12  6:40 ` [U-Boot] [RESEND-2 PATCH 4/4] sunxi: Enable EMAC on the Bananapi M3 Chen-Yu Tsai
2019-04-17 11:37 ` [U-Boot] [RESEND-2 PATCH 0/4] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY Jagan Teki
2019-04-18 15:09   ` Chen-Yu Tsai
2019-04-18 16:15     ` Chen-Yu Tsai
2019-04-18 16:30       ` Chen-Yu Tsai
2019-04-18 16:41         ` Jagan Teki
2019-04-18 16:49           ` Chen-Yu Tsai
2019-04-18 16:51             ` Jagan Teki
2019-04-18 17:03               ` Chen-Yu Tsai
2019-04-18 17:07                 ` Jagan Teki
2019-04-18 17:12                   ` Chen-Yu Tsai
2019-04-18 17:15                     ` Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190412064043.29017-2-wens@kernel.org \
    --to=wens@kernel.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.