PCI Setup - MCF5485

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PCI Setup - MCF5485

2,563件の閲覧回数
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.
ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,285件の閲覧回数
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 件の賞賛
返信

1,285件の閲覧回数
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 件の賞賛
返信

1,285件の閲覧回数
ChrisJohns
Contributor I
Don't forget Linux code is GPL.
0 件の賞賛
返信

1,285件の閲覧回数
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 件の賞賛
返信