IO_ADDR_R and IO_ADDR_W

Simon Posnjak simon.posnjak at cetrtapot.si
Wed May 25 10:50:04 EDT 2005


Hi,

I am writing a board specific driver. We have Toshiba TC58DVM 32 MB chip 
connected over gpio (g) port.

Pins are:

_Data:
_
 
g8  <-> I/O1
g9  <-> I/O2
g10 <-> I/O3
g11 <-> I/O4
g12 <-> I/O5
g13 <-> I/O6
g14 <-> I/O7
g15 <-> I/O8
 
_Control:
_
 
g16 <-- RY/BY
g17 --> /RE
g18 --> /CE
g19 --> CLE
g20 --> ALE
g21 --> /WE
g22 --> /WP

The g port address is 0xB0000028  (32-bit).

My questions are:

1. What address do I have to supply to IO_ADDR_R and IO_ADDR_W fields? 
The address of the g port? The g port + 1 (0xB0000029) [so that we start 
reading at g8]? Or should I provide a function that reads and writes the 
I/O pins?

2. We are using the rest of the pins for some other devices. Will my 
driver interfere with there drivers?

Thank you.

          Regards Simon





More information about the linux-mtd mailing list