From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/85xx: Change timebase divisor to be defined per processor
Date: Sat, 23 Apr 2011 20:45:34 +0200 [thread overview]
Message-ID: <20110423184534.8DAFCD5269D@gemini.denx.de> (raw)
In-Reply-To: <54CE1181-5449-4FBF-9402-DF5D4E99E4CE@kernel.crashing.org>
Dear Kumar Gala,
In message <54CE1181-5449-4FBF-9402-DF5D4E99E4CE@kernel.crashing.org> you wrote:
>
> On Apr 22, 2011, at 6:50 AM, Tabi Timur-B04825 wrote:
>
> > On Thu, Apr 21, 2011 at 1:59 PM, Kumar Gala <galak@kernel.crashing.org> wrote:
> >> Introduce new CONFIG_SYS_FSL_TBCLK_DIV on 85xx platforms because
> >> different SoCs have different divisor amounts. All the PQ3 parts are
> >> /8, the P4080/P4080 is /16, and P2040/P3041/P5020 are /32.
> >
> > Shouldn't there also be a README update to document this option?
>
> I think its self evident what it is.
Please fix it.
> >> + unsigned long tbclk_div = CONFIG_SYS_FSL_TBCLK_DIV;
> >> +
> >> + return (gd->bus_clk + (tbclk_div >> 1)) / tbclk_div;
> >
> > Why not just:
> >
> > return (gd->bus_clk + (CONFIG_SYS_FSL_TBCLK_DIV / 2)) /
> > CONFIG_SYS_FSL_TBCLK_DIV;
>
> It was done this way to deal w/line wrapping.
Now this is really a _very_ strange argument. Please fix as well.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The best index to a person's character is a) how he treats people
who can't do him any good and b) how he treats people who can't fight
back." - Abigail Van Buren
next prev parent reply other threads:[~2011-04-23 18:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 18:59 [U-Boot] [PATCH] powerpc/85xx: Change timebase divisor to be defined per processor Kumar Gala
2011-04-22 11:50 ` Tabi Timur-B04825
2011-04-22 13:26 ` Kumar Gala
2011-04-22 15:42 ` Scott Wood
2011-04-22 19:46 ` Tabi Timur-B04825
2011-04-23 18:45 ` Wolfgang Denk [this message]
2011-04-28 3:38 ` Kumar Gala
2011-04-28 3:39 ` [U-Boot] [PATCH v2] " Kumar Gala
2011-04-29 12:49 ` Kumar Gala
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=20110423184534.8DAFCD5269D@gemini.denx.de \
--to=wd@denx.de \
--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