diff options
Diffstat (limited to 'arch/ppc/syslib')
-rw-r--r-- | arch/ppc/syslib/Makefile | 2 | ||||
-rw-r--r-- | arch/ppc/syslib/mpc83xx_devices.c | 12 | ||||
-rw-r--r-- | arch/ppc/syslib/mpc83xx_sys.c | 24 | ||||
-rw-r--r-- | arch/ppc/syslib/prom.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/prom_init.c | 1 |
5 files changed, 23 insertions, 17 deletions
diff --git a/arch/ppc/syslib/Makefile b/arch/ppc/syslib/Makefile index 5bd33baac243..5b7f2b80e56e 100644 --- a/arch/ppc/syslib/Makefile +++ b/arch/ppc/syslib/Makefile | |||
@@ -33,7 +33,6 @@ obj-$(CONFIG_PPC4xx_DMA) += ppc4xx_dma.o | |||
33 | obj-$(CONFIG_PPC4xx_EDMA) += ppc4xx_sgdma.o | 33 | obj-$(CONFIG_PPC4xx_EDMA) += ppc4xx_sgdma.o |
34 | ifeq ($(CONFIG_40x),y) | 34 | ifeq ($(CONFIG_40x),y) |
35 | obj-$(CONFIG_PCI) += pci_auto.o ppc405_pci.o | 35 | obj-$(CONFIG_PCI) += pci_auto.o ppc405_pci.o |
36 | obj-$(CONFIG_RAPIDIO) += ppc85xx_rio.o | ||
37 | endif | 36 | endif |
38 | endif | 37 | endif |
39 | obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o $(wdt-mpc8xx-y) \ | 38 | obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o $(wdt-mpc8xx-y) \ |
@@ -96,6 +95,7 @@ obj-$(CONFIG_85xx) += open_pic.o ppc85xx_common.o ppc85xx_setup.o \ | |||
96 | ifeq ($(CONFIG_85xx),y) | 95 | ifeq ($(CONFIG_85xx),y) |
97 | obj-$(CONFIG_PCI) += pci_auto.o | 96 | obj-$(CONFIG_PCI) += pci_auto.o |
98 | endif | 97 | endif |
98 | obj-$(CONFIG_RAPIDIO) += ppc85xx_rio.o | ||
99 | obj-$(CONFIG_83xx) += ipic.o ppc83xx_setup.o ppc_sys.o \ | 99 | obj-$(CONFIG_83xx) += ipic.o ppc83xx_setup.o ppc_sys.o \ |
100 | mpc83xx_sys.o mpc83xx_devices.o | 100 | mpc83xx_sys.o mpc83xx_devices.o |
101 | ifeq ($(CONFIG_83xx),y) | 101 | ifeq ($(CONFIG_83xx),y) |
diff --git a/arch/ppc/syslib/mpc83xx_devices.c b/arch/ppc/syslib/mpc83xx_devices.c index dbf8acac507f..f43fbf9a9389 100644 --- a/arch/ppc/syslib/mpc83xx_devices.c +++ b/arch/ppc/syslib/mpc83xx_devices.c | |||
@@ -27,18 +27,20 @@ | |||
27 | * what IMMRBAR is, will get fixed up by mach_mpc83xx_fixup | 27 | * what IMMRBAR is, will get fixed up by mach_mpc83xx_fixup |
28 | */ | 28 | */ |
29 | 29 | ||
30 | struct gianfar_mdio_data mpc83xx_mdio_pdata = { | ||
31 | .paddr = 0x24520, | ||
32 | }; | ||
33 | |||
30 | static struct gianfar_platform_data mpc83xx_tsec1_pdata = { | 34 | static struct gianfar_platform_data mpc83xx_tsec1_pdata = { |
31 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | | 35 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | |
32 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | | 36 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | |
33 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, | 37 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, |
34 | .phy_reg_addr = 0x24000, | ||
35 | }; | 38 | }; |
36 | 39 | ||
37 | static struct gianfar_platform_data mpc83xx_tsec2_pdata = { | 40 | static struct gianfar_platform_data mpc83xx_tsec2_pdata = { |
38 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | | 41 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | |
39 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | | 42 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | |
40 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, | 43 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, |
41 | .phy_reg_addr = 0x24000, | ||
42 | }; | 44 | }; |
43 | 45 | ||
44 | static struct fsl_i2c_platform_data mpc83xx_fsl_i2c1_pdata = { | 46 | static struct fsl_i2c_platform_data mpc83xx_fsl_i2c1_pdata = { |
@@ -220,6 +222,12 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
220 | }, | 222 | }, |
221 | }, | 223 | }, |
222 | }, | 224 | }, |
225 | [MPC83xx_MDIO] = { | ||
226 | .name = "fsl-gianfar_mdio", | ||
227 | .id = 0, | ||
228 | .dev.platform_data = &mpc83xx_mdio_pdata, | ||
229 | .num_resources = 0, | ||
230 | }, | ||
223 | }; | 231 | }; |
224 | 232 | ||
225 | static int __init mach_mpc83xx_fixup(struct platform_device *pdev) | 233 | static int __init mach_mpc83xx_fixup(struct platform_device *pdev) |
diff --git a/arch/ppc/syslib/mpc83xx_sys.c b/arch/ppc/syslib/mpc83xx_sys.c index 29aa63350025..da743446789b 100644 --- a/arch/ppc/syslib/mpc83xx_sys.c +++ b/arch/ppc/syslib/mpc83xx_sys.c | |||
@@ -24,72 +24,72 @@ struct ppc_sys_spec ppc_sys_specs[] = { | |||
24 | .ppc_sys_name = "8349E", | 24 | .ppc_sys_name = "8349E", |
25 | .mask = 0xFFFF0000, | 25 | .mask = 0xFFFF0000, |
26 | .value = 0x80500000, | 26 | .value = 0x80500000, |
27 | .num_devices = 8, | 27 | .num_devices = 9, |
28 | .device_list = (enum ppc_sys_devices[]) | 28 | .device_list = (enum ppc_sys_devices[]) |
29 | { | 29 | { |
30 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, | 30 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, |
31 | MPC83xx_IIC2, MPC83xx_DUART, MPC83xx_SEC2, | 31 | MPC83xx_IIC2, MPC83xx_DUART, MPC83xx_SEC2, |
32 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH | 32 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH, MPC83xx_MDIO |
33 | }, | 33 | }, |
34 | }, | 34 | }, |
35 | { | 35 | { |
36 | .ppc_sys_name = "8349", | 36 | .ppc_sys_name = "8349", |
37 | .mask = 0xFFFF0000, | 37 | .mask = 0xFFFF0000, |
38 | .value = 0x80510000, | 38 | .value = 0x80510000, |
39 | .num_devices = 7, | 39 | .num_devices = 8, |
40 | .device_list = (enum ppc_sys_devices[]) | 40 | .device_list = (enum ppc_sys_devices[]) |
41 | { | 41 | { |
42 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, | 42 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, |
43 | MPC83xx_IIC2, MPC83xx_DUART, | 43 | MPC83xx_IIC2, MPC83xx_DUART, |
44 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH | 44 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH, MPC83xx_MDIO |
45 | }, | 45 | }, |
46 | }, | 46 | }, |
47 | { | 47 | { |
48 | .ppc_sys_name = "8347E", | 48 | .ppc_sys_name = "8347E", |
49 | .mask = 0xFFFF0000, | 49 | .mask = 0xFFFF0000, |
50 | .value = 0x80520000, | 50 | .value = 0x80520000, |
51 | .num_devices = 8, | 51 | .num_devices = 9, |
52 | .device_list = (enum ppc_sys_devices[]) | 52 | .device_list = (enum ppc_sys_devices[]) |
53 | { | 53 | { |
54 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, | 54 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, |
55 | MPC83xx_IIC2, MPC83xx_DUART, MPC83xx_SEC2, | 55 | MPC83xx_IIC2, MPC83xx_DUART, MPC83xx_SEC2, |
56 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH | 56 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH, MPC83xx_MDIO |
57 | }, | 57 | }, |
58 | }, | 58 | }, |
59 | { | 59 | { |
60 | .ppc_sys_name = "8347", | 60 | .ppc_sys_name = "8347", |
61 | .mask = 0xFFFF0000, | 61 | .mask = 0xFFFF0000, |
62 | .value = 0x80530000, | 62 | .value = 0x80530000, |
63 | .num_devices = 7, | 63 | .num_devices = 8, |
64 | .device_list = (enum ppc_sys_devices[]) | 64 | .device_list = (enum ppc_sys_devices[]) |
65 | { | 65 | { |
66 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, | 66 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, |
67 | MPC83xx_IIC2, MPC83xx_DUART, | 67 | MPC83xx_IIC2, MPC83xx_DUART, |
68 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH | 68 | MPC83xx_USB2_DR, MPC83xx_USB2_MPH, MPC83xx_MDIO |
69 | }, | 69 | }, |
70 | }, | 70 | }, |
71 | { | 71 | { |
72 | .ppc_sys_name = "8343E", | 72 | .ppc_sys_name = "8343E", |
73 | .mask = 0xFFFF0000, | 73 | .mask = 0xFFFF0000, |
74 | .value = 0x80540000, | 74 | .value = 0x80540000, |
75 | .num_devices = 7, | 75 | .num_devices = 8, |
76 | .device_list = (enum ppc_sys_devices[]) | 76 | .device_list = (enum ppc_sys_devices[]) |
77 | { | 77 | { |
78 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, | 78 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, |
79 | MPC83xx_IIC2, MPC83xx_DUART, MPC83xx_SEC2, | 79 | MPC83xx_IIC2, MPC83xx_DUART, MPC83xx_SEC2, |
80 | MPC83xx_USB2_DR, | 80 | MPC83xx_USB2_DR, MPC83xx_MDIO |
81 | }, | 81 | }, |
82 | }, | 82 | }, |
83 | { | 83 | { |
84 | .ppc_sys_name = "8343", | 84 | .ppc_sys_name = "8343", |
85 | .mask = 0xFFFF0000, | 85 | .mask = 0xFFFF0000, |
86 | .value = 0x80550000, | 86 | .value = 0x80550000, |
87 | .num_devices = 6, | 87 | .num_devices = 7, |
88 | .device_list = (enum ppc_sys_devices[]) | 88 | .device_list = (enum ppc_sys_devices[]) |
89 | { | 89 | { |
90 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, | 90 | MPC83xx_TSEC1, MPC83xx_TSEC2, MPC83xx_IIC1, |
91 | MPC83xx_IIC2, MPC83xx_DUART, | 91 | MPC83xx_IIC2, MPC83xx_DUART, |
92 | MPC83xx_USB2_DR, | 92 | MPC83xx_USB2_DR, MPC83xx_MDIO |
93 | }, | 93 | }, |
94 | }, | 94 | }, |
95 | { /* default match */ | 95 | { /* default match */ |
diff --git a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c index 03b1fc9b9501..af4deace49e0 100644 --- a/arch/ppc/syslib/prom.c +++ b/arch/ppc/syslib/prom.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/string.h> | 14 | #include <linux/string.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/version.h> | ||
17 | #include <linux/threads.h> | 16 | #include <linux/threads.h> |
18 | #include <linux/spinlock.h> | 17 | #include <linux/spinlock.h> |
19 | #include <linux/ioport.h> | 18 | #include <linux/ioport.h> |
diff --git a/arch/ppc/syslib/prom_init.c b/arch/ppc/syslib/prom_init.c index 7f15136830f4..df14422ae1c6 100644 --- a/arch/ppc/syslib/prom_init.c +++ b/arch/ppc/syslib/prom_init.c | |||
@@ -9,7 +9,6 @@ | |||
9 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
10 | #include <linux/string.h> | 10 | #include <linux/string.h> |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/version.h> | ||
13 | #include <linux/threads.h> | 12 | #include <linux/threads.h> |
14 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
15 | #include <linux/ioport.h> | 14 | #include <linux/ioport.h> |