1 --- a/arch/mips/bcm63xx/Makefile
2 +++ b/arch/mips/bcm63xx/Makefile
4 # SPDX-License-Identifier: GPL-2.0
5 obj-y += clk.o cpu.o cs.o gpio.o irq.o nvram.o prom.o reset.o \
6 setup.o timer.o dev-enet.o dev-flash.o dev-pcmcia.o \
7 - dev-rng.o dev-uart.o dev-wdt.o dev-usb-ehci.o \
8 + dev-rng.o dev-wdt.o dev-usb-ehci.o \
9 dev-usb-ohci.o dev-usb-usbd.o usb-common.o sprom.o
10 obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
12 --- a/arch/mips/bcm63xx/dev-uart.c
16 - * This file is subject to the terms and conditions of the GNU General Public
17 - * License. See the file "COPYING" in the main directory of this archive
20 - * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
23 -#include <linux/init.h>
24 -#include <linux/kernel.h>
25 -#include <linux/platform_device.h>
26 -#include <bcm63xx_cpu.h>
28 -static struct resource uart0_resources[] = {
30 - /* start & end filled at runtime */
31 - .flags = IORESOURCE_MEM,
34 - /* start filled at runtime */
35 - .flags = IORESOURCE_IRQ,
39 -static struct resource uart1_resources[] = {
41 - /* start & end filled at runtime */
42 - .flags = IORESOURCE_MEM,
45 - /* start filled at runtime */
46 - .flags = IORESOURCE_IRQ,
50 -static struct platform_device bcm63xx_uart_devices[] = {
52 - .name = "bcm63xx_uart",
54 - .num_resources = ARRAY_SIZE(uart0_resources),
55 - .resource = uart0_resources,
59 - .name = "bcm63xx_uart",
61 - .num_resources = ARRAY_SIZE(uart1_resources),
62 - .resource = uart1_resources,
66 -int __init bcm63xx_uart_register(unsigned int id)
68 - if (id >= ARRAY_SIZE(bcm63xx_uart_devices))
71 - if (id == 1 && (!BCMCPU_IS_3368() && !BCMCPU_IS_6358() &&
76 - uart0_resources[0].start = bcm63xx_regset_address(RSET_UART0);
77 - uart0_resources[0].end = uart0_resources[0].start +
79 - uart0_resources[1].start = bcm63xx_get_irq_number(IRQ_UART0);
83 - uart1_resources[0].start = bcm63xx_regset_address(RSET_UART1);
84 - uart1_resources[0].end = uart1_resources[0].start +
86 - uart1_resources[1].start = bcm63xx_get_irq_number(IRQ_UART1);
89 - return platform_device_register(&bcm63xx_uart_devices[id]);
91 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_uart.h
94 -/* SPDX-License-Identifier: GPL-2.0 */
95 -#ifndef BCM63XX_DEV_UART_H_
96 -#define BCM63XX_DEV_UART_H_
98 -int bcm63xx_uart_register(unsigned int id);
100 -#endif /* BCM63XX_DEV_UART_H_ */
101 --- a/arch/mips/bcm63xx/boards/board_common.c
102 +++ b/arch/mips/bcm63xx/boards/board_common.c
104 #include <asm/prom.h>
105 #include <bcm63xx_board.h>
106 #include <bcm63xx_cpu.h>
107 -#include <bcm63xx_dev_uart.h>
108 #include <bcm63xx_regs.h>
109 #include <bcm63xx_io.h>
110 #include <bcm63xx_gpio.h>
111 @@ -189,12 +188,6 @@ int __init board_register_devices(void)
115 - if (board.has_uart0)
116 - bcm63xx_uart_register(0);
118 - if (board.has_uart1)
119 - bcm63xx_uart_register(1);
121 if (board.has_pccard)
122 bcm63xx_pcmcia_register();
124 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
125 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
126 @@ -35,9 +35,6 @@ static struct board_info __initdata boar
127 .name = "CVG834G_E15R3921",
128 .expected_cpu_id = 0x3368,
136 @@ -67,7 +64,6 @@ static struct board_info __initdata boar
138 .expected_cpu_id = 0x6328,
143 .use_fallback_sprom = 1,
144 @@ -116,7 +112,6 @@ static struct board_info __initdata boar
146 .expected_cpu_id = 0x6338,
151 .force_speed_100 = 1,
152 @@ -159,7 +154,6 @@ static struct board_info __initdata boar
154 .expected_cpu_id = 0x6338,
159 .force_speed_100 = 1,
160 @@ -204,8 +198,6 @@ static struct board_info __initdata boar
161 static struct board_info __initdata board_96345gw2 = {
163 .expected_cpu_id = 0x6345,
169 @@ -217,7 +209,6 @@ static struct board_info __initdata boar
171 .expected_cpu_id = 0x6348,
176 .use_fallback_sprom = 1,
177 @@ -262,7 +253,6 @@ static struct board_info __initdata boar
178 .name = "96348GW-10",
179 .expected_cpu_id = 0x6348,
185 @@ -315,7 +305,6 @@ static struct board_info __initdata boar
186 .name = "96348GW-11",
187 .expected_cpu_id = 0x6348,
193 @@ -370,7 +359,6 @@ static struct board_info __initdata boar
195 .expected_cpu_id = 0x6348,
201 @@ -421,7 +409,6 @@ static struct board_info __initdata boar
203 .expected_cpu_id = 0x6348,
209 @@ -466,7 +453,6 @@ static struct board_info __initdata boar
211 .expected_cpu_id = 0x6348,
215 .use_fallback_sprom = 1,
217 @@ -487,7 +473,6 @@ static struct board_info __initdata boar
219 .expected_cpu_id = 0x6348,
225 @@ -514,7 +499,6 @@ static struct board_info __initdata boar
227 .expected_cpu_id = 0x6358,
233 @@ -567,7 +551,6 @@ static struct board_info __initdata boar
235 .expected_cpu_id = 0x6358,
241 @@ -617,7 +600,6 @@ static struct board_info __initdata boar
243 .expected_cpu_id = 0x6358,
249 --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
250 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
251 @@ -32,8 +32,6 @@ struct board_info {
252 unsigned int has_ohci0:1;
253 unsigned int has_ehci0:1;
254 unsigned int has_usbd:1;
255 - unsigned int has_uart0:1;
256 - unsigned int has_uart1:1;
257 unsigned int use_fallback_sprom:1;
259 /* ethernet config */