Sample driver

3 messages, 3 authors, 2008-02-20 · open the first message on its own page

Sample driver

From: Silwer star <hidden>
Date: 2008-02-20 04:13:28

Does anyone have sample drivers in Linux for the EBC interface for PPC405Ex?
I would be thankful if someone could put in a sample code here. 
-- 
View this message in context: http://www.nabble.com/Sample-driver-tp15582059p15582059.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

Re: Sample driver

From: Josh Boyer <hidden>
Date: 2008-02-20 12:08:03

On Tue, 19 Feb 2008 20:13:24 -0800 (PST)
Silwer star [off-list ref] wrote:
Does anyone have sample drivers in Linux for the EBC interface for PPC405Ex?
I would be thankful if someone could put in a sample code here. 
Linux typically doesn't touch the EBC itself.  That is normally set up
by firmware such as U-Boot and Linux uses it as-is.

josh

Re: Sample driver

From: Jeff Mock <hidden>
Date: 2008-02-20 15:40:09

Josh Boyer wrote:
quoted
Does anyone have sample drivers in Linux for the EBC interface for PPC405Ex?
I would be thankful if someone could put in a sample code here. 
Linux typically doesn't touch the EBC itself.  That is normally set up
by firmware such as U-Boot and Linux uses it as-is.
True, but there's always a lot of ways to do it.  Here's an example that 
might help you get started configuring the EBC from Linux.  Here's a 
device driver directory from a recent 440GX project:
 
http://www.mock.com/wsvn/listing.php?repname=mock.pdev&path=%2Ftrunk%2Fsw%2Fdriver%2F#_trunk_sw_driver_

You might look at pdev-gxctl.c.  It is a simple module that sets up the 
EBC address space for two sets of address ranges with 16-bit data paths. 
  These are for simple register read/writes to control some FPGAs. 
Pdev-gxctl provides an mmap() interface to /dev/xxx so user code can 
easily access the FPGA registers mapped onto the EBC.  The difference 
for the 405Ex should be pretty small.

jeff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help