From: Jeff Mock <jeff@mock.com>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>, linuxppc-embedded@ozlabs.org
Cc: Silwer star <fariyaf@gmail.com>
Subject: Re: Sample driver
Date: Wed, 20 Feb 2008 07:13:15 -0800 [thread overview]
Message-ID: <47BC438B.60605@mock.com> (raw)
In-Reply-To: <20080220060653.7593ffa9@zod.rchland.ibm.com>
Josh Boyer 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.
>
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
next prev parent reply other threads:[~2008-02-20 15:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 4:13 Sample driver Silwer star
2008-02-20 12:06 ` Josh Boyer
2008-02-20 15:13 ` Jeff Mock [this message]
[not found] <8024567.229231203576334424.JavaMail.nabble@isper.nabble.com>
2008-02-21 6:54 ` Jeff Mock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47BC438B.60605@mock.com \
--to=jeff@mock.com \
--cc=fariyaf@gmail.com \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.