* MPC5200B - Mapping Micrel Ethernet Controller Chip
@ 2007-11-12 16:41 Sri nava kala devi Valteti, TLS-Chennai
2007-11-13 3:50 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: Sri nava kala devi Valteti, TLS-Chennai @ 2007-11-12 16:41 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: Prakash Palanisamy, TLS-Chennai
[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]
Hi,
We are using MPC5200B based custom board. In that we have an external
Micrel's ethernet controller mapped at 0xE0000000.
We have taken Lite5200 code as a reference to port linux to our new
board. We have integrated the ethernet driver given by the vendor
(Micrel).
Unfortunately, we are not able to access the chip mapped at 0xE0000000.
We performed the following steps to access the chip:
i) We mapped this address range of the Ethernet Controller Chip in
function "mpc52xx_map_io" as
"io_block_mapping(0xE0000000, 0xE0000000, 0x10000000, _PAGE_IO)"
ii) We tried to remap the address range using ioremap function, but we
got the same address (Virtual Address similar to IO logical Address)
even after the ioremap.
Can any one plz help us on how to map and access our chip?
Thanks,
Kala.
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
[-- Attachment #2: Type: text/html, Size: 4886 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MPC5200B - Mapping Micrel Ethernet Controller Chip
2007-11-12 16:41 MPC5200B - Mapping Micrel Ethernet Controller Chip Sri nava kala devi Valteti, TLS-Chennai
@ 2007-11-13 3:50 ` Grant Likely
0 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2007-11-13 3:50 UTC (permalink / raw)
To: Sri nava kala devi Valteti, TLS-Chennai
Cc: Prakash Palanisamy, TLS-Chennai, linuxppc-embedded
On 11/12/07, Sri nava kala devi Valteti, TLS-Chennai
<srinavakalav@hcl.in> wrote:
>
> We are using MPC5200B based custom board. In that we have an external Micrel's ethernet controller mapped at 0xE0000000.
>
> We have taken Lite5200 code as a reference to port linux to our new board. We have integrated the ethernet driver given by the vendor (Micrel).
>
> Unfortunately, we are not able to access the chip mapped at 0xE0000000.
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?) The chip selects on the 5200 are programmable so you need
to make sure that the chip select wired to the Micrel device is
actually configured for base address 0xe0000000.
There are up to 8 CS pins on the MPC5200B; LP_CS0 through LP_CS7. See
section 9.7.1 in the MPC5200B user manual for details on how to
configure them.
> We performed the following steps to access the chip:
>
> i) We mapped this address range of the Ethernet Controller Chip in function "mpc52xx_map_io" as
>
> "io_block_mapping(0xE0000000, 0xE0000000, 0x10000000, _PAGE_IO)"
You don't want to call this. ioremap is the only function you should
need to call. But *first*, you must make sure the CS pin is
configured correctly.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: MPC5200B - Mapping Micrel Ethernet Controller Chip
@ 2007-11-13 17:05 Sri nava kala devi Valteti, TLS-Chennai
2007-11-13 17:16 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: Sri nava kala devi Valteti, TLS-Chennai @ 2007-11-13 17:05 UTC (permalink / raw)
To: Grant Likely; +Cc: Prakash Palanisamy, TLS-Chennai, linuxppc-embedded
Hi
Thank you for your response=2E
> Are you *sure* it's mapped at physical address 0xe0000000? (ie=2E have
>you verified that you can access the device registers via u-boot or a
>debugger?) =20
Yes, We have accessed the Micrel chip via U-boot setting (Micrel Chips
Base addres) 0xE0000000 to the CS1 Start address Register=2E
The LP_CS1 pin is configured to access the chip in U-boot=2E
LINUX:
We also probed the CS1 signal and found some noise in the signal (but
wasn't any kind of pulse)=2E It might not be the actual Chip Select pulse=
=2E
But in U-Boot, we are getting proper Chip Select pulse=2E
LINUX:
The MBAR is mapped to default 0xF0000000 value=2E The BAT 2 settings in
the "mpc52xx_set_bat" function, is set to map the 0xf0000000 area=2E=20
Do we need to perform any similar BAT settings or any other settings to
access the IO Device mapped at 0xE0000000 ?
Thanks,
Kala=2E
-----Original Message-----
From: glikely@secretlab=2Eca [mailto:glikely@secretlab=2Eca] On Behalf Of
Grant Likely
Sent: Tuesday, November 13, 2007 9:21 AM
To: Sri nava kala devi Valteti, TLS-Chennai
Cc: linuxppc-embedded@ozlabs=2Eorg; Prakash Palanisamy, TLS-Chennai
Subject: Re: MPC5200B - Mapping Micrel Ethernet Controller Chip
On 11/12/07, Sri nava kala devi Valteti, TLS-Chennai
<srinavakalav@hcl=2Ein> wrote:
>
> We are using MPC5200B based custom board=2E In that we have an external
Micrel's ethernet controller mapped at 0xE0000000=2E
>
> We have taken Lite5200 code as a reference to port linux to our new
board=2E We have integrated the ethernet driver given by the vendor
(Micrel)=2E
>
> Unfortunately, we are not able to access the chip mapped at
0xE0000000=2E
Are you *sure* it's mapped at physical address 0xe0000000? (ie=2E have
you verified that you can access the device registers via u-boot or a
debugger?) The chip selects on the 5200 are programmable so you need
to make sure that the chip select wired to the Micrel device is
actually configured for base address 0xe0000000=2E
There are up to 8 CS pins on the MPC5200B; LP_CS0 through LP_CS7=2E See
section 9=2E7=2E1 in the MPC5200B user manual for details on how to
configure them=2E
> We performed the following steps to access the chip:
>
> i) We mapped this address range of the Ethernet Controller Chip in
function "mpc52xx_map_io" as
>
> "io_block_mapping(0xE0000000, 0xE0000000, 0x10000000, _PAGE_IO)"
You don't want to call this=2E ioremap is the only function you should
need to call=2E But *first*, you must make sure the CS pin is
configured correctly=2E
Cheers,
g=2E
--=20
Grant Likely, B=2ESc=2E, P=2EEng=2E
Secret Lab Technologies Ltd=2E
grant=2Elikely@secretlab=2Eca
(403) 399-0195
DISCLAIMER:
---------------------------------------------------------------------------=
--------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and=
intended for the named recipient(s) only=2E
It shall not attach any liability on the originator or HCL or its=
affiliates=2E Any views or opinions presented in=20
this email are solely those of the author and may not necessarily reflect=
the opinions of HCL or its affiliates=2E
Any form of reproduction, dissemination, copying, disclosure, modification,=
distribution and / or publication of=20
this message without the prior written consent of the author of this e-mail=
is strictly prohibited=2E If you have=20
received this email in error please delete it and notify the sender=
immediately=2E Before opening any mail and=20
attachments please check them for viruses and defect=2E
---------------------------------------------------------------------------=
--------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MPC5200B - Mapping Micrel Ethernet Controller Chip
2007-11-13 17:05 Sri nava kala devi Valteti, TLS-Chennai
@ 2007-11-13 17:16 ` Grant Likely
0 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2007-11-13 17:16 UTC (permalink / raw)
To: Sri nava kala devi Valteti, TLS-Chennai
Cc: Prakash Palanisamy, TLS-Chennai, linuxppc-embedded
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-13 17:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 16:41 MPC5200B - Mapping Micrel Ethernet Controller Chip Sri nava kala devi Valteti, TLS-Chennai
2007-11-13 3:50 ` Grant Likely
-- strict thread matches above, loose matches on Subject: below --
2007-11-13 17:05 Sri nava kala devi Valteti, TLS-Chennai
2007-11-13 17:16 ` Grant Likely
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).