Project

General

Profile

core/regs_gpio.h

Added by Mads Lind Christiansen over 13 years ago

Hi

I had some trouble getting GPIO working correctly in the OMAP.
Until I found out that the below structure is wrong...

typedef struct GpioRegs {
volatile uint32_t REVID;
volatile uint32_t BINTEN;
tsGpioBankPair BANKPAIR4;
} tsGpioRegs;

Although REVID and BINTEN is 32 bit in size there is an extra offset of 32 bit after them.
So the structure should look like this

typedef struct GpioRegs {
volatile uint32_t REVID;
volatile uint32_t reserved1;
volatile uint32_t BINTEN;
volatile uint32_t reserved2;
tsGpioBankPair BANKPAIR4;
} tsGpioRegs;

Also it seems that the J701 GPIO (some GP0_n) mappings might be documented incorrectly in the MityARM-PROFIBUS Dev kit pdf
Or the same mapping is not valid for the OMAP L138 MityDSP module?

/Mads


Replies (1)

RE: core/regs_gpio.h - Added by Michael Williamson over 13 years ago

Hello Mads,

Thanks for the heads up on the GpioRegs structure. You are right, that is indeed an error in the file.

There is also an error in J701 GP0_N connections in the Industrial I/O card sheet. For Rev-E and higher boards, the associated pin-outs should be as below. The description for Pins J701-17 and J701-26 are not consistent with the spec sheet (which will get updated in short order).

J701 Pin Revision E boards
17 GP0[ 5 ]
18 GP0[ 15 ]
19 GP0[ 6 ]
20 GP0[ 13 ]
21 GP0[ 1 ]
22 GP0[ 4 ]
23 GP0[ 3 ]
24 GP0[ 2 ]
25 GP0[ 0 ]
26 No Connect

-Mike

    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)