2
0

300-mips-add-rtl838x-platform.patch 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. From fce11f68491b46b93df69de0630cd9edb90bc772 Mon Sep 17 00:00:00 2001
  2. From: Birger Koblitz <[email protected]>
  3. Date: Wed, 29 Dec 2021 21:54:21 +0100
  4. Subject: [PATCH] realtek: Create 4 different Realtek Platforms
  5. Creates RTL83XX as a basic kernel config parameter for the
  6. RTL838X, RTL839x, RTL930X and RTL931X platforms with respective
  7. configurations for the SoCs, which are introduced in addition.
  8. Submitted-by: Birger Koblitz <[email protected]>
  9. ---
  10. arch/mips/Kbuild.platforms | 1 +
  11. arch/mips/Kconfig | 57 ++++++++++++++
  12. 2 files changed, 58 insertions(+)
  13. --- a/arch/mips/Kbuild.platforms
  14. +++ b/arch/mips/Kbuild.platforms
  15. @@ -23,6 +23,7 @@ platform-$(CONFIG_NLM_COMMON) += netlog
  16. platform-$(CONFIG_PIC32MZDA) += pic32/
  17. platform-$(CONFIG_RALINK) += ralink/
  18. platform-$(CONFIG_MIKROTIK_RB532) += rb532/
  19. +platform-$(CONFIG_RTL83XX) += rtl838x/
  20. platform-$(CONFIG_SGI_IP22) += sgi-ip22/
  21. platform-$(CONFIG_SGI_IP27) += sgi-ip27/
  22. platform-$(CONFIG_SGI_IP28) += sgi-ip22/
  23. --- a/arch/mips/Kconfig
  24. +++ b/arch/mips/Kconfig
  25. @@ -1056,8 +1056,58 @@ config NLM_XLP_BOARD
  26. This board is based on Netlogic XLP Processor.
  27. Say Y here if you have a XLP based board.
  28. +config RTL83XX
  29. + bool "Realtek based platforms"
  30. + select DMA_NONCOHERENT
  31. + select IRQ_MIPS_CPU
  32. + select NO_EXCEPT_FILL
  33. + select SYS_HAS_CPU_MIPS32_R1
  34. + select SYS_HAS_CPU_MIPS32_R2
  35. + select SYS_SUPPORTS_BIG_ENDIAN
  36. + select SYS_SUPPORTS_HIGHMEM
  37. + select SYS_SUPPORTS_32BIT_KERNEL
  38. + select SYS_SUPPORTS_MIPS16
  39. + select SYS_HAS_EARLY_PRINTK
  40. + select SYS_HAS_EARLY_PRINTK_8250
  41. + select USE_GENERIC_EARLY_PRINTK_8250
  42. + select BOOT_RAW
  43. + select PINCTRL
  44. + select ARCH_HAS_RESET_CONTROLLER
  45. + select RESET_CONTROLLER
  46. + select USE_OF
  47. +
  48. endchoice
  49. +config RTL838X
  50. + bool "Realtek RTL838X based platforms"
  51. + depends on RTL83XX
  52. + select CPU_SUPPORTS_CPUFREQ
  53. + select MIPS_EXTERNAL_TIMER
  54. +
  55. +config RTL839X
  56. + bool "Realtek RTL839X based platforms"
  57. + depends on RTL83XX
  58. + select CPU_SUPPORTS_CPUFREQ
  59. + select MIPS_EXTERNAL_TIMER
  60. + select SYS_SUPPORTS_MULTITHREADING
  61. +
  62. +config RTL930X
  63. + bool "Realtek RTL930X based platforms"
  64. + depends on RTL83XX
  65. + select MIPS_CPU_SCACHE
  66. + select MIPS_EXTERNAL_TIMER
  67. + select SYS_SUPPORTS_MULTITHREADING
  68. +
  69. +config RTL931X
  70. + bool "Realtek RTL931X based platforms"
  71. + depends on RTL930X
  72. + select MIPS_GIC
  73. + select COMMON_CLK
  74. + select CLKSRC_MIPS_GIC
  75. + select SYS_SUPPORTS_VPE_LOADER
  76. + select SYS_SUPPORTS_SMP
  77. + select SYS_SUPPORTS_MIPS_CPS
  78. +
  79. source "arch/mips/alchemy/Kconfig"
  80. source "arch/mips/ath25/Kconfig"
  81. source "arch/mips/ath79/Kconfig"