aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMarkus Stockhausen <markus.stockhausen@gmx.de>2022-08-25 08:23:02 +0200
committerSander Vanheule <sander@svanheule.net>2022-08-28 11:45:03 +0200
commit5df36d484968decd250dfa0793499641b1f7b4b6 (patch)
tree26e8b113e300ec07eb2e90c1d4bfa967d9c848cf /target/linux
parent800d5fb3c6a16661932c932bacd660e38d06b727 (diff)
downloadupstream-5df36d484968decd250dfa0793499641b1f7b4b6.tar.gz
upstream-5df36d484968decd250dfa0793499641b1f7b4b6.tar.bz2
upstream-5df36d484968decd250dfa0793499641b1f7b4b6.zip
realtek: enable basic config for cpufreq framework
A new clock driver makes more sense if it can be used from consumers like cpufreq. Before we enable the driver we must tell the config that the RTL838X and RTL839X targets allow CPU frequency changing. Even though these targets currently rely on the CPU's internal R4K timer, MIPS_EXTERNAL_TIMER is selected to allow for CPU frequency change testing. The Realtek timers, which are clocked by the Lexra bus, still need to be supported and used in order to provide correct wall times when reclocking the CPU. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> [add paragraph about MIPS_EXTERNAL_TIMER to commit message] Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch b/target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch
index 373bcff421..476afba6a8 100644
--- a/target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch
+++ b/target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch
@@ -10,7 +10,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,62 @@ config NLM_XLP_BOARD
This board is based on Netlogic XLP Processor.
Say Y here if you have a XLP based board.
@@ -38,14 +38,18 @@
+config RTL838X
+ bool "Realtek RTL838X based platforms"
+ depends on RTL83XX
++ select CPU_SUPPORTS_CPUFREQ
+ select CSRC_R4K
+ select CEVT_R4K
++ select MIPS_EXTERNAL_TIMER
+
+config RTL839X
+ bool "Realtek RTL839X based platforms"
+ depends on RTL83XX
++ select CPU_SUPPORTS_CPUFREQ
+ select CSRC_R4K
+ select CEVT_R4K
++ select MIPS_EXTERNAL_TIMER
+ select SYS_SUPPORTS_MULTITHREADING
+
+config RTL930X