7e6b5497ea
hw/char/serial currently contains the implementation of both TYPE_SERIAL and TYPE_SERIAL_MM. According to serial_class_init(), TYPE_SERIAL is an internal class while TYPE_SERIAL_MM is used by numerous machine types directly. Let's move the latter into its own module which makes the dependencies more obvious and the code more tidy. The includes and the dependencies have been converted mechanically except in the hw/char directories which were updated manually. The result was compile-tested. Now, only hw/char makes direct use of TYPE_SERIAL: # grep -r -e "select SERIAL" | grep -v SERIAL_ hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL # grep -r -e "/serial\\.h" include/hw/char/serial-mm.h:#include "hw/char/serial.h" hw/char/serial-pci-multi.c:#include "hw/char/serial.h" hw/char/serial.c:#include "hw/char/serial.h" hw/char/serial-isa.c:#include "hw/char/serial.h" hw/char/serial-pci.c:#include "hw/char/serial.h" Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Link: https://lore.kernel.org/r/20240905073832.16222-4-shentey@gmail.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
110 lines
2.0 KiB
Plaintext
110 lines
2.0 KiB
Plaintext
config RISCV_NUMA
|
|
bool
|
|
|
|
config IBEX
|
|
bool
|
|
|
|
# RISC-V machines in alphabetical order
|
|
|
|
config MICROCHIP_PFSOC
|
|
bool
|
|
default y
|
|
depends on RISCV64
|
|
select CADENCE_SDHCI
|
|
select CPU_CLUSTER
|
|
select DEVICE_TREE
|
|
select MCHP_PFSOC_DMC
|
|
select MCHP_PFSOC_IOSCB
|
|
select MCHP_PFSOC_MMUART
|
|
select MCHP_PFSOC_SYSREG
|
|
select RISCV_ACLINT
|
|
select SIFIVE_PDMA
|
|
select SIFIVE_PLIC
|
|
select UNIMP
|
|
|
|
config OPENTITAN
|
|
bool
|
|
default y
|
|
depends on RISCV32
|
|
select IBEX
|
|
select SIFIVE_PLIC
|
|
select UNIMP
|
|
|
|
config RISCV_VIRT
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
imply PCI_DEVICES
|
|
imply VIRTIO_VGA
|
|
imply TEST_DEVICES
|
|
imply TPM_TIS_SYSBUS
|
|
select DEVICE_TREE
|
|
select RISCV_NUMA
|
|
select GOLDFISH_RTC
|
|
select PCI
|
|
select PCI_EXPRESS_GENERIC_BRIDGE
|
|
select PFLASH_CFI01
|
|
select SERIAL_MM
|
|
select RISCV_ACLINT
|
|
select RISCV_APLIC
|
|
select RISCV_IMSIC
|
|
select SIFIVE_PLIC
|
|
select SIFIVE_TEST
|
|
select SMBIOS
|
|
select VIRTIO_MMIO
|
|
select FW_CFG_DMA
|
|
select PLATFORM_BUS
|
|
select ACPI
|
|
select ACPI_PCI
|
|
|
|
config SHAKTI_C
|
|
bool
|
|
default y
|
|
depends on RISCV64
|
|
select RISCV_ACLINT
|
|
select SHAKTI_UART
|
|
select SIFIVE_PLIC
|
|
select UNIMP
|
|
|
|
config SIFIVE_E
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
select RISCV_ACLINT
|
|
select SIFIVE_GPIO
|
|
select SIFIVE_PLIC
|
|
select SIFIVE_UART
|
|
select SIFIVE_E_PRCI
|
|
select SIFIVE_E_AON
|
|
select UNIMP
|
|
|
|
config SIFIVE_U
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
select CADENCE
|
|
select CPU_CLUSTER
|
|
select DEVICE_TREE
|
|
select RISCV_ACLINT
|
|
select SIFIVE_GPIO
|
|
select SIFIVE_PDMA
|
|
select SIFIVE_PLIC
|
|
select SIFIVE_SPI
|
|
select SIFIVE_UART
|
|
select SIFIVE_U_OTP
|
|
select SIFIVE_U_PRCI
|
|
select SIFIVE_PWM
|
|
select SSI_M25P80
|
|
select SSI_SD
|
|
select UNIMP
|
|
|
|
config SPIKE
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
select DEVICE_TREE
|
|
select RISCV_NUMA
|
|
select HTIF
|
|
select RISCV_ACLINT
|
|
select SIFIVE_PLIC
|