|
38 | 38 | #define MCFINT_UART1 14 /* Interrupt number for UART1 */ |
39 | 39 | #define MCFINT_UART2 15 /* Interrupt number for UART2 */ |
40 | 40 | #define MCFINT_QSPI 18 /* Interrupt number for QSPI */ |
| 41 | +#define MCFINT_FECRX0 23 /* Interrupt number for FEC0 */ |
| 42 | +#define MCFINT_FECTX0 27 /* Interrupt number for FEC0 */ |
| 43 | +#define MCFINT_FECENTC0 29 /* Interrupt number for FEC0 */ |
41 | 44 | #define MCFINT_PIT1 36 /* Interrupt number for PIT1 */ |
42 | 45 |
|
| 46 | +#define MCFINT2_VECBASE 128 /* Vector base number 2 */ |
| 47 | +#define MCFINT2_FECRX1 23 /* Interrupt number for FEC1 */ |
| 48 | +#define MCFINT2_FECTX1 27 /* Interrupt number for FEC1 */ |
| 49 | +#define MCFINT2_FECENTC1 29 /* Interrupt number for FEC1 */ |
| 50 | + |
| 51 | +#define MCF_IRQ_UART0 (MCFINT_VECBASE + MCFINT_UART0) |
| 52 | +#define MCF_IRQ_UART1 (MCFINT_VECBASE + MCFINT_UART1) |
| 53 | +#define MCF_IRQ_UART2 (MCFINT_VECBASE + MCFINT_UART2) |
| 54 | + |
| 55 | +#define MCF_IRQ_FECRX0 (MCFINT_VECBASE + MCFINT_FECRX0) |
| 56 | +#define MCF_IRQ_FECTX0 (MCFINT_VECBASE + MCFINT_FECTX0) |
| 57 | +#define MCF_IRQ_FECENTC0 (MCFINT_VECBASE + MCFINT_FECENTC0) |
| 58 | +#define MCF_IRQ_FECRX1 (MCFINT2_VECBASE + MCFINT2_FECRX1) |
| 59 | +#define MCF_IRQ_FECTX1 (MCFINT2_VECBASE + MCFINT2_FECTX1) |
| 60 | +#define MCF_IRQ_FECENTC1 (MCFINT2_VECBASE + MCFINT2_FECENTC1) |
| 61 | + |
| 62 | +#define MCF_IRQ_QSPI (MCFINT_VECBASE + MCFINT_QSPI) |
| 63 | + |
43 | 64 | /* |
44 | 65 | * SDRAM configuration registers. |
45 | 66 | */ |
|
72 | 93 | /* |
73 | 94 | * UART module. |
74 | 95 | */ |
75 | | -#define MCFUART_BASE1 (MCF_IPSBAR + 0x200) |
76 | | -#define MCFUART_BASE2 (MCF_IPSBAR + 0x240) |
77 | | -#define MCFUART_BASE3 (MCF_IPSBAR + 0x280) |
| 96 | +#define MCFUART_BASE0 (MCF_IPSBAR + 0x200) |
| 97 | +#define MCFUART_BASE1 (MCF_IPSBAR + 0x240) |
| 98 | +#define MCFUART_BASE2 (MCF_IPSBAR + 0x280) |
78 | 99 |
|
79 | 100 | /* |
80 | 101 | * FEC ethernet module. |
|
84 | 105 | #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800) |
85 | 106 | #define MCFFEC_SIZE1 0x800 |
86 | 107 |
|
| 108 | +/* |
| 109 | + * QSPI module. |
| 110 | + */ |
| 111 | +#define MCFQSPI_BASE (MCF_IPSBAR + 0x340) |
| 112 | +#define MCFQSPI_SIZE 0x40 |
| 113 | + |
| 114 | +#ifdef CONFIG_M5271 |
| 115 | +#define MCFQSPI_CS0 91 |
| 116 | +#define MCFQSPI_CS1 92 |
| 117 | +#define MCFQSPI_CS2 99 |
| 118 | +#define MCFQSPI_CS3 103 |
| 119 | +#endif |
| 120 | +#ifdef CONFIG_M5275 |
| 121 | +#define MCFQSPI_CS0 59 |
| 122 | +#define MCFQSPI_CS1 60 |
| 123 | +#define MCFQSPI_CS2 61 |
| 124 | +#define MCFQSPI_CS3 62 |
| 125 | +#endif |
| 126 | + |
| 127 | +/* |
| 128 | + * GPIO module. |
| 129 | + */ |
87 | 130 | #ifdef CONFIG_M5271 |
88 | 131 | #define MCFGPIO_PODR_ADDR (MCF_IPSBAR + 0x100000) |
89 | 132 | #define MCFGPIO_PODR_DATAH (MCF_IPSBAR + 0x100001) |
|
285 | 328 | /* |
286 | 329 | * Reset Control Unit (relative to IPSBAR). |
287 | 330 | */ |
288 | | -#define MCF_RCR 0x110000 |
289 | | -#define MCF_RSR 0x110001 |
| 331 | +#define MCF_RCR (MCF_IPSBAR + 0x110000) |
| 332 | +#define MCF_RSR (MCF_IPSBAR + 0x110001) |
290 | 333 |
|
291 | 334 | #define MCF_RCR_SWRESET 0x80 /* Software reset bit */ |
292 | 335 | #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */ |
|
0 commit comments