diff options
author | Lijun Pan <LIJUN.PAN@FREESCALE.COM> | 2014-05-05 14:23:15 -0400 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-22 19:08:31 -0400 |
commit | fd7e5b7a8758093781a44df9577fe24e9e11723e (patch) | |
tree | fa63adef48f2174af0c3c14b8591ce9c772df8dc | |
parent | aa80581da1448e9fe5ef3d1e56a82bbb21912ee1 (diff) |
powerpc/mpc85xx: Remove P1023 RDS support
P1023RDS is no longer supported/manufactured by Freescale while P1023RDB is.
Signed-off-by: Lijun Pan <Lijun.Pan@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
-rw-r--r-- | arch/powerpc/boot/dts/p1023rds.dts | 219 | ||||
-rw-r--r-- | arch/powerpc/configs/mpc85xx_defconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/configs/mpc85xx_smp_defconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/Kconfig | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/p1023_rdb.c (renamed from arch/powerpc/platforms/85xx/p1023_rds.c) | 36 |
6 files changed, 10 insertions, 255 deletions
diff --git a/arch/powerpc/boot/dts/p1023rds.dts b/arch/powerpc/boot/dts/p1023rds.dts deleted file mode 100644 index beb6cb12e59d..000000000000 --- a/arch/powerpc/boot/dts/p1023rds.dts +++ /dev/null | |||
@@ -1,219 +0,0 @@ | |||
1 | /* | ||
2 | * P1023 RDS Device Tree Source | ||
3 | * | ||
4 | * Copyright 2010-2011 Freescale Semiconductor Inc. | ||
5 | * | ||
6 | * Author: Roy Zang <tie-fei.zang@freescale.com> | ||
7 | * | ||
8 | * Redistribution and use in source and binary forms, with or without | ||
9 | * modification, are permitted provided that the following conditions are met: | ||
10 | * * Redistributions of source code must retain the above copyright | ||
11 | * notice, this list of conditions and the following disclaimer. | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the distribution. | ||
15 | * * Neither the name of Freescale Semiconductor nor the | ||
16 | * names of its contributors may be used to endorse or promote products | ||
17 | * derived from this software without specific prior written permission. | ||
18 | * | ||
19 | * | ||
20 | * ALTERNATIVELY, this software may be distributed under the terms of the | ||
21 | * GNU General Public License ("GPL") as published by the Free Software | ||
22 | * Foundation, either version 2 of that License or (at your option) any | ||
23 | * later version. | ||
24 | * | ||
25 | * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY | ||
26 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
27 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
28 | * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY | ||
29 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
30 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
31 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
32 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
33 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
34 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
35 | */ | ||
36 | |||
37 | /include/ "fsl/p1023si-pre.dtsi" | ||
38 | |||
39 | / { | ||
40 | model = "fsl,P1023"; | ||
41 | compatible = "fsl,P1023RDS"; | ||
42 | #address-cells = <2>; | ||
43 | #size-cells = <2>; | ||
44 | interrupt-parent = <&mpic>; | ||
45 | |||
46 | memory { | ||
47 | device_type = "memory"; | ||
48 | }; | ||
49 | |||
50 | soc: soc@ff600000 { | ||
51 | ranges = <0x0 0x0 0xff600000 0x200000>; | ||
52 | |||
53 | i2c@3000 { | ||
54 | rtc@68 { | ||
55 | compatible = "dallas,ds1374"; | ||
56 | reg = <0x68>; | ||
57 | }; | ||
58 | }; | ||
59 | |||
60 | spi@7000 { | ||
61 | fsl_dataflash@0 { | ||
62 | #address-cells = <1>; | ||
63 | #size-cells = <1>; | ||
64 | compatible = "atmel,at45db081d"; | ||
65 | reg = <0>; | ||
66 | spi-max-frequency = <40000000>; /* input clock */ | ||
67 | partition@u-boot { | ||
68 | /* 512KB for u-boot Bootloader Image */ | ||
69 | label = "u-boot-spi"; | ||
70 | reg = <0x00000000 0x00080000>; | ||
71 | read-only; | ||
72 | }; | ||
73 | partition@dtb { | ||
74 | /* 512KB for DTB Image */ | ||
75 | label = "dtb-spi"; | ||
76 | reg = <0x00080000 0x00080000>; | ||
77 | read-only; | ||
78 | }; | ||
79 | }; | ||
80 | }; | ||
81 | |||
82 | usb@22000 { | ||
83 | dr_mode = "host"; | ||
84 | phy_type = "ulpi"; | ||
85 | }; | ||
86 | }; | ||
87 | |||
88 | lbc: localbus@ff605000 { | ||
89 | reg = <0 0xff605000 0 0x1000>; | ||
90 | |||
91 | /* NOR Flash, BCSR */ | ||
92 | ranges = <0x0 0x0 0x0 0xee000000 0x02000000 | ||
93 | 0x1 0x0 0x0 0xe0000000 0x00008000>; | ||
94 | |||
95 | nor@0,0 { | ||
96 | #address-cells = <1>; | ||
97 | #size-cells = <1>; | ||
98 | compatible = "cfi-flash"; | ||
99 | reg = <0x0 0x0 0x02000000>; | ||
100 | bank-width = <2>; | ||
101 | device-width = <1>; | ||
102 | partition@0 { | ||
103 | label = "ramdisk"; | ||
104 | reg = <0x00000000 0x01c00000>; | ||
105 | }; | ||
106 | partition@1c00000 { | ||
107 | label = "kernel"; | ||
108 | reg = <0x01c00000 0x002e0000>; | ||
109 | }; | ||
110 | partiton@1ee0000 { | ||
111 | label = "dtb"; | ||
112 | reg = <0x01ee0000 0x00020000>; | ||
113 | }; | ||
114 | partition@1f00000 { | ||
115 | label = "firmware"; | ||
116 | reg = <0x01f00000 0x00080000>; | ||
117 | read-only; | ||
118 | }; | ||
119 | partition@1f80000 { | ||
120 | label = "u-boot"; | ||
121 | reg = <0x01f80000 0x00080000>; | ||
122 | read-only; | ||
123 | }; | ||
124 | }; | ||
125 | |||
126 | fpga@1,0 { | ||
127 | #address-cells = <1>; | ||
128 | #size-cells = <1>; | ||
129 | compatible = "fsl,p1023rds-fpga"; | ||
130 | reg = <1 0 0x8000>; | ||
131 | ranges = <0 1 0 0x8000>; | ||
132 | |||
133 | bcsr@20 { | ||
134 | compatible = "fsl,p1023rds-bcsr"; | ||
135 | reg = <0x20 0x20>; | ||
136 | }; | ||
137 | }; | ||
138 | }; | ||
139 | |||
140 | pci0: pcie@ff60a000 { | ||
141 | reg = <0 0xff60a000 0 0x1000>; | ||
142 | ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000 | ||
143 | 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>; | ||
144 | pcie@0 { | ||
145 | /* IRQ[0:3] are pulled up on board, set to active-low */ | ||
146 | interrupt-map-mask = <0xf800 0 0 7>; | ||
147 | interrupt-map = < | ||
148 | /* IDSEL 0x0 */ | ||
149 | 0000 0 0 1 &mpic 0 1 0 0 | ||
150 | 0000 0 0 2 &mpic 1 1 0 0 | ||
151 | 0000 0 0 3 &mpic 2 1 0 0 | ||
152 | 0000 0 0 4 &mpic 3 1 0 0 | ||
153 | >; | ||
154 | ranges = <0x2000000 0x0 0xc0000000 | ||
155 | 0x2000000 0x0 0xc0000000 | ||
156 | 0x0 0x20000000 | ||
157 | |||
158 | 0x1000000 0x0 0x0 | ||
159 | 0x1000000 0x0 0x0 | ||
160 | 0x0 0x100000>; | ||
161 | }; | ||
162 | }; | ||
163 | |||
164 | board_pci1: pci1: pcie@ff609000 { | ||
165 | reg = <0 0xff609000 0 0x1000>; | ||
166 | ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 | ||
167 | 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; | ||
168 | pcie@0 { | ||
169 | /* | ||
170 | * IRQ[4:6] only for PCIe, set to active-high, | ||
171 | * IRQ[7] is pulled up on board, set to active-low | ||
172 | */ | ||
173 | interrupt-map-mask = <0xf800 0 0 7>; | ||
174 | interrupt-map = < | ||
175 | /* IDSEL 0x0 */ | ||
176 | 0000 0 0 1 &mpic 4 2 0 0 | ||
177 | 0000 0 0 2 &mpic 5 2 0 0 | ||
178 | 0000 0 0 3 &mpic 6 2 0 0 | ||
179 | 0000 0 0 4 &mpic 7 1 0 0 | ||
180 | >; | ||
181 | ranges = <0x2000000 0x0 0xa0000000 | ||
182 | 0x2000000 0x0 0xa0000000 | ||
183 | 0x0 0x20000000 | ||
184 | |||
185 | 0x1000000 0x0 0x0 | ||
186 | 0x1000000 0x0 0x0 | ||
187 | 0x0 0x100000>; | ||
188 | }; | ||
189 | }; | ||
190 | |||
191 | pci2: pcie@ff60b000 { | ||
192 | reg = <0 0xff60b000 0 0x1000>; | ||
193 | ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 | ||
194 | 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; | ||
195 | pcie@0 { | ||
196 | /* | ||
197 | * IRQ[8:10] are pulled up on board, set to active-low | ||
198 | * IRQ[11] only for PCIe, set to active-high, | ||
199 | */ | ||
200 | interrupt-map-mask = <0xf800 0 0 7>; | ||
201 | interrupt-map = < | ||
202 | /* IDSEL 0x0 */ | ||
203 | 0000 0 0 1 &mpic 8 1 0 0 | ||
204 | 0000 0 0 2 &mpic 9 1 0 0 | ||
205 | 0000 0 0 3 &mpic 10 1 0 0 | ||
206 | 0000 0 0 4 &mpic 11 2 0 0 | ||
207 | >; | ||
208 | ranges = <0x2000000 0x0 0x80000000 | ||
209 | 0x2000000 0x0 0x80000000 | ||
210 | 0x0 0x20000000 | ||
211 | |||
212 | 0x1000000 0x0 0x0 | ||
213 | 0x1000000 0x0 0x0 | ||
214 | 0x0 0x100000>; | ||
215 | }; | ||
216 | }; | ||
217 | }; | ||
218 | |||
219 | /include/ "fsl/p1023si-post.dtsi" | ||
diff --git a/arch/powerpc/configs/mpc85xx_defconfig b/arch/powerpc/configs/mpc85xx_defconfig index 19f0fbe5ba4b..55765c8cb08f 100644 --- a/arch/powerpc/configs/mpc85xx_defconfig +++ b/arch/powerpc/configs/mpc85xx_defconfig | |||
@@ -32,7 +32,6 @@ CONFIG_P1010_RDB=y | |||
32 | CONFIG_P1022_DS=y | 32 | CONFIG_P1022_DS=y |
33 | CONFIG_P1022_RDK=y | 33 | CONFIG_P1022_RDK=y |
34 | CONFIG_P1023_RDB=y | 34 | CONFIG_P1023_RDB=y |
35 | CONFIG_P1023_RDS=y | ||
36 | CONFIG_SOCRATES=y | 35 | CONFIG_SOCRATES=y |
37 | CONFIG_KSI8560=y | 36 | CONFIG_KSI8560=y |
38 | CONFIG_XES_MPC85xx=y | 37 | CONFIG_XES_MPC85xx=y |
diff --git a/arch/powerpc/configs/mpc85xx_smp_defconfig b/arch/powerpc/configs/mpc85xx_smp_defconfig index 062312e1fe1a..5c6ecdc0f70e 100644 --- a/arch/powerpc/configs/mpc85xx_smp_defconfig +++ b/arch/powerpc/configs/mpc85xx_smp_defconfig | |||
@@ -35,7 +35,6 @@ CONFIG_P1010_RDB=y | |||
35 | CONFIG_P1022_DS=y | 35 | CONFIG_P1022_DS=y |
36 | CONFIG_P1022_RDK=y | 36 | CONFIG_P1022_RDK=y |
37 | CONFIG_P1023_RDB=y | 37 | CONFIG_P1023_RDB=y |
38 | CONFIG_P1023_RDS=y | ||
39 | CONFIG_SOCRATES=y | 38 | CONFIG_SOCRATES=y |
40 | CONFIG_KSI8560=y | 39 | CONFIG_KSI8560=y |
41 | CONFIG_XES_MPC85xx=y | 40 | CONFIG_XES_MPC85xx=y |
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig index 918b3902de67..a3cd2afee511 100644 --- a/arch/powerpc/platforms/85xx/Kconfig +++ b/arch/powerpc/platforms/85xx/Kconfig | |||
@@ -117,11 +117,11 @@ config P1022_RDK | |||
117 | This option enables support for the Freescale / iVeia P1022RDK | 117 | This option enables support for the Freescale / iVeia P1022RDK |
118 | reference board. | 118 | reference board. |
119 | 119 | ||
120 | config P1023_RDS | 120 | config P1023_RDB |
121 | bool "Freescale P1023 RDS/RDB" | 121 | bool "Freescale P1023 RDB" |
122 | select DEFAULT_UIMAGE | 122 | select DEFAULT_UIMAGE |
123 | help | 123 | help |
124 | This option enables support for the P1023 RDS and RDB boards | 124 | This option enables support for the P1023 RDB board. |
125 | 125 | ||
126 | config TWR_P102x | 126 | config TWR_P102x |
127 | bool "Freescale TWR-P102x" | 127 | bool "Freescale TWR-P102x" |
diff --git a/arch/powerpc/platforms/85xx/Makefile b/arch/powerpc/platforms/85xx/Makefile index 25cebe74ac46..822103e8d34f 100644 --- a/arch/powerpc/platforms/85xx/Makefile +++ b/arch/powerpc/platforms/85xx/Makefile | |||
@@ -17,7 +17,7 @@ obj-$(CONFIG_MPC85xx_RDB) += mpc85xx_rdb.o | |||
17 | obj-$(CONFIG_P1010_RDB) += p1010rdb.o | 17 | obj-$(CONFIG_P1010_RDB) += p1010rdb.o |
18 | obj-$(CONFIG_P1022_DS) += p1022_ds.o | 18 | obj-$(CONFIG_P1022_DS) += p1022_ds.o |
19 | obj-$(CONFIG_P1022_RDK) += p1022_rdk.o | 19 | obj-$(CONFIG_P1022_RDK) += p1022_rdk.o |
20 | obj-$(CONFIG_P1023_RDS) += p1023_rds.o | 20 | obj-$(CONFIG_P1023_RDB) += p1023_rdb.o |
21 | obj-$(CONFIG_TWR_P102x) += twr_p102x.o | 21 | obj-$(CONFIG_TWR_P102x) += twr_p102x.o |
22 | obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o | 22 | obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o |
23 | obj-$(CONFIG_STX_GP3) += stx_gp3.o | 23 | obj-$(CONFIG_STX_GP3) += stx_gp3.o |
diff --git a/arch/powerpc/platforms/85xx/p1023_rds.c b/arch/powerpc/platforms/85xx/p1023_rdb.c index 0e614007acfb..d5b7509825de 100644 --- a/arch/powerpc/platforms/85xx/p1023_rds.c +++ b/arch/powerpc/platforms/85xx/p1023_rdb.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * Author: Roy Zang <tie-fei.zang@freescale.com> | 4 | * Author: Roy Zang <tie-fei.zang@freescale.com> |
5 | * | 5 | * |
6 | * Description: | 6 | * Description: |
7 | * P1023 RDS Board Setup | 7 | * P1023 RDB Board Setup |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify it | 9 | * This program is free software; you can redistribute it and/or modify it |
10 | * under the terms of the GNU General Public License as published by the | 10 | * under the terms of the GNU General Public License as published by the |
@@ -41,12 +41,12 @@ | |||
41 | * Setup the architecture | 41 | * Setup the architecture |
42 | * | 42 | * |
43 | */ | 43 | */ |
44 | static void __init mpc85xx_rds_setup_arch(void) | 44 | static void __init mpc85xx_rdb_setup_arch(void) |
45 | { | 45 | { |
46 | struct device_node *np; | 46 | struct device_node *np; |
47 | 47 | ||
48 | if (ppc_md.progress) | 48 | if (ppc_md.progress) |
49 | ppc_md.progress("p1023_rds_setup_arch()", 0); | 49 | ppc_md.progress("p1023_rdb_setup_arch()", 0); |
50 | 50 | ||
51 | /* Map BCSR area */ | 51 | /* Map BCSR area */ |
52 | np = of_find_node_by_name(NULL, "bcsr"); | 52 | np = of_find_node_by_name(NULL, "bcsr"); |
@@ -85,10 +85,9 @@ static void __init mpc85xx_rds_setup_arch(void) | |||
85 | fsl_pci_assign_primary(); | 85 | fsl_pci_assign_primary(); |
86 | } | 86 | } |
87 | 87 | ||
88 | machine_arch_initcall(p1023_rds, mpc85xx_common_publish_devices); | ||
89 | machine_arch_initcall(p1023_rdb, mpc85xx_common_publish_devices); | 88 | machine_arch_initcall(p1023_rdb, mpc85xx_common_publish_devices); |
90 | 89 | ||
91 | static void __init mpc85xx_rds_pic_init(void) | 90 | static void __init mpc85xx_rdb_pic_init(void) |
92 | { | 91 | { |
93 | struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | | 92 | struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | |
94 | MPIC_SINGLE_DEST_CPU, | 93 | MPIC_SINGLE_DEST_CPU, |
@@ -99,14 +98,6 @@ static void __init mpc85xx_rds_pic_init(void) | |||
99 | mpic_init(mpic); | 98 | mpic_init(mpic); |
100 | } | 99 | } |
101 | 100 | ||
102 | static int __init p1023_rds_probe(void) | ||
103 | { | ||
104 | unsigned long root = of_get_flat_dt_root(); | ||
105 | |||
106 | return of_flat_dt_is_compatible(root, "fsl,P1023RDS"); | ||
107 | |||
108 | } | ||
109 | |||
110 | static int __init p1023_rdb_probe(void) | 101 | static int __init p1023_rdb_probe(void) |
111 | { | 102 | { |
112 | unsigned long root = of_get_flat_dt_root(); | 103 | unsigned long root = of_get_flat_dt_root(); |
@@ -115,26 +106,11 @@ static int __init p1023_rdb_probe(void) | |||
115 | 106 | ||
116 | } | 107 | } |
117 | 108 | ||
118 | define_machine(p1023_rds) { | ||
119 | .name = "P1023 RDS", | ||
120 | .probe = p1023_rds_probe, | ||
121 | .setup_arch = mpc85xx_rds_setup_arch, | ||
122 | .init_IRQ = mpc85xx_rds_pic_init, | ||
123 | .get_irq = mpic_get_irq, | ||
124 | .restart = fsl_rstcr_restart, | ||
125 | .calibrate_decr = generic_calibrate_decr, | ||
126 | .progress = udbg_progress, | ||
127 | #ifdef CONFIG_PCI | ||
128 | .pcibios_fixup_bus = fsl_pcibios_fixup_bus, | ||
129 | .pcibios_fixup_phb = fsl_pcibios_fixup_phb, | ||
130 | #endif | ||
131 | }; | ||
132 | |||
133 | define_machine(p1023_rdb) { | 109 | define_machine(p1023_rdb) { |
134 | .name = "P1023 RDB", | 110 | .name = "P1023 RDB", |
135 | .probe = p1023_rdb_probe, | 111 | .probe = p1023_rdb_probe, |
136 | .setup_arch = mpc85xx_rds_setup_arch, | 112 | .setup_arch = mpc85xx_rdb_setup_arch, |
137 | .init_IRQ = mpc85xx_rds_pic_init, | 113 | .init_IRQ = mpc85xx_rdb_pic_init, |
138 | .get_irq = mpic_get_irq, | 114 | .get_irq = mpic_get_irq, |
139 | .restart = fsl_rstcr_restart, | 115 | .restart = fsl_rstcr_restart, |
140 | .calibrate_decr = generic_calibrate_decr, | 116 | .calibrate_decr = generic_calibrate_decr, |