From: b.galvani@gmail.com (Beniamino Galvani)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v2 1/5] ARM: arch-meson: add ethernet common init function
Date: Sun, 26 Nov 2017 11:14:59 +0100 [thread overview]
Message-ID: <20171126101459.GA3519@gmail.com> (raw)
In-Reply-To: <5A193BBA.2080102@baylibre.com>
On Sat, Nov 25, 2017 at 10:45:30AM +0100, Neil Armstrong wrote:
> >
> >> + if (use_internal_phy) {
> >> + /* Use Internal PHY */
> >> + out_le32(GXBB_ETH_REG_2, 0x10110181);
> >> + out_le32(GXBB_ETH_REG_3, 0xe40908ff);
> >> + }
> >> +#endif
> >> +
> >> + break;
> >> +
> >> + default:
> >> + printf("Invalid Ethernet interface mode\n");
> >> + return;
> >> + }
> >> +
> >> + /* Enable power and clock gate */
> >> + setbits_le32(GXBB_GCLK_MPEG_1, GXBB_GCLK_MPEG_1_ETH);
> >> + clrbits_le32(GXBB_MEM_PD_REG_0, GXBB_MEM_PD_REG_0_ETH_MASK);
> >
> > Seems like this should be in a clock driver.
>
> It should, in next release ? Beniamino's I2C driver also used this,
> but yes a proper clock driver becomes necessary here.
I have written a basic clock driver that allows to enable/disable
gates and get their frequency. Do you think this is enough? I will
submit it soon (hopefully later today).
Beniamino
next prev parent reply other threads:[~2017-11-26 10:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-22 13:25 [PATCH v2 0/5] Add support for Amlogic GXL Based SBCs Neil Armstrong
2017-11-22 13:25 ` [PATCH v2 1/5] ARM: arch-meson: add ethernet common init function Neil Armstrong
2017-11-24 22:35 ` Simon Glass
2017-11-25 9:45 ` Neil Armstrong
2017-11-26 10:14 ` Beniamino Galvani [this message]
2017-11-26 11:39 ` Simon Glass
2017-11-27 8:48 ` Neil Armstrong
2017-11-27 17:12 ` Simon Glass
2017-11-22 13:25 ` [PATCH v2 2/5] board: odroid-c2: use common ethernet " Neil Armstrong
2017-11-24 22:35 ` Simon Glass
2017-11-22 13:25 ` [PATCH v2 3/5] board: p212: " Neil Armstrong
2017-11-24 22:35 ` Simon Glass
2017-11-22 13:25 ` [PATCH v2 4/5] arm: Add LibreTech CC support based on Meson GXL family Neil Armstrong
2017-11-24 22:35 ` Simon Glass
2017-11-25 9:46 ` Neil Armstrong
2017-11-22 13:25 ` [PATCH v2 5/5] arm: Add Khadas VIM " Neil Armstrong
2017-11-24 22:35 ` Simon Glass
2017-11-26 13:48 ` [U-Boot] " Andreas Färber
2017-11-25 9:48 ` [PATCH v2 0/5] Add support for Amlogic GXL Based SBCs Neil Armstrong
2017-11-25 22:34 ` Simon Glass
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=20171126101459.GA3519@gmail.com \
--to=b.galvani@gmail.com \
--cc=linus-amlogic@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).