From: Matt Porter <mporter@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] am33xx: add pll and clock support for TI814x CPSW
Date: Wed, 20 Mar 2013 09:25:43 -0400 [thread overview]
Message-ID: <20130320132543.GF18335@beef> (raw)
In-Reply-To: <d69165e9a5a04a7ca881ee870c8c8ba2@DLEE70.ent.ti.com>
On Fri, Mar 15, 2013 at 09:13:54PM +0000, Tom Rini wrote:
> On Fri, Mar 15, 2013 at 04:58:17PM -0400, Matt Porter wrote:
>
> [snip]
> > + /* Ethernet */
> > + writel(PRCM_MOD_EN, &cmalwon->l3slowclkstctrl);
> > + while ((readl(&cmalwon->l3slowclkstctrl) & 0x2100) != 0x2100)
> > + ;
> > + writel(PRCM_MOD_EN, &cmalwon->ethclkstctrl);
> > + writel(PRCM_MOD_EN, &cmalwon->ethernet0clkctrl);
> > + while ((readl(&cmalwon->ethernet0clkctrl) & 0x30000) != 0)
> > + ;
> > + writel(PRCM_MOD_EN, &cmalwon->ethernet1clkctrl);
> > + while ((readl(&cmalwon->ethernet1clkctrl) & 0x30000) != 0)
>
> Please define away the magic numbers.
>
> [snip]
> > +void sata_pll_config(void)
> > +{
> > + /* TRM 21.3.1 */
> > + writel(0xc12c003c, &spll->pllcfg1);
>
> I'm OK with comments, but please make it a multi-line thing that
> explains what's going on so that it's clear that yes, really, we
> shouldn't have defined these.
I'll address this with gratuitous defines in v2...and expand the
comment.
-Matt
next prev parent reply other threads:[~2013-03-20 13:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-15 20:58 [U-Boot] [PATCH 0/4] Enable CPSW on TI814x EVM Matt Porter
2013-03-15 20:58 ` [U-Boot] [PATCH 1/4] am33xx: add pll and clock support for TI814x CPSW Matt Porter
2013-03-15 21:13 ` Tom Rini
[not found] ` <d69165e9a5a04a7ca881ee870c8c8ba2@DLEE70.ent.ti.com>
2013-03-20 13:25 ` Matt Porter [this message]
2013-03-15 20:58 ` [U-Boot] [PATCH 2/4] cpsw: add support for TI814x slave_regs differences Matt Porter
2013-03-15 21:14 ` Tom Rini
2013-03-15 20:58 ` [U-Boot] [PATCH 3/4] phy: add support for ET1011C phys Matt Porter
2013-03-15 21:11 ` Tom Rini
[not found] ` <b195ef726d6b41de91dbec25b4db30b6@DFLE72.ent.ti.com>
2013-03-20 13:24 ` Matt Porter
2013-03-15 20:58 ` [U-Boot] [PATCH 4/4] ti814x_evm: enable CPSW support Matt Porter
2013-03-15 21:10 ` Tom Rini
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=20130320132543.GF18335@beef \
--to=mporter@ti.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 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.