From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Wed, 2 Mar 2011 13:58:07 -0600 Subject: [U-Boot] [u-boot-release] [PATCH 1/2] powerpc/mpc8xxx: Fix DDR3 timing_cfg_1 and sdram_mode registers In-Reply-To: <1299095564.9847.18.camel@oslab-l1> References: <1299091841-14594-1-git-send-email-yorksun@freescale.com> <4D6E9B0B.4080300@freescale.com> <1299094765.9847.12.camel@oslab-l1> <4D6E9E9B.402@freescale.com> <1299095564.9847.18.camel@oslab-l1> Message-ID: <4D6EA14F.8040009@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de York Sun wrote: > On Wed, 2011-03-02 at 13:46 -0600, Timur Tabi wrote: >> York Sun wrote: >>>>> if (wrrec_mclk & 1) >>>>> wrrec_mclk++; >>>>> >>> Only 9, 11, 13, 15 need to round up. >> >> What are all the possible values for wrrec_mclk? >> > > There is no limitation on register timing_cfg_1[wrrec_mclk]. It can be > any value. The limitation comes from JEDEC spec on mode register MR0. > The write recovery for autoprecharge is within the values of 5, 6, 7, 8, > 10, 12, 14, 16. My point is that we can do something like this: if (wrrec_mclk > 8 && wrrec_mclk < 16 && wrrec_mclk & 1) wrrec_mclk++; But we can simplify this if I can know what all possible values are. -- Timur Tabi Linux kernel developer@Freescale