提交 9a11b493 编写于 作者: G Greg Ungerer

m68knommu: make 5272 FEC platform addressing consistent

If we make all FEC (ethernet) addressing consistent across all ColdFire
family members then we will be able to remove the duplicated plaform data
and use a single setup for all.

So modify the ColdFire 5272 FEC addressing so that:

. FECs are numbered from 0 up
. base addresses are absolute (not relative to MBAR peripheral register)
. use a common name for IRQs used
Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
上级 21634593
...@@ -88,6 +88,9 @@ ...@@ -88,6 +88,9 @@
#define MCFTIMER_BASE3 (MCF_MBAR + 0x240) /* Base address TIMER4 */ #define MCFTIMER_BASE3 (MCF_MBAR + 0x240) /* Base address TIMER4 */
#define MCFTIMER_BASE4 (MCF_MBAR + 0x260) /* Base address TIMER3 */ #define MCFTIMER_BASE4 (MCF_MBAR + 0x260) /* Base address TIMER3 */
#define MCFFEC_BASE0 (MCF_MBAR + 0x840) /* Base FEC ethernet */
#define MCFFEC_SIZE0 0x1d0
/* /*
* Define system peripheral IRQ usage. * Define system peripheral IRQ usage.
*/ */
...@@ -114,9 +117,9 @@ ...@@ -114,9 +117,9 @@
#define MCF_IRQ_USB6 83 /* USB Endpoint 6 */ #define MCF_IRQ_USB6 83 /* USB Endpoint 6 */
#define MCF_IRQ_USB7 84 /* USB Endpoint 7 */ #define MCF_IRQ_USB7 84 /* USB Endpoint 7 */
#define MCF_IRQ_DMA 85 /* DMA Controller */ #define MCF_IRQ_DMA 85 /* DMA Controller */
#define MCF_IRQ_ERX 86 /* Ethernet Receiver */ #define MCF_IRQ_FECRX0 86 /* Ethernet Receiver */
#define MCF_IRQ_ETX 87 /* Ethernet Transmitter */ #define MCF_IRQ_FECTX0 87 /* Ethernet Transmitter */
#define MCF_IRQ_ENTC 88 /* Ethernet Non-Time Critical */ #define MCF_IRQ_FECENTC0 88 /* Ethernet Non-Time Critical */
#define MCF_IRQ_QSPI 89 /* Queued Serial Interface */ #define MCF_IRQ_QSPI 89 /* Queued Serial Interface */
#define MCF_IRQ_EINT5 90 /* External Interrupt 5 */ #define MCF_IRQ_EINT5 90 /* External Interrupt 5 */
#define MCF_IRQ_EINT6 91 /* External Interrupt 6 */ #define MCF_IRQ_EINT6 91 /* External Interrupt 6 */
......
...@@ -32,23 +32,23 @@ unsigned char ledbank = 0xff; ...@@ -32,23 +32,23 @@ unsigned char ledbank = 0xff;
static struct resource m5272_fec_resources[] = { static struct resource m5272_fec_resources[] = {
{ {
.start = MCF_MBAR + 0x840, .start = MCFFEC_BASE0,
.end = MCF_MBAR + 0x840 + 0x1cf, .end = MCFFEC_BASE0 + MCFFEC_SIZE0 - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
{ {
.start = MCF_IRQ_ERX, .start = MCF_IRQ_FECRX0,
.end = MCF_IRQ_ERX, .end = MCF_IRQ_FECRX0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
{ {
.start = MCF_IRQ_ETX, .start = MCF_IRQ_FECTX0,
.end = MCF_IRQ_ETX, .end = MCF_IRQ_FECTX0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
{ {
.start = MCF_IRQ_ENTC, .start = MCF_IRQ_FECENTC0,
.end = MCF_IRQ_ENTC, .end = MCF_IRQ_FECENTC0,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册