| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- a/arch/mips/Kbuild.platforms |
| 2 | +++ b/arch/mips/Kbuild.platforms |
| 3 | @@ -27,6 +27,7 @@ platforms += pistachio |
| 4 | platforms += pmcs-msp71xx |
| 5 | platforms += pnx833x |
| 6 | platforms += ralink |
| 7 | +platforms += rtl838x |
| 8 | platforms += rb532 |
| 9 | platforms += sgi-ip22 |
| 10 | platforms += sgi-ip27 |
| 11 | --- a/arch/mips/Kconfig |
| 12 | +++ b/arch/mips/Kconfig |
| 13 | @@ -634,6 +634,26 @@ config RALINK |
| 14 | select ARCH_HAS_RESET_CONTROLLER |
| 15 | select RESET_CONTROLLER |
| 16 | |
| 17 | +config RTL838X |
| 18 | + bool "Realtek based platforms" |
| 19 | + select DMA_NONCOHERENT |
| 20 | + select IRQ_MIPS_CPU |
| 21 | + select CSRC_R4K |
| 22 | + select CEVT_R4K |
| 23 | + select SYS_HAS_CPU_MIPS32_R1 |
| 24 | + select SYS_HAS_CPU_MIPS32_R2 |
| 25 | + select SYS_SUPPORTS_BIG_ENDIAN |
| 26 | + select SYS_SUPPORTS_32BIT_KERNEL |
| 27 | + select SYS_SUPPORTS_MIPS16 |
| 28 | + select SYS_HAS_EARLY_PRINTK |
| 29 | + select SYS_HAS_EARLY_PRINTK_8250 |
| 30 | + select USE_GENERIC_EARLY_PRINTK_8250 |
| 31 | + select BOOT_RAW |
| 32 | + select PINCTRL |
| 33 | + select ARCH_HAS_RESET_CONTROLLER |
| 34 | + select RESET_CONTROLLER |
| 35 | + select USE_OF |
| 36 | + |
| 37 | config SGI_IP22 |
| 38 | bool "SGI IP22 (Indy/Indigo2)" |
| 39 | select FW_ARC |