Unable to Read PPC440EPx Board ID thru Board Control and Status Registers (BCSR)
Dell Query
dell.query at yahoo.com
Thu Nov 29 14:16:08 EST 2007
I don't know if the document that came with the PPC440EPx Sequoia Resource CD is right. It is odd that it is entitled "Embedded Planet 440xC" and it showed in page 34:
-----------------------------------------------------------------------
Table 4-4. Memory Map
Function Start Address End Address Size Chip Select
DDR SDRAM 0x0000 0000 0x0FFF FFFF 256 MB â
PCI Memory 0x8000 0000 0xBFFF FFFF 1024 MB â
BCSR 0xC000 0000 0xCFFF FFFF 256 MB CS2
NAND FLASH Controller1 0xD000 0000 0xD00F FFFF 1 MB CS3/CS0
NOR FLASH1 0xFC00 0000 0xFFFF FFFF 64 MB CS0/CS3
-----------------------------------------------------------------------
Anyway, I have seen Table 1. System Memory Address Map and it got EBC mapped at 0x1.c000.0000 and another one at 0x1.f000.0000. But I didn't see any BCSR info. Correct me if I am wrong, but should it not give me BCSR details like:
Register 0 = ID Board ID
Register 1 = 0000 0000 CPLD revision
Register 2 = 0000 xxxx User dip-switch / LEDs
Register 3 = 0000 xxxx Configuration dip-switch
Register 4 = 0000 0000 TMRCLK control
Register 5 = 0000 0000 PCI control, status, info
Register 6 = 0000 0000 Reset control
Register 7 = 0000 001x Memory control
Register 8 = 0000 0000 Ethernet control
Register 9 = 0000 0001 USB control
Register 10 = 0000 0000 Performance timer (MS Byte, bits 27-24)
Register 11 = 0000 0000 Performance timer (bits 23-16)
Register 12 = 0000 0000 Performance timer (bits 15-8)
Register 13 = 0000 0000 Performance timer (LS Byte, bits 7-0)
Regards,
dell
Stefan Roese <sr at denx.de> wrote: On Wednesday 28 November 2007, Dell Query wrote:
> Oh is it 0x1C0002000?
Just to be sure here, we are talking about the AMCC Sequoia board, right?
> Where can I get the document? What I have is 0xC0002000 from
> ep440xc_um_amcc.pdf file that I get from the accompanying PPC440EPx
> resource CD.
Please take a look at the 440EPx data sheet. It has a nice table with an
overview of the address maps (table 1). Here you will notice that the EBC has
multiple maps, one starting at 0x1.c000.0000 and another one at
0x1.f000.0000. Yes, these are 36bit physical addresses. In U-Boot these are
mapped via the TLB to 0xc000.0000 and 0xf000.0000. So in U-Boot you are able
to access the CPLD at 0xc0000000. But in Linux you have to map the 36bit
address to get the virtual address which you need for accessing. And using
arch/ppc you need to call ioremap64() with this 36bit address as parameter.
Hope this helps.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
---------------------------------
Get easy, one-click access to your favorites. Make Yahoo! your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20071128/5cee23e2/attachment.htm
More information about the Linuxppc-embedded
mailing list