2 * MPC8xx Device descriptions
4 * Maintainer: Kumar Gala <galak@kernel.crashing.org>
6 * Copyright 2005 MontaVista Software, Inc. by Vitaly Bordug<vbordug@ru.mvista.com>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
14 #include <linux/init.h>
15 #include <linux/module.h>
16 #include <linux/device.h>
17 #include <linux/serial_8250.h>
18 #include <linux/mii.h>
19 #include <asm/commproc.h>
20 #include <asm/mpc8xx.h>
22 #include <asm/ppc_sys.h>
24 /* We use offsets for IORESOURCE_MEM to do not set dependencies at compile time.
25 * They will get fixed up by mach_mpc8xx_fixup
28 struct platform_device ppc_sys_platform_devices
[] = {
30 .name
= "fsl-cpm-fec",
33 .resource
= (struct resource
[]) {
38 .flags
= IORESOURCE_MEM
,
42 .start
= MPC8xx_INT_FEC1
,
43 .end
= MPC8xx_INT_FEC1
,
44 .flags
= IORESOURCE_IRQ
,
49 .name
= "fsl-cpm-fec",
52 .resource
= (struct resource
[]) {
57 .flags
= IORESOURCE_MEM
,
61 .start
= MPC8xx_INT_FEC2
,
62 .end
= MPC8xx_INT_FEC2
,
63 .flags
= IORESOURCE_IRQ
,
68 .name
= "fsl-cpm-scc",
71 .resource
= (struct resource
[]) {
76 .flags
= IORESOURCE_MEM
,
82 .flags
= IORESOURCE_MEM
,
86 .start
= MPC8xx_INT_SCC1
,
87 .end
= MPC8xx_INT_SCC1
,
88 .flags
= IORESOURCE_IRQ
,
93 .name
= "fsl-cpm-scc",
96 .resource
= (struct resource
[]) {
101 .flags
= IORESOURCE_MEM
,
107 .flags
= IORESOURCE_MEM
,
112 .start
= MPC8xx_INT_SCC2
,
113 .end
= MPC8xx_INT_SCC2
,
114 .flags
= IORESOURCE_IRQ
,
118 [MPC8xx_CPM_SCC3
] = {
119 .name
= "fsl-cpm-scc",
122 .resource
= (struct resource
[]) {
127 .flags
= IORESOURCE_MEM
,
133 .flags
= IORESOURCE_MEM
,
138 .start
= MPC8xx_INT_SCC3
,
139 .end
= MPC8xx_INT_SCC3
,
140 .flags
= IORESOURCE_IRQ
,
144 [MPC8xx_CPM_SCC4
] = {
145 .name
= "fsl-cpm-scc",
148 .resource
= (struct resource
[]) {
153 .flags
= IORESOURCE_MEM
,
159 .flags
= IORESOURCE_MEM
,
164 .start
= MPC8xx_INT_SCC4
,
165 .end
= MPC8xx_INT_SCC4
,
166 .flags
= IORESOURCE_IRQ
,
170 [MPC8xx_CPM_SMC1
] = {
171 .name
= "fsl-cpm-smc",
174 .resource
= (struct resource
[]) {
179 .flags
= IORESOURCE_MEM
,
185 .flags
= IORESOURCE_MEM
,
189 .start
= MPC8xx_INT_SMC1
,
190 .end
= MPC8xx_INT_SMC1
,
191 .flags
= IORESOURCE_IRQ
,
195 [MPC8xx_CPM_SMC2
] = {
196 .name
= "fsl-cpm-smc",
199 .resource
= (struct resource
[]) {
204 .flags
= IORESOURCE_MEM
,
210 .flags
= IORESOURCE_MEM
,
215 .start
= MPC8xx_INT_SMC2
,
216 .end
= MPC8xx_INT_SMC2
,
217 .flags
= IORESOURCE_IRQ
,
222 [MPC8xx_MDIO_FEC
] = {
223 .name
= "fsl-cpm-fec-mdio",
231 static int __init
mach_mpc8xx_fixup(struct platform_device
*pdev
)
233 ppc_sys_fixup_mem_resource (pdev
, IMAP_ADDR
);
237 static int __init
mach_mpc8xx_init(void)
239 ppc_sys_device_fixup
= mach_mpc8xx_fixup
;
243 postcore_initcall(mach_mpc8xx_init
);