realtek: Refresh kernel patches
[openwrt/staging/jow.git] / target / linux / realtek / patches-5.10 / 300-mips-add-rtl838x-platform.patch
index 8292c82ef12aeb1e8ecfabbebccb23047e4bac65..fce26133fc26d26e29029eb0b49844a49f4c7197 100644 (file)
@@ -1,3 +1,18 @@
+From fce11f68491b46b93df69de0630cd9edb90bc772 Mon Sep 17 00:00:00 2001
+From: Birger Koblitz <git@birger-koblitz.de>
+Date: Wed, 29 Dec 2021 21:54:21 +0100
+Subject: [PATCH] realtek: Create 4 different Realtek Platforms
+
+Creates RTL83XX as a basic kernel config parameter for the
+RTL838X, RTL839x, RTL930X and RTL931X platforms with respective
+configurations for the SoCs, which are introduced in addition.
+
+Submitted-by: Birger Koblitz <git@birger-koblitz.de>
+---
+ arch/mips/Kbuild.platforms                    |  1 +
+ arch/mips/Kconfig                             | 57 ++++++++++++++
+ 2 files changed, 58 insertions(+)
+
 --- a/arch/mips/Kbuild.platforms
 +++ b/arch/mips/Kbuild.platforms
 @@ -23,6 +23,7 @@ platform-$(CONFIG_PIC32MZDA)         += pic32/
@@ -10,7 +25,7 @@
  platform-$(CONFIG_SGI_IP28)           += sgi-ip22/
 --- a/arch/mips/Kconfig
 +++ b/arch/mips/Kconfig
-@@ -1037,8 +1037,58 @@ config NLM_XLP_BOARD
+@@ -1037,8 +1037,59 @@ config NLM_XLP_BOARD
          This board is based on Netlogic XLP Processor.
          Say Y here if you have a XLP based board.
  
@@ -18,6 +33,7 @@
 +      bool "Realtek based platforms"
 +      select DMA_NONCOHERENT
 +      select IRQ_MIPS_CPU
++      select NO_EXCEPT_FILL
 +      select SYS_HAS_CPU_MIPS32_R1
 +      select SYS_HAS_CPU_MIPS32_R2
 +      select SYS_SUPPORTS_BIG_ENDIAN
 +config RTL838X
 +      bool "Realtek RTL838X based platforms"
 +      depends on RTL83XX
-+      select CSRC_R4K
-+      select CEVT_R4K
++      select CPU_SUPPORTS_CPUFREQ
++      select MIPS_EXTERNAL_TIMER
 +
 +config RTL839X
 +      bool "Realtek RTL839X based platforms"
 +      depends on RTL83XX
-+      select CSRC_R4K
-+      select CEVT_R4K
++      select CPU_SUPPORTS_CPUFREQ
++      select MIPS_EXTERNAL_TIMER
 +      select SYS_SUPPORTS_MULTITHREADING
 +
 +config RTL930X
-+      bool "Realtek RTL839X based platforms"
++      bool "Realtek RTL930X based platforms"
 +      depends on RTL83XX
 +      select MIPS_CPU_SCACHE
 +      select CSRC_R4K
@@ -69,7 +85,7 @@
  source "arch/mips/alchemy/Kconfig"
  source "arch/mips/ath25/Kconfig"
  source "arch/mips/ath79/Kconfig"
-@@ -1097,6 +1147,9 @@ config CEVT_GT641XX
+@@ -1097,6 +1148,9 @@ config CEVT_GT641XX
  config CEVT_R4K
        bool