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

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. +config RTL838X
  21. + bool "Realtek based platforms"
  22. + select DMA_NONCOHERENT
  23. + select IRQ_MIPS_CPU
  24. + select CSRC_R4K
  25. + select CEVT_R4K
  26. + select SYS_HAS_CPU_MIPS32_R1
  27. + select SYS_HAS_CPU_MIPS32_R2
  28. + select SYS_SUPPORTS_BIG_ENDIAN
  29. + select SYS_SUPPORTS_32BIT_KERNEL
  30. + select SYS_SUPPORTS_MIPS16
  31. + select SYS_HAS_EARLY_PRINTK
  32. + select SYS_HAS_EARLY_PRINTK_8250
  33. + select USE_GENERIC_EARLY_PRINTK_8250
  34. + select BOOT_RAW
  35. + select PINCTRL
  36. + select ARCH_HAS_RESET_CONTROLLER
  37. + select RESET_CONTROLLER
  38. + select USE_OF
  39. +
  40. config SGI_IP22
  41. bool "SGI IP22 (Indy/Indigo2)"
  42. select FW_ARC