linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: James <angweiyang@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: Simple GPMC device driver with basic User application
Date: Thu, 3 Nov 2011 12:25:32 -0700	[thread overview]
Message-ID: <20111103192532.GX31337@atomide.com> (raw)
In-Reply-To: <CAOy7-nMMyk3kMc9aShigxuvdB5O3S+B319SCR36kzM0ZTmSQ6w@mail.gmail.com>

* James <angweiyang@gmail.com> [111023 18:13]:
> Dear all,
> 
> I'm learning embedded linux development and need help on my task.
> 
> I'm trying to communicate with a FPGA via the GPMC bus on my Overo FE
> board and need assistance with writing a simple device driver & test
> application that uses the GPMC bus to read & write a WORD size data
> and also a BLOCK of WORD data to the FPGA.
> 
> The FPGA-OMAP3530 will be use synchronous read/write over the 16-bit
> datapath and CS 6.
> The GPMC bus is shared with an Ethernet chip and NAND chip as per
> Gumstix COM + TOBI/Chestnut design and these standard devices must
> still work as per norm.
> 
> I've been searching via GMANE for similar questions but some are
> pointing to non-existence archives.
> 
> I believe I have to develop a kernel device driver to register the
> FPGA and from which will expose a device node for the test
> application.
> or is there a generic GPMC driver that does it?
> 
> Can someone share with me similar layout and code so that I can base
> my learning from a starting point?
> 
> Many thanks in adv.

Please take a look at the various arch/arm/mach-omap2/gpmc-*.c files.
The biggest pain is to get the timings right.

Tony

  reply	other threads:[~2011-11-03 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAOy7-nNxRgB21JSFcWvD4T3AwDDuh9MjBeB+8nFiwX-Cv+13Mw@mail.gmail.com>
2011-10-24  1:47 ` Simple GPMC device driver with basic User application James
2011-11-03 19:25   ` Tony Lindgren [this message]
2011-11-04 11:48     ` Philip Balister
2011-11-08  2:07       ` James

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=20111103192532.GX31337@atomide.com \
    --to=tony@atomide.com \
    --cc=angweiyang@gmail.com \
    --cc=linux-omap@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).