linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Ludovic Desroches" <ludovic.desroches@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: How accessing to my IP registers from Linux
Date: Tue, 3 Jun 2008 09:23:07 +0200	[thread overview]
Message-ID: <388e90610806030023x4a2c1077hfbabb49b95853bd0@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 927 bytes --]

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 = ioremap_nocache(0x70001e00,0x00000004);
printk("GPIO_DATA (readl): %u\n",readl(ptr));



readl, outl, ioread32 : same result.



Thanks



Best Regards

-- 
Ludovic Desroches
Ingénieur ESIEE 2008
mobile : 06 19 21 02 08
http://www.odulo.net

[-- Attachment #2: Type: text/html, Size: 1090 bytes --]

             reply	other threads:[~2008-06-03  7:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-03  7:23 Ludovic Desroches [this message]
2008-06-03  9:14 ` How accessing to my IP registers from Linux A. Nolson
2008-06-03 10:05   ` Ludovic Desroches

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=388e90610806030023x4a2c1077hfbabb49b95853bd0@mail.gmail.com \
    --to=ludovic.desroches@gmail.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 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).