access memory mapped registers

Wolfgang Denk wd at denx.de
Fri Jan 10 12:12:49 EST 2003


In message <885489B3B89FB6449F93E525DF78777F064541 at srvnt506.ALLOPTIC.COM> you wrote:
>
> Given that, do you know what is the convention if I need to address the GPIO
> pins in
> the 860?   I have some FPGA which require me to download the FPGA code
> and they are controlled via JTAG from my GPIO pins out of 860.  I can use
> mmap to map the ppc 860 internal memory (the quick dirty way just to see if
> works), or is there a driver already provided which will allow me to control
> the GPIO pins from user application?

There is no such driver, and there cannot be any such generic driver,
as the usage of the port pins is different for  each  board.  And  it
would  be  a  very  bad idea to allow any user to mess with important
things. You can even ruin hardware that way.

Do yourself a favour and write a device driver that does  what  needs
to be done.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
There is nothing in this world constant but inconstancy.      - Swift

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list