From: Kumar Gala Date: Wed, 27 Apr 2011 22:38:39 -0500 Subject: [U-Boot] [PATCH] powerpc/85xx: Change timebase divisor to be defined per processor In-Reply-To: <20110423184534.8DAFCD5269D@gemini.denx.de> References: <1303412373-11991-1-git-send-email-galak@kernel.crashing.org> <54CE1181-5449-4FBF-9402-DF5D4E99E4CE@kernel.crashing.org> <20110423184534.8DAFCD5269D@gemini.denx.de> Message-ID: <3FE1BFD7-69FC-4593-B24B-C25E20B29BEE@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Apr 23, 2011, at 1:45 PM, Wolfgang Denk wrote: > 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 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. I consider it more readable as it stands. I'm not changing this. - k