All of lore.kernel.org
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] How the ORx in MPC8641d soc Registers are filled?
Date: Thu, 19 Sep 2013 08:13:48 -0700	[thread overview]
Message-ID: <523B14AC.10605@freescale.com> (raw)
In-Reply-To: <523B06E2.1030401@gmail.com>

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

           reply	other threads:[~2013-09-19 15:13 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <523B06E2.1030401@gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=523B14AC.10605@freescale.com \
    --to=yorksun@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.