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>
205 lines
3.4 KiB
Plaintext
205 lines
3.4 KiB
Plaintext
config PSERIES
|
|
bool
|
|
default y
|
|
depends on PPC64 && FDT
|
|
imply USB_OHCI_PCI
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
imply VIRTIO_VGA
|
|
imply VFIO_PCI if LINUX # needed by spapr_pci_vfio.c
|
|
select NVDIMM
|
|
select DIMM
|
|
select PCI
|
|
select SPAPR_VSCSI
|
|
select XICS
|
|
select XIVE
|
|
select MSI_NONBROKEN
|
|
select FDT_PPC
|
|
select CHRP_NVRAM
|
|
select VOF
|
|
|
|
config SPAPR_RNG
|
|
bool
|
|
default y
|
|
depends on PSERIES
|
|
|
|
config POWERNV
|
|
bool
|
|
default y
|
|
depends on PPC64 && FDT
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
select ISA_IPMI_BT
|
|
select IPMI_LOCAL
|
|
select ISA_BUS
|
|
select MC146818RTC
|
|
select XICS
|
|
select XIVE
|
|
select FDT_PPC
|
|
select PCI_POWERNV
|
|
select PCA9552
|
|
select PCA9554
|
|
select SERIAL_ISA
|
|
select SSI
|
|
select SSI_M25P80
|
|
select PNV_SPI
|
|
|
|
config PPC405
|
|
bool
|
|
default y
|
|
depends on PPC
|
|
select M48T59
|
|
select PFLASH_CFI02
|
|
select PPC4XX
|
|
select SERIAL_MM
|
|
|
|
config PPC440
|
|
bool
|
|
default y
|
|
depends on PPC && FDT
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
imply E1000_PCI
|
|
select PCI_EXPRESS
|
|
select PPC440_PCIX
|
|
select PPC4XX
|
|
select SERIAL_MM
|
|
select FDT_PPC
|
|
|
|
config PPC4XX
|
|
bool
|
|
select BITBANG_I2C
|
|
select PPC4XX_PCI
|
|
select PPC_UIC
|
|
|
|
config SAM460EX
|
|
bool
|
|
default y
|
|
depends on PPC && FDT
|
|
select PFLASH_CFI01
|
|
select IDE_SII3112
|
|
select M41T80
|
|
select PPC440
|
|
select SERIAL_MM
|
|
select SM501
|
|
select SMBUS_EEPROM
|
|
select USB_EHCI_SYSBUS
|
|
select USB_OHCI_SYSBUS
|
|
select FDT_PPC
|
|
|
|
config AMIGAONE
|
|
bool
|
|
default y
|
|
depends on PPC
|
|
imply ATI_VGA
|
|
select ARTICIA
|
|
select VT82C686
|
|
select SMBUS_EEPROM
|
|
|
|
config PEGASOS2
|
|
bool
|
|
default y
|
|
depends on PPC
|
|
imply ATI_VGA
|
|
select MV64361
|
|
select VT82C686
|
|
select SMBUS_EEPROM
|
|
select VOF
|
|
|
|
config PREP
|
|
bool
|
|
default y
|
|
depends on PPC
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
select CS4231A
|
|
select RAVEN_PCI
|
|
select I82378
|
|
select LSI_SCSI_PCI
|
|
select M48T59
|
|
select PC87312
|
|
select RS6000_MC
|
|
select FW_CFG_PPC
|
|
|
|
config RS6000_MC
|
|
bool
|
|
|
|
config MAC_OLDWORLD
|
|
bool
|
|
default y
|
|
depends on PPC
|
|
imply PCI_DEVICES
|
|
imply SUNGEM
|
|
imply TEST_DEVICES
|
|
select ADB
|
|
select GRACKLE_PCI
|
|
select HEATHROW_PIC
|
|
select MACIO
|
|
select FW_CFG_PPC
|
|
|
|
config MAC_NEWWORLD
|
|
bool
|
|
default y
|
|
depends on PPC
|
|
imply PCI_DEVICES
|
|
imply SUNGEM
|
|
imply TEST_DEVICES
|
|
imply USB_OHCI_PCI
|
|
select ADB
|
|
select MACIO
|
|
select MACIO_GPIO
|
|
select MAC_PMU
|
|
select UNIN_PCI
|
|
select FW_CFG_PPC
|
|
|
|
config E500
|
|
bool
|
|
imply AT24C
|
|
imply VIRTIO_PCI
|
|
select ETSEC
|
|
select GPIO_MPC8XXX
|
|
select OPENPIC
|
|
select PFLASH_CFI01
|
|
select PLATFORM_BUS
|
|
select PPCE500_PCI
|
|
select SDHCI
|
|
select SERIAL_MM
|
|
select MPC_I2C
|
|
select FDT_PPC
|
|
select DS1338
|
|
select UNIMP
|
|
|
|
config E500PLAT
|
|
bool
|
|
default y
|
|
depends on PPC && FDT
|
|
select E500
|
|
|
|
config MPC8544DS
|
|
bool
|
|
default y
|
|
depends on PPC && FDT
|
|
select E500
|
|
|
|
config VIRTEX
|
|
bool
|
|
default y
|
|
depends on PPC && FDT
|
|
select PPC4XX
|
|
select PFLASH_CFI01
|
|
select SERIAL_MM
|
|
select XILINX
|
|
select XILINX_ETHLITE
|
|
select FDT_PPC
|
|
|
|
# Only used by 64-bit targets
|
|
config FW_CFG_PPC
|
|
bool
|
|
|
|
config FDT_PPC
|
|
select DEVICE_TREE
|
|
bool
|
|
|
|
config VOF
|
|
bool
|