PCI Setup - MCF5485

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCI Setup - MCF5485

2,007 Views
Fruth
Contributor I
We are using a LogicPD evaluation board with an MCF5485 CPU. The on board video controller is accessed through the PCI bus. Could anyone PLEASE point me towards some usable PCI setup code?? If it's used to drive a VGA chip that would be great. Right now simply setting up PCI is the bottleneck. We are not using Linux or any off-the-shelf OSs so this is entirely a "roll your own" project. Any help would be appreciated. 
 
I would think that Freescale would provide more than what is on the web-site. Hopefully I simply overlooked it.
Labels (1)
0 Kudos
Reply
4 Replies

729 Views
aeg
Contributor I
Fruth,

a good place to start is the 2.6.10 kernel and look at arch/m68k/coldfire/pci.c
It does have the basic setup, although some tweaking will be required.

Good luck,
Andreas


0 Kudos
Reply

729 Views
Fruth
Contributor I
AEG,
 
Thanks for your suggestion. I have the Linux source (2.6.10. & 2.6.26) and there is no exact path "arch/m68k/coldfire/pci.c". The Linux implementation is more complex and general than our requirements although I may be able to hammer it into our system. I had hoped for something more concise... Does anyone else have any pointers? Thanks in advance.
 
Quoting from included Linux documentation ..
How To Write Linux PCI Drivers
  by Martin Mares <mj<at>w<dot>c z> on 07-Feb-2000
 updated by Grant Grundler <grundler<at>parisc-linux<dot>or g> on 23-Dec-2006
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The world of PCI is vast and full of (mostly unpleasant) surprises.
Since each CPU architecture implements different chip-sets and PCI devices
have different requirements (erm, "features"), the result is the PCI support
in the Linux kernel is not as trivial as one would wish. This short paper
tries to introduce all potential driver authors to Linux APIs for
PCI device drivers.

0 Kudos
Reply

729 Views
ChrisJohns
Contributor I
Don't forget Linux code is GPL.
0 Kudos
Reply

729 Views
aeg
Contributor I
And Chris is absolutely correct. The kernel is GPL.

Have you tried the coldfire init tool? That should at least give you a basic setup of the registers you need to tweak. I usually use it when I bring up a new board.

-A
0 Kudos
Reply