From: Laurence Withers Date: Mon, 30 Jul 2012 16:32:58 +0000 Subject: [U-Boot] [PATCH] DaVinci DA8xx: fix set_cpu_clk_info() In-Reply-To: References: <1343386182-12335-1-git-send-email-lwithers@guralp.com> Message-ID: <20120730163258.GB26574@guralp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jul 28, 2012 at 12:49:55PM +0530, Prabhakar Lad wrote: > Thanks for the patch. I have tested this patch, below are few comments. [snip] > > +int set_cpu_clk_info(void) > > +{ > > + gd->bd->bi_arm_freq = clk_get(DAVINCI_ARM_CLKID) / 1000000; > > + /* DDR PHY uses an x2 input clock */ > > + gd->bd->bi_ddr_freq = clk_get(0x10001) / 1000000; > > Can you define a macro for this 0x10001 ? > > With that change you can add my ACK: > Acked-by: Prabhakar Lad Hi Prabhakar, I have tidied up the clock IDs a little and added a constant for the DDR2 clock ID as you suggested. It made sense that this would be a separate set of patches: http://lists.denx.de/pipermail/u-boot/2012-July/129444.html Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+443333408643 Software Engineer General support queries: CMG-DCM CMG-EAM CMG-NAM