Linux MIPS Architecture development
 help / color / mirror / Atom feed
* General I/O
@ 2003-08-14 10:12 Gabor Kerenyi
       [not found] ` <m3ekzjfoi2.wl@iodata.jp>
  0 siblings, 1 reply; 2+ messages in thread
From: Gabor Kerenyi @ 2003-08-14 10:12 UTC (permalink / raw)
  To: linux-mips

Hi!

I have a board with VR4181A. I would like to read/write
the General I/O port but I can't find anything how to do it.

I could wrote a small driver to setup and handle an interrupt
on GUINT0 using vr41xx_set_irq_trigger (a simple switch is
connected to PIN0)
But I need to set/clear pins to be able to connect an EEPROM
to GPIO and some other stuff.

I can't find functions to do this simple like set_gio(pin, state).

Can someone help?

The board is not known by anyone, it's made in Japan
(TOADKK-TCS8000).

Thanks,

Gabor

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: General I/O
       [not found] ` <m3ekzjfoi2.wl@iodata.jp>
@ 2003-08-18  7:16   ` Kunihiko IMAI
  0 siblings, 0 replies; 2+ messages in thread
From: Kunihiko IMAI @ 2003-08-18  7:16 UTC (permalink / raw)
  To: linux-mips

Hi, 

At Thu, 14 Aug 2003 12:12:38 +0200,
Gabor Kerenyi wrote:

> I could wrote a small driver to setup and handle an interrupt
> on GUINT0 using vr41xx_set_irq_trigger (a simple switch is
> connected to PIN0)

These function ( macro ) set works only setting GPIO pin function.
They have no resource management.  If the pin is not assigned on
any function yet, you can freely set the pin function.

You can set these registers with write[bwl]/read[bwl] functions. Do
not use out[bwl]/in[bwl].  And the place of GPIO regsters are
relocated by bootloader.  It's better to use macros defined at
include/asm/vr41xx/toadkk-tcs8000.h.

> The board is not known by anyone, it's made in Japan
> (TOADKK-TCS8000).

The kernel with the board is local porting version, not submitted
linux-mips CVS.  The kernel is ported by LASER5 Co. Ltd.  And they
sell same card as L-Card A.

Thanks.
_._. __._  _ . ... _  .___ ._. _____ _... ._ _._ _.._. .____  _ . ... _

                                                          Kunihiko IMAI

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-18  7:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14 10:12 General I/O Gabor Kerenyi
     [not found] ` <m3ekzjfoi2.wl@iodata.jp>
2003-08-18  7:16   ` Kunihiko IMAI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox