Skip to content

Commit 65964c4

Browse files
plappermaulhauke
authored andcommitted
realtek: align kernel config with upstream
Since the start of the Realtek target OpenWrt works with RTL83XX as the target architecture. Upstream is using MACH_REALTEK_RTL instead. To simplify further development align that. Signed-off-by: Markus Stockhausen <[email protected]> Link: openwrt/openwrt#16963 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent a6e98a8 commit 65964c4

15 files changed

+39
-144
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
22
# Realtek RTL838x SoCs
33
#
4-
cflags-$(CONFIG_RTL83XX) += -I$(srctree)/arch/mips/include/asm/mach-rtl838x/
5-
load-$(CONFIG_RTL83XX) += 0xffffffff80100000
4+
cflags-$(CONFIG_MACH_REALTEK_RTL) += -I$(srctree)/arch/mips/include/asm/mach-rtl838x/
5+
load-$(CONFIG_MACH_REALTEK_RTL) += 0xffffffff80100000

target/linux/realtek/files-6.6/drivers/clk/realtek/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
menuconfig COMMON_CLK_REALTEK
44
bool "Support for Realtek's clock controllers"
5-
depends on RTL83XX
5+
depends on MACH_REALTEK_RTL
66

77
if COMMON_CLK_REALTEK
88

99
config COMMON_CLK_RTL83XX
1010
bool "Clock driver for Realtek RTL83XX"
11-
depends on RTL83XX
11+
depends on MACH_REALTEK_RTL
1212
select SRAM
1313
help
1414
This driver adds support for the Realtek RTL83xx series basic clocks.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config NET_DSA_RTL83XX
33
tristate "Realtek RTL838x/RTL839x switch support"
4-
depends on RTL83XX
4+
depends on MACH_REALTEK_RTL
55
select NET_DSA_TAG_TRAILER
66
help
77
This driver adds support for Realtek RTL83xx series switching.

target/linux/realtek/patches-6.6/300-mips-add-rtl838x-platform.patch

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,64 +9,67 @@ configurations for the SoCs, which are introduced in addition.
99

1010
Submitted-by: Birger Koblitz <[email protected]>
1111
---
12-
arch/mips/Kbuild.platforms | 1 +
13-
arch/mips/Kconfig | 57 ++++++++++++++
14-
2 files changed, 58 insertions(+)
15-
1612
--- a/arch/mips/Kbuild.platforms
1713
+++ b/arch/mips/Kbuild.platforms
1814
@@ -22,6 +22,7 @@ platform-$(CONFIG_MACH_NINTENDO64) += n6
1915
platform-$(CONFIG_PIC32MZDA) += pic32/
2016
platform-$(CONFIG_RALINK) += ralink/
2117
platform-$(CONFIG_MIKROTIK_RB532) += rb532/
22-
+platform-$(CONFIG_RTL83XX) += rtl838x/
18+
+platform-$(CONFIG_MACH_REALTEK_RTL) += rtl838x/
2319
platform-$(CONFIG_SGI_IP22) += sgi-ip22/
2420
platform-$(CONFIG_SGI_IP27) += sgi-ip27/
2521
platform-$(CONFIG_SGI_IP28) += sgi-ip22/
2622
--- a/arch/mips/Kconfig
2723
+++ b/arch/mips/Kconfig
28-
@@ -968,8 +968,58 @@ config CAVIUM_OCTEON_SOC
29-
Hikari
30-
Say Y here for most Octeon reference boards.
24+
@@ -620,21 +620,23 @@ config RALINK
3125

