Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

develop a pci device driver on MPC8280 powerpc

Status
Not open for further replies.

mytreyi

Junior Member level 3
Joined
Jul 24, 2009
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
india
Activity points
1,460
Sir,

I am trying to develop a pci device driver on MPC8280 powerpc.I am finding a problem in accessing PCi configuration space.I am trying to make MPC8280 operate in the agent mode,to do this I have followed few steps.I have made few changes in the register settings and tried but my device is not getting detected when I insert the card in to
the pci slot of the main computer.

When I insert the card in to the pci slot, the system must try to access the configuration space of MPC8280 powerpc and should display the device id,vendor id on the main computer.


Now the question is how to send Device ID,vendor id to the main PC through the PCI bus.How to access the configuration space whose offset address is not mapped in the internal memory.


To do this I have made few changes in the register settings.Registers that I have changed are as shown below:

SYPCR=0xffffff80 ; IMMR=0xfff00000 ; CONFIG_ADDR = 0x80000000 ;BCR=0x100c8000 ;PPC_ACR=0X06;PPC_ALRH=0X61207893 ; SIUMCR=0X2260000 ; TESCR1=0X00004000 ;L_TESCR1=0X00004000
PCIMSK1=0XFC000000;PCIMSK0=0XC0000000;PCIBR1=0XF4000001 ;



In addition to this should I need to make any further changes to the registers.And kindly advice me whether the register settings which are shown above are correct or is there any other methodology for processing the same to get access to configuration space.

Kindly help me in this regard or kindly advice me to proceed further in this regard.I will be very much thankful to you for the same.
 

Hi,

I have worked with MPC8260 for a long time (and 5 years ago)..... I personally doubt its wise to do this from the scratch, why don't you run a linux on it?

give the card a SDRAM and run a linux on it. 'm sure you can use ELDK or even U-Boot alone as a very good start. Otherwise my suggestion is to fing already written drivers for it. Speciallt in kernel of ELDK.

Regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top