Skip to content

Commit 7ade849

Browse files
Michal Simekmpe
authored andcommitted
powerpc: Remove Xilinx PPC405/PPC440 support
The latest Xilinx design tools called ISE and EDK has been released in October 2013. New tool doesn't support any PPC405/PPC440 new designs. These platforms are no longer supported and tested. PowerPC 405/440 port is orphan from 2013 by commit cdeb899 ("MAINTAINERS: Fix incorrect status tag") and commit 1962423 ("MAINTAINERS: Update Grant's email address and maintainership") that's why it is time to remove the support fot these platforms. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/8c593895e2cb57d232d85ce4d8c3a1aa7f0869cc.1590079968.git.christophe.leroy@csgroup.eu
1 parent 0bdad33 commit 7ade849

33 files changed

Lines changed: 7 additions & 1953 deletions

‎Documentation/devicetree/bindings/xilinx.txt‎

Lines changed: 0 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -86,149 +86,6 @@
8686
xlnx,use-parity = <0>;
8787
};
8888

89-
Some IP cores actually implement 2 or more logical devices. In
90-
this case, the device should still describe the whole IP core with
91-
a single node and add a child node for each logical device. The
92-
ranges property can be used to translate from parent IP-core to the
93-
registers of each device. In addition, the parent node should be
94-
compatible with the bus type 'xlnx,compound', and should contain
95-
#address-cells and #size-cells, as with any other bus. (Note: this
96-
makes the assumption that both logical devices have the same bus
97-
binding. If this is not true, then separate nodes should be used
98-
for each logical device). The 'cell-index' property can be used to
99-
enumerate logical devices within an IP core. For example, the
100-
following is the system.mhs entry for the dual ps2 controller found
101-
on the ml403 reference design.
102-
103-
BEGIN opb_ps2_dual_ref
104-
PARAMETER INSTANCE = opb_ps2_dual_ref_0
105-
PARAMETER HW_VER = 1.00.a
106-
PARAMETER C_BASEADDR = 0xA9000000
107-
PARAMETER C_HIGHADDR = 0xA9001FFF
108-
BUS_INTERFACE SOPB = opb_v20_0
109-
PORT Sys_Intr1 = ps2_1_intr
110-
PORT Sys_Intr2 = ps2_2_intr
111-
PORT Clkin1 = ps2_clk_rx_1
112-
PORT Clkin2 = ps2_clk_rx_2
113-
PORT Clkpd1 = ps2_clk_tx_1
114-
PORT Clkpd2 = ps2_clk_tx_2
115-
PORT Rx1 = ps2_d_rx_1
116-
PORT Rx2 = ps2_d_rx_2
117-
PORT Txpd1 = ps2_d_tx_1
118-
PORT Txpd2 = ps2_d_tx_2
119-
END
120-
121-
It would result in the following device tree nodes:
122-
123-
opb_ps2_dual_ref_0: opb-ps2-dual-ref@a9000000 {
124-
#address-cells = <1>;
125-
#size-cells = <1>;
126-
compatible = "xlnx,compound";
127-
ranges = <0 a9000000 2000>;
128-
// If this device had extra parameters, then they would
129-
// go here.
130-
ps2@0 {
131-
compatible = "xlnx,opb-ps2-dual-ref-1.00.a";
132-
reg = <0 40>;
133-
interrupt-parent = <&opb_intc_0>;
134-
interrupts = <3 0>;
135-
cell-index = <0>;
136-
};
137-
ps2@1000 {
138-
compatible = "xlnx,opb-ps2-dual-ref-1.00.a";
139-
reg = <1000 40>;
140-
interrupt-parent = <&opb_intc_0>;
141-
interrupts = <3 0>;
142-
cell-index = <0>;
143-
};
144-
};
145-
146-
Also, the system.mhs file defines bus attachments from the processor
147-
to the devices. The device tree structure should reflect the bus
148-
attachments. Again an example; this system.mhs fragment:
149-
150-
BEGIN ppc405_virtex4
151-
PARAMETER INSTANCE = ppc405_0
152-
PARAMETER HW_VER = 1.01.a
153-
BUS_INTERFACE DPLB = plb_v34_0
154-
BUS_INTERFACE IPLB = plb_v34_0
155-
END
156-
157-
BEGIN opb_intc
158-
PARAMETER INSTANCE = opb_intc_0
159-
PARAMETER HW_VER = 1.00.c
160-
PARAMETER C_BASEADDR = 0xD1000FC0
161-
PARAMETER C_HIGHADDR = 0xD1000FDF
162-
BUS_INTERFACE SOPB = opb_v20_0
163-
END
164-
165-
BEGIN opb_uart16550
166-
PARAMETER INSTANCE = opb_uart16550_0
167-
PARAMETER HW_VER = 1.00.d
168-
PARAMETER C_BASEADDR = 0xa0000000
169-
PARAMETER C_HIGHADDR = 0xa0001FFF
170-
BUS_INTERFACE SOPB = opb_v20_0
171-
END
172-
173-
BEGIN plb_v34
174-
PARAMETER INSTANCE = plb_v34_0
175-
PARAMETER HW_VER = 1.02.a
176-
END
177-
178-
BEGIN plb_bram_if_cntlr
179-
PARAMETER INSTANCE = plb_bram_if_cntlr_0
180-
PARAMETER HW_VER = 1.00.b
181-
PARAMETER C_BASEADDR = 0xFFFF0000
182-
PARAMETER C_HIGHADDR = 0xFFFFFFFF
183-
BUS_INTERFACE SPLB = plb_v34_0
184-
END
185-
186-
BEGIN plb2opb_bridge
187-
PARAMETER INSTANCE = plb2opb_bridge_0
188-
PARAMETER HW_VER = 1.01.a
189-
PARAMETER C_RNG0_BASEADDR = 0x20000000
190-
PARAMETER C_RNG0_HIGHADDR = 0x3FFFFFFF
191-
PARAMETER C_RNG1_BASEADDR = 0x60000000
192-
PARAMETER C_RNG1_HIGHADDR = 0x7FFFFFFF
193-
PARAMETER C_RNG2_BASEADDR = 0x80000000
194-
PARAMETER C_RNG2_HIGHADDR = 0xBFFFFFFF
195-
PARAMETER C_RNG3_BASEADDR = 0xC0000000
196-
PARAMETER C_RNG3_HIGHADDR = 0xDFFFFFFF
197-
BUS_INTERFACE SPLB = plb_v34_0
198-
BUS_INTERFACE MOPB = opb_v20_0
199-
END
200-
201-
Gives this device tree (some properties removed for clarity):
202-
203-
plb@0 {
204-
#address-cells = <1>;
205-
#size-cells = <1>;
206-
compatible = "xlnx,plb-v34-1.02.a";
207-
device_type = "ibm,plb";
208-
ranges; // 1:1 translation
209-
210-
plb_bram_if_cntrl_0: bram@ffff0000 {
211-
reg = <ffff0000 10000>;
212-
}
213-
214-
opb@20000000 {
215-
#address-cells = <1>;
216-
#size-cells = <1>;
217-
ranges = <20000000 20000000 20000000
218-
60000000 60000000 20000000
219-
80000000 80000000 40000000
220-
c0000000 c0000000 20000000>;
221-
222-
opb_uart16550_0: serial@a0000000 {
223-
reg = <a00000000 2000>;
224-
};
225-
226-
opb_intc_0: interrupt-controller@d1000fc0 {
227-
reg = <d1000fc0 20>;
228-
};
229-
};
230-
};
231-
23289
That covers the general approach to binding xilinx IP cores into the
23390
device tree. The following are bindings for specific devices:
23491

