From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from po-out-1718.google.com (po-out-1718.google.com [72.14.252.155]) by ozlabs.org (Postfix) with ESMTP id 67A31DDDF3 for ; Tue, 3 Jun 2008 17:23:09 +1000 (EST) Received: by po-out-1718.google.com with SMTP id y22so4205294pof.4 for ; Tue, 03 Jun 2008 00:23:08 -0700 (PDT) Message-ID: <388e90610806030023x4a2c1077hfbabb49b95853bd0@mail.gmail.com> Date: Tue, 3 Jun 2008 09:23:07 +0200 From: "Ludovic Desroches" To: linuxppc-embedded@ozlabs.org Subject: How accessing to my IP registers from Linux MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2599_25089911.1212477787610" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_2599_25089911.1212477787610 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I have put xilinx kernel on my board : a memec FX12 based on a Virtex 4 FX. Everything thing is OK, I have my serial console, Ethernet is also OK. I have to make some drivers. For example one for the LCD screen. It is my first driver so I want to try with something easier like LEDs. I know there is a driver from Xilinx but I want to do it by myself. Moreover it is only = a file to adapt Xilinx standelone driver for Kernel. I try to read and to write the registers of my GPIO IP which is working, I have made some tests in standelone. How accessing to these registers ? I have tried with this for example but without success : ptr =3D ioremap_nocache(0x70001e00,0x00000004); printk("GPIO_DATA (readl): %u\n",readl(ptr)); readl, outl, ioread32 : same result. Thanks Best Regards --=20 Ludovic Desroches Ing=E9nieur ESIEE 2008 mobile : 06 19 21 02 08 http://www.odulo.net ------=_Part_2599_25089911.1212477787610 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

Hi,

 

I have put xilinx kernel on my board : a memec FX12 based on a Virtex 4 FX. Everything thing is OK, I have my serial console, Ethernet is also OK.

I have to make some drivers. For example one for the LCD screen. It is my first driver so I want to try with something easier like LEDs. I know there is a driver from Xilinx but I want to do it by myself. Moreover it is only a file to adapt Xilinx standelone driver for Kernel.

 

I try to read and t= o write the registers of my GPIO IP which is working, I have made some tests in standelone. How accessing to these registers ?

I have tried= with this for example but without success :

ptr =3D iore= map_nocache(0x70001e00,0x00000004);
printk("GPIO_DATA (readl): %u\n= ",readl(ptr));

 

readl, outl, ioread32 : same result.

&nb= sp;

Thanks

 

Best Regards


--
Ludovic Desr= oches
Ing=E9nieur ESIEE 2008
mobile : 06 19 21 02 08
http://www.odulo.net ------=_Part_2599_25089911.1212477787610--