From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.249]) by ozlabs.org (Postfix) with ESMTP id 00221DDEC7 for ; Wed, 13 Feb 2008 01:56:46 +1100 (EST) Received: by hs-out-0708.google.com with SMTP id x43so298901hsb.9 for ; Tue, 12 Feb 2008 06:56:45 -0800 (PST) Message-ID: Date: Tue, 12 Feb 2008 07:56:45 -0700 From: "Grant Likely" Sender: glikely@secretlab.ca To: "A. Nolson" Subject: Re: Writing drivers for external IP cores In-Reply-To: <47B188F5.60607@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <47B188F5.60607@gmail.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Feb 12, 2008 4:54 AM, A. Nolson wrote: > Hi , > > I am going to start developing some IP cores for my virtex fx12 (ML403) > and I need to control them through my embedded Linux ( it is already > working in the ppc405 ). I am a bit lost and I need some references for > developing drivers. In principle, I will start with something like a > GPIO. I think an example like a driver for controlling the push buttons > of my Ml403 will be enough. An example IP core for that will also be > also very helpful. After you've got through the examples in Linux Device Drivers v3, you can take a look at drivers/video/xilinxfb.c for an example of a driver that works with an FPGA ip core. Unfortunately there isn't a simple xilinx GPIO driver in the mainline kernel at the moment, otherwise I'd point you there. Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.