‎Documentation/powerpc/bootwrapper.rst‎

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,6 @@ Currently, the following image format targets exist:
7070
kernel with this image type and it depends entirely on
7171
the embedded device tree for all information.
7272

73-
The simpleImage is useful for booting systems with
74-
an unknown firmware interface or for booting from
75-
a debugger when no firmware is present (such as on
76-
the Xilinx Virtex platform). The only assumption that
77-
simpleImage makes is that RAM is correctly initialized
78-
and that the MMU is either off or has RAM mapped to
79-
base address 0.
80-
81-
simpleImage also supports inserting special platform
82-
specific initialization code to the start of the bootup
83-
sequence. The virtex405 platform uses this feature to
84-
ensure that the cache is invalidated before caching
85-
is enabled. Platform specific initialization code is
86-
added as part of the wrapper script and is keyed on
87-
the image target name. For example, all
88-
simpleImage.virtex405-* targets will add the
89-
virtex405-head.S initialization code (This also means
90-
that the dts file for virtex405 targets should be
91-
named (virtex405-<board>.dts). Search the wrapper
92-
script for 'virtex405' and see the file
93-
arch/powerpc/boot/virtex405-head.S for details.
94-
9573
treeImage.%; Image format for used with OpenBIOS firmware found
9674
on some ppc4xx hardware. This image embeds a device
9775
tree blob inside the image.
@@ -116,10 +94,8 @@ Image types which embed a device tree blob (simpleImage, dtbImage, treeImage,
11694
and cuImage) all generate the device tree blob from a file in the
11795
arch/powerpc/boot/dts/ directory. The Makefile selects the correct device
11896
tree source based on the name of the target. Therefore, if the kernel is
119-
built with 'make treeImage.walnut simpleImage.virtex405-ml403', then the
120-
build system will use arch/powerpc/boot/dts/walnut.dts to build
121-
treeImage.walnut and arch/powerpc/boot/dts/virtex405-ml403.dts to build
122-
the simpleImage.virtex405-ml403.
97+
built with 'make treeImage.walnut', then the build system will use
98+
arch/powerpc/boot/dts/walnut.dts to build treeImage.walnut.
12399

124100
Two special targets called 'zImage' and 'zImage.initrd' also exist. These
125101
targets build all the default images as selected by the kernel configuration.

‎arch/powerpc/Kconfig.debug‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ config PPC_EARLY_DEBUG_40x
230230
help
231231
Select this to enable early debugging for IBM 40x chips via the
232232
inbuilt serial port. This works on chips with a 16550 compatible
233-
UART. Xilinx chips with uartlite cannot use this option.
233+
UART.
234234

235235
config PPC_EARLY_DEBUG_CPM
236236
bool "Early serial debugging for Freescale CPM-based serial ports"

‎arch/powerpc/boot/Makefile‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
7979
$(obj)/treeboot-iss4xx.o: BOOTCFLAGS += -mcpu=405
8080
$(obj)/treeboot-currituck.o: BOOTCFLAGS += -mcpu=405
8181
$(obj)/treeboot-akebono.o: BOOTCFLAGS += -mcpu=405
82-
$(obj)/virtex405-head.o: BOOTAFLAGS += -mcpu=405
8382

8483
# The pre-boot decompressors pull in a lot of kernel headers and other source
8584
# files. This creates a bit of a dependency headache since we need to copy
@@ -129,22 +128,20 @@ src-wlib-$(CONFIG_44x) += 4xx.c ebony.c bamboo.c
129128
src-wlib-$(CONFIG_PPC_8xx) += mpc8xx.c planetcore.c fsl-soc.c
130129
src-wlib-$(CONFIG_PPC_82xx) += pq2.c fsl-soc.c planetcore.c
131130
src-wlib-$(CONFIG_EMBEDDED6xx) += ugecon.c fsl-soc.c
132-
src-wlib-$(CONFIG_XILINX_VIRTEX) += uartlite.c
133131
src-wlib-$(CONFIG_CPM) += cpm-serial.c
134132

135133
src-plat-y := of.c epapr.c
136134
src-plat-$(CONFIG_40x) += fixed-head.S ep405.c cuboot-hotfoot.c \
137135
treeboot-walnut.c cuboot-acadia.c \
138-
cuboot-kilauea.c simpleboot.c \
139-
virtex405-head.S virtex.c
136+
cuboot-kilauea.c simpleboot.c
140137
src-plat-$(CONFIG_44x) += treeboot-ebony.c cuboot-ebony.c treeboot-bamboo.c \
141138
cuboot-bamboo.c cuboot-sam440ep.c \
142139
cuboot-sequoia.c cuboot-rainier.c \
143140
cuboot-taishan.c cuboot-katmai.c \
144141
cuboot-warp.c cuboot-yosemite.c \
145142
treeboot-iss4xx.c treeboot-currituck.c \
146143
treeboot-akebono.c \
147-
simpleboot.c fixed-head.S virtex.c
144+
simpleboot.c fixed-head.S
148145
src-plat-$(CONFIG_PPC_8xx) += cuboot-8xx.c fixed-head.S ep88xc.c redboot-8xx.c
149146
src-plat-$(CONFIG_PPC_MPC52xx) += cuboot-52xx.c
150147
src-plat-$(CONFIG_PPC_82xx) += cuboot-pq2.c fixed-head.S ep8248e.c cuboot-824x.c

‎arch/powerpc/boot/dts/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ subdir-y += fsl
44

55
dtstree := $(srctree)/$(src)
66
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
7-
dtb-$(CONFIG_XILINX_VIRTEX440_GENERIC_BOARD) += virtex440-ml507.dtb virtex440-ml510.dtb

0 commit comments

Comments
 (0)