32-
+config RTL83XX
33-
+ bool "Realtek based platforms"
34-
+ select DMA_NONCOHERENT
35-
+ select IRQ_MIPS_CPU
26+
config MACH_REALTEK_RTL
27+
bool "Realtek RTL838x/RTL839x based machines"
28+
- select MIPS_GENERIC
29+
select DMA_NONCOHERENT
30+
select IRQ_MIPS_CPU
31+
- select CSRC_R4K
32+
- select CEVT_R4K
33+
select SYS_HAS_CPU_MIPS32_R1
34+
select SYS_HAS_CPU_MIPS32_R2
35+
select SYS_SUPPORTS_BIG_ENDIAN
36+
select SYS_SUPPORTS_32BIT_KERNEL
37+
select SYS_SUPPORTS_MIPS16
38+
- select SYS_SUPPORTS_MULTITHREADING
39+
- select SYS_SUPPORTS_VPE_LOADER
40+
select BOOT_RAW
41+
select PINCTRL
42+
select USE_OF
3643
+ select NO_EXCEPT_FILL
37-
+ select SYS_HAS_CPU_MIPS32_R1
38-
+ select SYS_HAS_CPU_MIPS32_R2
39-
+ select SYS_SUPPORTS_BIG_ENDIAN
4044
+ select SYS_SUPPORTS_HIGHMEM
41-
+ select SYS_SUPPORTS_32BIT_KERNEL
42-
+ select SYS_SUPPORTS_MIPS16
4345
+ select SYS_HAS_EARLY_PRINTK
4446
+ select SYS_HAS_EARLY_PRINTK_8250
4547
+ select USE_GENERIC_EARLY_PRINTK_8250
46-
+ select BOOT_RAW
47-
+ select PINCTRL
4848
+ select ARCH_HAS_RESET_CONTROLLER
4949
+ select RESET_CONTROLLER
50-
+ select USE_OF
51-
+
50+
51+
config SGI_IP22
52+
bool "SGI IP22 (Indy/Indigo2)"
53+
@@ -970,6 +972,36 @@ config CAVIUM_OCTEON_SOC
54+
5255
endchoice
5356

5457
+config RTL838X
5558
+ bool "Realtek RTL838X based platforms"
56-
+ depends on RTL83XX
59+
+ depends on MACH_REALTEK_RTL
5760
+ select CPU_SUPPORTS_CPUFREQ
5861
+ select MIPS_EXTERNAL_TIMER
5962
+
6063
+config RTL839X
6164
+ bool "Realtek RTL839X based platforms"
62-
+ depends on RTL83XX
65+
+ depends on MACH_REALTEK_RTL
6366
+ select CPU_SUPPORTS_CPUFREQ
6467
+ select MIPS_EXTERNAL_TIMER
6568
+ select SYS_SUPPORTS_MULTITHREADING
6669
+
6770
+config RTL930X
6871
+ bool "Realtek RTL930X based platforms"
69-
+ depends on RTL83XX
72+
+ depends on MACH_REALTEK_RTL
7073
+ select MIPS_CPU_SCACHE
7174
+ select MIPS_EXTERNAL_TIMER
7275
+ select SYS_SUPPORTS_MULTITHREADING

target/linux/realtek/patches-6.6/301-gpio-add-rtl8231-driver.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Submitted-by: John Crispin <[email protected]>
3131

3232
+config GPIO_RTL8231
3333
+ tristate "RTL8231 GPIO"
34-
+ depends on RTL83XX
34+
+ depends on MACH_REALTEK_RTL
3535
+ help
3636
+ Say yes here to support Realtek RTL8231 GPIO expansion chips.
3737
+

target/linux/realtek/patches-6.6/303-gpio-update-dependencies-for-gpio-realtek-otto.patch

Lines changed: 0 additions & 26 deletions
This file was deleted.

target/linux/realtek/patches-6.6/304-spi-update-dependency-for-spi-realtek-rtl.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

target/linux/realtek/patches-6.6/305-irqchip-update-dependency-for-irq-realtek-rtl.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

target/linux/realtek/patches-6.6/307-wdt-update-dependency-for-realtek-otto-wdt.patch

Lines changed: 0 additions & 32 deletions
This file was deleted.

target/linux/realtek/patches-6.6/716-net-ethernet-add-support-for-rtl838x-ethernet.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Submitted-by: John Crispin <[email protected]>
2929
+
3030
+config NET_RTL838X
3131
+ tristate "Realtek rtl838x Ethernet MAC support"
32-
+ depends on RTL83XX
32+
+ depends on MACH_REALTEK_RTL
3333
+ help
3434
+ Say Y here if you want to use the Realtek rtl838x Gbps Ethernet MAC.
3535
+

0 commit comments

Comments
 (0)