From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Thu, 19 Sep 2013 08:13:48 -0700 Subject: [U-Boot] How the ORx in MPC8641d soc Registers are filled? In-Reply-To: <523B06E2.1030401@gmail.com> References: <523A83A2.6060703@gmail.com> <02EB1647-E534-4B8C-BE11-AFF488B019F0@freescale.com> <523B06E2.1030401@gmail.com> Message-ID: <523B14AC.10605@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 On 09/19/2013 07:14 AM, Ashish wrote: > On Thursday 19 September 2013 11:50 AM, sun york-R58495 wrote: >> On Sep 18, 2013, at 9:54 PM, Ashish wrote: >> >>> York, >>> I am trying to understand how the fields of ORx registers are >>> filled. I am using MPC8641-HPCN board for evaluation purpose. In this >>> i am trying to connect a 16MB size 32 bit-port size Nor flash >>> (2xAT49bv6416). I am using Code Warrior for Bring up process. I have >>> tried to search for the fields how they are calculated but i get only >>> values not the way they calculates. Any thing/pointer that helps me >>> to explore how ORx register is filled would be very helpful. >>> >>> -- >>> --with Regards >>> Ashish Khetan >>> >> Ashish, >> >> There isn't much to calculate. Do you have access to the reference >> manual? It is available on www.freescale.com. Once you know the device >> type and physical connection, you are pretty much fixed with most >> fields. You only need to get the timing to match the bus speed and >> device speed. >> >> York >> >> > Thanks York, > Can i ask you to explain more about the ORx register? How the Timing > values are calculated? > Because The flash is connected using chip-select0 through Local bus > controller. I am getting only read from the flash but its not getting > erase/reprogrammed. > I used the following Register configuration: > SYSCLK is 100Mhz, MPX 400Mhz, CORE 800Mhz > BR0 FF001801 > OR0 FF006FF7 > LBCR 00000000 > LCRR 80000008 > So the Local Bus is working at 25Mhz. > Ashish, Your OR0 sets to slowest speed, so it should work. But I noticed you said and set the size to 16MB. Are you replacing the on-board NOR flash with the one you mentioned? I didn't check the spec of the part number. But if you did replace with a twice sized flash chip, you need to get the address signal connected. I don't believe MPC8641HPCN board has spare address line connected. York