From: Andre Przywara <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/6] clk: sunxi: v3s: Implement EMAC clocks/resets
Date: Wed, 19 May 2021 22:43:03 +0100 [thread overview]
Message-ID: <20210519224245.1fbfa896@slackpad.fritz.box> (raw)
In-Reply-To: <20210519194208.515548-3-rehn.andreas86@gmail.com>
On Wed, 19 May 2021 21:42:04 +0200
Andreas Rehn <rehn.andreas86@gmail.com> wrote:
> Add emac clock and reset register/bits.
>
> Signed-off-by: Andreas Rehn <rehn.andreas86@gmail.com>
Compared against the manual and the Linux driver.
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Cheers,
Andre
> ---
> drivers/clk/sunxi/clk_v3s.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c
> index 29622199fd..55fc597043 100644
> --- a/drivers/clk/sunxi/clk_v3s.c
> +++ b/drivers/clk/sunxi/clk_v3s.c
> @@ -17,6 +17,7 @@ static struct ccu_clk_gate v3s_gates[] = {
> [CLK_BUS_MMC0] = GATE(0x060, BIT(8)),
> [CLK_BUS_MMC1] = GATE(0x060, BIT(9)),
> [CLK_BUS_MMC2] = GATE(0x060, BIT(10)),
> + [CLK_BUS_EMAC] = GATE(0x060, BIT(17)),
> [CLK_BUS_SPI0] = GATE(0x060, BIT(20)),
> [CLK_BUS_OTG] = GATE(0x060, BIT(24)),
>
> @@ -24,6 +25,8 @@ static struct ccu_clk_gate v3s_gates[] = {
> [CLK_BUS_UART1] = GATE(0x06c, BIT(17)),
> [CLK_BUS_UART2] = GATE(0x06c, BIT(18)),
>
> + [CLK_BUS_EPHY] = GATE(0x070, BIT(0)),
> +
> [CLK_SPI0] = GATE(0x0a0, BIT(31)),
>
> [CLK_USB_PHY0] = GATE(0x0cc, BIT(8)),
> @@ -35,9 +38,12 @@ static struct ccu_reset v3s_resets[] = {
> [RST_BUS_MMC0] = RESET(0x2c0, BIT(8)),
> [RST_BUS_MMC1] = RESET(0x2c0, BIT(9)),
> [RST_BUS_MMC2] = RESET(0x2c0, BIT(10)),
> + [RST_BUS_EMAC] = RESET(0x2c0, BIT(17)),
> [RST_BUS_SPI0] = RESET(0x2c0, BIT(20)),
> [RST_BUS_OTG] = RESET(0x2c0, BIT(24)),
>
> + [RST_BUS_EPHY] = RESET(0x2c8, BIT(2)),
> +
> [RST_BUS_UART0] = RESET(0x2d8, BIT(16)),
> [RST_BUS_UART1] = RESET(0x2d8, BIT(17)),
> [RST_BUS_UART2] = RESET(0x2d8, BIT(18)),
next prev parent reply other threads:[~2021-05-19 21:43 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 19:42 [PATCH 0/6] arm: sunxi: v3s: add ethernet support Andreas Rehn
2021-05-19 19:42 ` [PATCH 1/6] dts: sunxi: add licheepi-zero-dock Andreas Rehn
2021-05-19 21:42 ` Andre Przywara
2021-05-19 21:55 ` Andreas Rehn
2021-05-19 19:42 ` [PATCH 2/6] clk: sunxi: v3s: Implement EMAC clocks/resets Andreas Rehn
2021-05-19 21:43 ` Andre Przywara [this message]
2021-05-19 19:42 ` [PATCH 3/6] clk: sunxi: v3s: fix tabs / spaces Andreas Rehn
2021-05-19 21:43 ` Andre Przywara
2021-05-19 21:59 ` Andreas Rehn
2021-05-22 23:17 ` [PATCH v2 " Andreas Rehn
2021-05-26 23:16 ` Andre Przywara
2022-01-15 17:36 ` Sean Anderson
2021-05-19 19:42 ` [PATCH 4/6] net: sun8i-emac: add v3s pinmux setting Andreas Rehn
2021-05-19 21:44 ` Andre Przywara
2021-05-22 23:22 ` [PATCH v2 4/6] net: sun8i-emac: add v3s variant Andreas Rehn
2021-05-25 6:53 ` Ramon Fried
2021-05-26 23:24 ` Andre Przywara
2021-12-07 6:13 ` Jagan Teki
2021-05-19 19:42 ` [PATCH 5/6] dts: sunxi: v3s: enable emac support Andreas Rehn
2021-05-19 21:44 ` Andre Przywara
2021-05-19 19:42 ` [PATCH 6/6] net: sun8i-emac: v3s: fix soft reset timeout Andreas Rehn
2021-05-19 21:44 ` Andre Przywara
2021-05-19 22:10 ` Andreas Rehn
2021-05-19 22:46 ` Andre Przywara
2021-05-20 0:18 ` Andre Przywara
2021-05-21 20:14 ` Andreas Rehn
2021-06-03 13:56 ` Andre Przywara
2021-06-03 14:43 ` Heinrich Schuchardt
2021-06-03 15:29 ` Andreas Rehn
2021-05-22 23:23 ` [PATCH v2 " Andreas Rehn
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=20210519224245.1fbfa896@slackpad.fritz.box \
--to=andre.przywara@arm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox