2007-10-30 Joel Sherrill <joel.sherrill@oarcorp.com>

* include/mpc5200.h: Added some simple interrupt GPIO constants.
This commit is contained in:
Joel Sherrill
2007-10-30 19:32:02 +00:00
parent 76b839b617
commit b83b754e28
2 changed files with 146 additions and 49 deletions

View File

@@ -1,3 +1,7 @@
2007-10-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/mpc5200.h: Added some simple interrupt GPIO constants.
2007-10-26 Joel Sherrill <joel.sherrill@oarcorp.com> 2007-10-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* irq/irq.h: Fixed typos. * irq/irq.h: Fixed typos.

View File

@@ -481,6 +481,25 @@ typedef struct mpc5200_
* GPIO standard registers (MBAR + 0xB00) * GPIO standard registers (MBAR + 0xB00)
*/ */
volatile uint32_t gpiopcr; /* + 0x00 */ volatile uint32_t gpiopcr; /* + 0x00 */
#define GPIO_PCR_CHIP_SELECT_1 0x80000000
#define GPIO_PCR_CHIP_ALTS 0x30000000
#define GPIO_PCR_CHIP_ALTS_NONE 0x00000000
#define GPIO_PCR_CHIP_ALTS_CAN 0x10000000
#define GPIO_PCR_CHIP_ALTS_SPI 0x20000000
#define GPIO_PCR_CHIP_ALTS_BOTH 0x30000000
#define GPIO_PCR_CHIP_SELECT_7 0x08000000
#define GPIO_PCR_CHIP_SELECT_6 0x04000000
#define GPIO_PCR_CHIP_SELECT_ATA 0x03000000
#define GPIO_PCR_CHIP_SELECT_IR_USB_CLK 0x00800000
#define GPIO_PCR_IRDA 0x00700000
#define GPIO_PCR_ETHERNET 0x000F0000
#define GPIO_PCR_PCI_DIS 0x00008000
#define GPIO_PCR_USB_SE 0x00004000
#define GPIO_PCR_USB_GPIO 0x00003000
#define GPIO_PCR_PSC3 0x00000F00
#define GPIO_PCR_PSC2 0x00000070
#define GPIO_PCR_PSC1 0x00000007
volatile uint32_t gpiosen; /* + 0x04 */ volatile uint32_t gpiosen; /* + 0x04 */
volatile uint32_t gpiosod; /* + 0x08 */ volatile uint32_t gpiosod; /* + 0x08 */
volatile uint32_t gpiosdd; /* + 0x0C */ volatile uint32_t gpiosdd; /* + 0x0C */
@@ -488,14 +507,88 @@ typedef struct mpc5200_
volatile uint32_t gpiosdi; /* + 0x14 */ volatile uint32_t gpiosdi; /* + 0x14 */
volatile uint32_t gpiooe; /* + 0x18 */ volatile uint32_t gpiooe; /* + 0x18 */
volatile uint32_t gpioodo; /* + 0x1C */ volatile uint32_t gpioodo; /* + 0x1C */
volatile uint32_t gpiosie; /* + 0x20 */ volatile uint32_t gpiosie; /* + 0x20 */
#define GPIO_SIE_SINT_7_ETH_16_PIN 0x80000000
#define GPIO_SIE_SINT_6_ETH_15_PIN 0x40000000
#define GPIO_SIE_SINT_5_ETH_14_PIN 0x20000000
#define GPIO_SIE_SINT_4_ETH_13_PIN 0x10000000
#define GPIO_SIE_SINT_3_USB1_9_PIN 0x08000000
#define GPIO_SIE_SINT_2_PSC3_8_PIN 0x04000000
#define GPIO_SIE_SINT_1_PSC3_5_PIN 0x02000000
#define GPIO_SIE_SINT_0_PSC3_4_PIN 0x01000000
volatile uint32_t gpiosiod; /* + 0x24 */ volatile uint32_t gpiosiod; /* + 0x24 */
volatile uint32_t gpiosidd; /* + 0x28 */ volatile uint32_t gpiosidd; /* + 0x28 */
#define GPIO_SIDD_SINT_7_ETH_16_PIN 0x80000000
#define GPIO_SIDD_SINT_6_ETH_15_PIN 0x40000000
#define GPIO_SIDD_SINT_5_ETH_14_PIN 0x20000000
#define GPIO_SIDD_SINT_4_ETH_13_PIN 0x10000000
#define GPIO_SIDD_SINT_3_USB1_9_PIN 0x08000000
#define GPIO_SIDD_SINT_2_PSC3_8_PIN 0x04000000
#define GPIO_SIDD_SINT_1_PSC3_5_PIN 0x02000000
#define GPIO_SIDD_SINT_0_PSC3_4_PIN 0x01000000
volatile uint32_t gpiosido; /* + 0x2C */ volatile uint32_t gpiosido; /* + 0x2C */
volatile uint32_t gpiosiie; /* + 0x30 */ volatile uint32_t gpiosiie; /* + 0x30 */
#define GPIO_SIIE_SINT_7_ETH_16_PIN 0x80000000
#define GPIO_SIIE_SINT_6_ETH_15_PIN 0x40000000
#define GPIO_SIIE_SINT_5_ETH_14_PIN 0x20000000
#define GPIO_SIIE_SINT_4_ETH_13_PIN 0x10000000
#define GPIO_SIIE_SINT_3_USB1_9_PIN 0x08000000
#define GPIO_SIIE_SINT_2_PSC3_8_PIN 0x04000000
#define GPIO_SIIE_SINT_1_PSC3_5_PIN 0x02000000
#define GPIO_SIIE_SINT_0_PSC3_4_PIN 0x01000000
volatile uint32_t gpiosiit; /* + 0x34 */ volatile uint32_t gpiosiit; /* + 0x34 */
#define GPIO_SIIT_SINT_7_ETH_16_PIN_MASK 0xc0000000
#define GPIO_SIIT_SINT_6_ETH_15_PIN_MASK 0x30000000
#define GPIO_SIIT_SINT_5_ETH_14_PIN_MASK 0x0c000000
#define GPIO_SIIT_SINT_4_ETH_13_PIN_MASK 0x03000000
#define GPIO_SIIT_SINT_3_USB1_9_PIN_MASK 0x00c00000
#define GPIO_SIIT_SINT_2_PSC3_8_PIN_MASK 0x00300000
#define GPIO_SIIT_SINT_1_PSC3_5_PIN_MASK 0x000c0000
#define GPIO_SIIT_SINT_0_PSC3_4_PIN_MASK 0x00030000
#define GPIO_SIIT_ON_ANY_TRANSITION 0x00000000
#define GPIO_SIIT_ON_RISING_EDGE 0x00000001
#define GPIO_SIIT_ON_FALLING_EDGE 0x00000002
#define GPIO_SIIT_ON_PULSE 0x00000003
#define GPIO_SIIT_SINT_7_ETH_16_PIN_SHIFT 16
#define GPIO_SIIT_SINT_6_ETH_15_PIN_SHIFT 18
#define GPIO_SIIT_SINT_5_ETH_14_PIN_SHIFT 20
#define GPIO_SIIT_SINT_4_ETH_13_PIN_SHIFT 22
#define GPIO_SIIT_SINT_3_USB1_9_PIN_SHIFT 24
#define GPIO_SIIT_SINT_2_PSC3_8_PIN_SHIFT 26
#define GPIO_SIIT_SINT_1_PSC3_5_PIN_SHIFT 28
#define GPIO_SIIT_SINT_0_PSC3_4_PIN_SHIFT 30
volatile uint32_t gpiosime; /* + 0x38 */ volatile uint32_t gpiosime; /* + 0x38 */
#define GPIO_SIME_MASTER_ENABLE 0x10000000
volatile uint32_t gpiosist; /* + 0x3C */ volatile uint32_t gpiosist; /* + 0x3C */
#define GPIO_SIST_SINT_7_ETH_16_PIN_STATUS 0x80000000
#define GPIO_SIST_SINT_6_ETH_15_PIN_STATUS 0x40000000
#define GPIO_SIST_SINT_5_ETH_14_PIN_STATUS 0x20000000
#define GPIO_SIST_SINT_4_ETH_13_PIN_STATUS 0x10000000
#define GPIO_SIST_SINT_3_USB1_9_PIN_STATUS 0x08000000
#define GPIO_SIST_SINT_2_PSC3_8_PIN_STATUS 0x04000000
#define GPIO_SIST_SINT_1_PSC3_5_PIN_STATUS 0x02000000
#define GPIO_SIST_SINT_0_PSC3_4_PIN_STATUS 0x01000000
#define GPIO_SIST_SINT_7_ETH_16_PIN_VALUE 0x08000000
#define GPIO_SIST_SINT_6_ETH_15_PIN_VALUE 0x04000000
#define GPIO_SIST_SINT_5_ETH_14_PIN_VALUE 0x02000000
#define GPIO_SIST_SINT_4_ETH_13_PIN_VALUE 0x01000000
#define GPIO_SIST_SINT_3_USB1_9_PIN_VALUE 0x00800000
#define GPIO_SIST_SINT_2_PSC3_8_PIN_VALUE 0x00400000
#define GPIO_SIST_SINT_1_PSC3_5_PIN_VALUE 0x00200000
#define GPIO_SIST_SINT_0_PSC3_4_PIN_VALUE 0x00100000
#define GPIO_SIST_SINT_CLEAR_ALL 0x00000000
volatile uint8_t res4[0xC0]; volatile uint8_t res4[0xC0];
/* /*