From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: Simple GPMC device driver with basic User application Date: Thu, 3 Nov 2011 12:25:32 -0700 Message-ID: <20111103192532.GX31337@atomide.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:62606 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934458Ab1KCTZe (ORCPT ); Thu, 3 Nov 2011 15:25:34 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: James Cc: linux-omap@vger.kernel.org * James [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