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 dependences 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,
183 .start = MPC8xx_INT_SMC1,
184 .end = MPC8xx_INT_SMC1,
185 .flags = IORESOURCE_IRQ,
189 [MPC8xx_CPM_SMC2] = {
190 .name = "fsl-cpm-smc",
193 .resource = (struct resource[]) {
198 .flags = IORESOURCE_MEM,
202 .start = MPC8xx_INT_SMC2,
203 .end = MPC8xx_INT_SMC2,
204 .flags = IORESOURCE_IRQ,
210 static int __init mach_mpc8xx_fixup(struct platform_device *pdev)
212 ppc_sys_fixup_mem_resource (pdev, IMAP_ADDR);
216 static int __init mach_mpc8xx_init(void)
218 ppc_sys_device_fixup = mach_mpc8xx_fixup;
222 postcore_initcall(mach_mpc8xx_init);