realtek: update the tree to the latest refactored version
[openwrt/openwrt.git] / target / linux / realtek / patches-5.4 / 300-mips-add-rtl838x-platform.patch
1 Index: linux-5.4.77/arch/mips/Kbuild.platforms
2 ===================================================================
3 --- linux-5.4.77.orig/arch/mips/Kbuild.platforms
4 +++ linux-5.4.77/arch/mips/Kbuild.platforms
5 @@ -27,6 +27,7 @@ platforms += pistachio
6 platforms += pmcs-msp71xx
7 platforms += pnx833x
8 platforms += ralink
9 +platforms += rtl838x
10 platforms += rb532
11 platforms += sgi-ip22
12 platforms += sgi-ip27
13 Index: linux-5.4.77/arch/mips/Kconfig
14 ===================================================================
15 --- linux-5.4.77.orig/arch/mips/Kconfig
16 +++ linux-5.4.77/arch/mips/Kconfig
17 @@ -630,6 +630,26 @@ config RALINK
18 select ARCH_HAS_RESET_CONTROLLER
19 select RESET_CONTROLLER
20
21 +config RTL838X
22 + bool "Realtek based platforms"
23 + select DMA_NONCOHERENT
24 + select IRQ_MIPS_CPU
25 + select CSRC_R4K
26 + select CEVT_R4K
27 + select SYS_HAS_CPU_MIPS32_R1
28 + select SYS_HAS_CPU_MIPS32_R2
29 + select SYS_SUPPORTS_BIG_ENDIAN
30 + select SYS_SUPPORTS_32BIT_KERNEL
31 + select SYS_SUPPORTS_MIPS16
32 + select SYS_HAS_EARLY_PRINTK
33 + select SYS_HAS_EARLY_PRINTK_8250
34 + select USE_GENERIC_EARLY_PRINTK_8250
35 + select BOOT_RAW
36 + select PINCTRL
37 + select ARCH_HAS_RESET_CONTROLLER
38 + select RESET_CONTROLLER
39 + select USE_OF
40 +
41 config SGI_IP22
42 bool "SGI IP22 (Indy/Indigo2)"
43 select FW_ARC