From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Sri nava kala devi Valteti, TLS-Chennai" <srinavakalav@hcl.in>
Cc: "Prakash Palanisamy, TLS-Chennai" <prakashp@hcl.in>,
linuxppc-embedded@ozlabs.org
Subject: Re: MPC5200B - Mapping Micrel Ethernet Controller Chip
Date: Tue, 13 Nov 2007 10:16:54 -0700 [thread overview]
Message-ID: <fa686aa40711130916k232fc7cfjac1d08b3b266fb48@mail.gmail.com> (raw)
In-Reply-To: <66E8AEE9980BB44CA5FCAD39EBA56AC602D89B6B@CHN-HCLT-EVS02.HCLT.CORP.HCL.IN>
On 11/13/07, Sri nava kala devi Valteti, TLS-Chennai
<srinavakalav@hcl.in> wrote:
>
> Hi
> Thank you for your response.
> > Are you *sure* it's mapped at physical address 0xe0000000? (ie. have
> >you verified that you can access the device registers via u-boot or a
> >debugger?)
>
> Yes, We have accessed the Micrel chip via U-boot setting (Micrel Chips
> Base addres) 0xE0000000 to the CS1 Start address Register.
> The LP_CS1 pin is configured to access the chip in U-boot.
>
>
> LINUX:
> We also probed the CS1 signal and found some noise in the signal (but
> wasn't any kind of pulse). It might not be the actual Chip Select pulse.
> But in U-Boot, we are getting proper Chip Select pulse.
Most likely, something in the board setup routine (in Linux) is
fiddling with the CS settings (which it should not do). If you u-boot
has it working, then it *should* just carry over to working in Linux.
>
> LINUX:
> The MBAR is mapped to default 0xF0000000 value. The BAT 2 settings in
> the "mpc52xx_set_bat" function, is set to map the 0xf0000000 area.
> Do we need to perform any similar BAT settings or any other settings to
> access the IO Device mapped at 0xE0000000 ?
No. u-boot should be responsible for configuring the CS pins. Once
the kernel takes over, you should only need to call ioremap() to get
access to the device.
mpc52xx_set_bat? You must be using arch/ppc (which is depreciated).
Can you move up to a more recent kernel and use arch/powerpc instead?
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
next prev parent reply other threads:[~2007-11-13 17:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 17:05 MPC5200B - Mapping Micrel Ethernet Controller Chip Sri nava kala devi Valteti, TLS-Chennai
2007-11-13 17:16 ` Grant Likely [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-12 16:41 Sri nava kala devi Valteti, TLS-Chennai
2007-11-13 3:50 ` Grant Likely
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=fa686aa40711130916k232fc7cfjac1d08b3b266fb48@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=linuxppc-embedded@ozlabs.org \
--cc=prakashp@hcl.in \
--cc=srinavakalav@hcl.in \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).