Fellow Freescale MPC8313E users,
I've been looking through all the manuals/docs I can find from Freescale, but have been unable to find one thing I need for my project.
I am running the latest Linux BSP for the MPC8313E-RDB board and need to manipulate the onboard LEDs (either write the C code myself, or use a library if one is available). What I can't find is the actual physical address to write out to set/clear the onborad debug LEDs. According to the user guide it is mapped to LCS3 on the chip, but I can't find anything to say what address is mapped to LCS3. I assume the BSP or UBOOT load is setting a map between LCS3 and an actual physical address.
Can someone post the actual address for writing to the LEDs (should be same address as reading from the status buffer) or if there it is in a Freescale document please point me to that document?
Thanks in advance :smileyhappy:
abartky
Solved! Go to Solution.
Hi all,
After doing some more hunting I found the info I needed, I am posting this message in case someone else has the same problem I had finding the info.
I was able to find a good memory map on the MPC8313E-RDB Board Support Package and Documentaiton CDROM that came with the board.
The file: /help/hardware/8313evb_init.cfg has a full memory map. The MPC8313E-RDB LED/Status buffer is at 0xFA000000 and I have verified that with a small C command line utility I wrote and I also have it running in my IEEE 1588 / IEEE 802.1AS Precision Time Protocol stack. Here is an excerpt from that file with other addresses that may be of interest/use:
##############################################
# System Configuration - Local Access Windows
##############################################
# Local Bus Local Access Windows
#################################
# WINDOW 0 - FLASH
writemem.l 0xe0000020 0xfe000000 # LBLAWBAR0 - begining at 0xff000000
writemem.l 0xe0000024 0x80000017 # LBLAWAR0 - enable, size = 16MB
# WINDOW 1 - NAND Flash
writemem.l 0xe0000028 0xf8000000 # LBLAWBAR1 - begining at 0xf8000000
writemem.l 0xe000002c 0x80000018 # LBLAWAR1 - enable, size = 32MB
# WINDOW 2 - VSC7385
writemem.l 0xe0000030 0xf0000000 # LBLAWBAR2 - begining at 0xfc100000
writemem.l 0xe0000034 0x80000010 # LBLAWAR2 - enable, size = 128kB
# WINDOW 3 - Read Write Buffer
writemem.l 0xe0000038 0xfa000000 # LBLAWBAR3 - begining at 0xfa000000
writemem.l 0xe000003c 0x8000000e # LBLAWAR3 - enable, size = 32kB
# PCI Local Access Windows
#################################
# WINDOW 0
writemem.l 0xe0000060 0x80000000 # PCILAWBAR0 - begining at 0x80000000
writemem.l 0xe0000064 0x8000001c # PCILAWAR0 - enable, size = 512MB
# WINDOW 1
writemem.l 0xe0000068 0xa0000000 # PCILAWBAR1 - begining at 0xa0000000
writemem.l 0xe000006c 0x8000001c # PCILAWAR1 - enable, size = 512MB
# DDR Local Access Windows
#################################
# WINDOW 0 - 1st DDR SODIMM
writemem.l 0xe00000a0 0x00000000 # DDRLAWBAR0 - begining at 0x00000000
writemem.l 0xe00000a4 0x8000001a # DDRLAWAR0 - enable, size = 128MB
# WINDOW 1 - 2nd DDR SODIMM
#writemem.l 0xe00000a8 0x10000000 # DDRLAWBAR1 - begining at 0x10000000
#writemem.l 0xe00000ac 0x8000001b # DDRLAWAR1 - enable, size = 256MB
writemem.l 0xe00000e0 0x08000000 # DDRLAWBAR0 - begining at 0x08000000
writemem.l 0xe00000e4 0x8000001a # DDRLAWAR0 - enable, size = 128MB
- abartky
Hi all,
After doing some more hunting I found the info I needed, I am posting this message in case someone else has the same problem I had finding the info.
I was able to find a good memory map on the MPC8313E-RDB Board Support Package and Documentaiton CDROM that came with the board.
The file: /help/hardware/8313evb_init.cfg has a full memory map. The MPC8313E-RDB LED/Status buffer is at 0xFA000000 and I have verified that with a small C command line utility I wrote and I also have it running in my IEEE 1588 / IEEE 802.1AS Precision Time Protocol stack. Here is an excerpt from that file with other addresses that may be of interest/use:
##############################################
# System Configuration - Local Access Windows
##############################################
# Local Bus Local Access Windows
#################################
# WINDOW 0 - FLASH
writemem.l 0xe0000020 0xfe000000 # LBLAWBAR0 - begining at 0xff000000
writemem.l 0xe0000024 0x80000017 # LBLAWAR0 - enable, size = 16MB
# WINDOW 1 - NAND Flash
writemem.l 0xe0000028 0xf8000000 # LBLAWBAR1 - begining at 0xf8000000
writemem.l 0xe000002c 0x80000018 # LBLAWAR1 - enable, size = 32MB
# WINDOW 2 - VSC7385
writemem.l 0xe0000030 0xf0000000 # LBLAWBAR2 - begining at 0xfc100000
writemem.l 0xe0000034 0x80000010 # LBLAWAR2 - enable, size = 128kB
# WINDOW 3 - Read Write Buffer
writemem.l 0xe0000038 0xfa000000 # LBLAWBAR3 - begining at 0xfa000000
writemem.l 0xe000003c 0x8000000e # LBLAWAR3 - enable, size = 32kB
# PCI Local Access Windows
#################################
# WINDOW 0
writemem.l 0xe0000060 0x80000000 # PCILAWBAR0 - begining at 0x80000000
writemem.l 0xe0000064 0x8000001c # PCILAWAR0 - enable, size = 512MB
# WINDOW 1
writemem.l 0xe0000068 0xa0000000 # PCILAWBAR1 - begining at 0xa0000000
writemem.l 0xe000006c 0x8000001c # PCILAWAR1 - enable, size = 512MB
# DDR Local Access Windows
#################################
# WINDOW 0 - 1st DDR SODIMM
writemem.l 0xe00000a0 0x00000000 # DDRLAWBAR0 - begining at 0x00000000
writemem.l 0xe00000a4 0x8000001a # DDRLAWAR0 - enable, size = 128MB
# WINDOW 1 - 2nd DDR SODIMM
#writemem.l 0xe00000a8 0x10000000 # DDRLAWBAR1 - begining at 0x10000000
#writemem.l 0xe00000ac 0x8000001b # DDRLAWAR1 - enable, size = 256MB
writemem.l 0xe00000e0 0x08000000 # DDRLAWBAR0 - begining at 0x08000000
writemem.l 0xe00000e4 0x8000001a # DDRLAWAR0 - enable, size = 128MB
- abartky