[U-Boot] How the ORx in MPC8641d soc Registers are filled?

York Sun yorksun at freescale.com
Thu Sep 19 17:13:48 CEST 2013


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





More information about the U-Boot mailing list