xref: /qemu/hw/misc/meson.build (revision 0791bc02b8fbf9d55626b57f45255ba1b6ea83d5)
1721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_APPLESMC', if_true: files('applesmc.c'))
2721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_EDU', if_true: files('edu.c'))
3721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmcoreinfo.c'))
4721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugexit.c'))
5721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
6721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MAX111X', if_true: files('max111x.c'))
7721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
8721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
9721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_SGA', if_true: files('sga.c'))
10721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_TMP105', if_true: files('tmp105.c'))
11721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_TMP421', if_true: files('tmp421.c'))
125e623f2bSJohn Wangsoftmmu_ss.add(when: 'CONFIG_EMC141X', if_true: files('emc141x.c'))
13721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
14721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
15c1b29826SPhilippe Mathieu-Daudésoftmmu_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
16677726efSMihai Carabassoftmmu_ss.add(when: 'CONFIG_PVPANIC_COMMON', if_true: files('pvpanic.c'))
17721cdcaeSMarc-André Lureau
18721cdcaeSMarc-André Lureau# ARM devices
19721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_PL310', if_true: files('arm_l2x0.c'))
20721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_INTEGRATOR_DEBUG', if_true: files('arm_integrator_debug.c'))
21721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_A9SCU', if_true: files('a9scu.c'))
22721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ARM11SCU', if_true: files('arm11scu.c'))
23721cdcaeSMarc-André Lureau
24721cdcaeSMarc-André Lureau# Mac devices
25721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MOS6522', if_true: files('mos6522.c'))
26721cdcaeSMarc-André Lureau
27*0791bc02SLaurent Vivier# virt devices
28*0791bc02SLaurent Viviersoftmmu_ss.add(when: 'CONFIG_VIRT_CTRL', if_true: files('virt_ctrl.c'))
29*0791bc02SLaurent Vivier
3089ece6f7SBin Meng# RISC-V devices
313400b15bSBin Mengsoftmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_DMC', if_true: files('mchp_pfsoc_dmc.c'))
32a937b302SBin Mengsoftmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_IOSCB', if_true: files('mchp_pfsoc_ioscb.c'))
330f25065cSBin Mengsoftmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_SYSREG', if_true: files('mchp_pfsoc_sysreg.c'))
34a4b84608SBin Mengsoftmmu_ss.add(when: 'CONFIG_SIFIVE_TEST', if_true: files('sifive_test.c'))
3589ece6f7SBin Mengsoftmmu_ss.add(when: 'CONFIG_SIFIVE_E_PRCI', if_true: files('sifive_e_prci.c'))
360fa9e329SBin Mengsoftmmu_ss.add(when: 'CONFIG_SIFIVE_U_OTP', if_true: files('sifive_u_otp.c'))
379fe640a5SBin Mengsoftmmu_ss.add(when: 'CONFIG_SIFIVE_U_PRCI', if_true: files('sifive_u_prci.c'))
3889ece6f7SBin Meng
39721cdcaeSMarc-André Lureau# PKUnity SoC devices
40721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_PUV3', if_true: files('puv3_pm.c'))
41721cdcaeSMarc-André Lureau
42721cdcaeSMarc-André Lureausubdir('macio')
43721cdcaeSMarc-André Lureau
44721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem.c'))
45721cdcaeSMarc-André Lureau
46721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-ccu.c'))
47721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-cpucfg.c'))
48721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-dramc.c'))
49721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-sysctrl.c'))
50721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-sid.c'))
51721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c'))
52721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_NSERIES', if_true: files('cbus.c'))
53721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c'))
54721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', 'exynos4210_clk.c', 'exynos4210_rng.c'))
55721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_IMX', if_true: files(
56721cdcaeSMarc-André Lureau  'imx25_ccm.c',
57721cdcaeSMarc-André Lureau  'imx31_ccm.c',
58721cdcaeSMarc-André Lureau  'imx6_ccm.c',
59721cdcaeSMarc-André Lureau  'imx6ul_ccm.c',
60721cdcaeSMarc-André Lureau  'imx7_ccm.c',
61721cdcaeSMarc-André Lureau  'imx7_gpr.c',
62721cdcaeSMarc-André Lureau  'imx7_snvs.c',
63721cdcaeSMarc-André Lureau  'imx_ccm.c',
64721cdcaeSMarc-André Lureau  'imx_rngc.c',
65721cdcaeSMarc-André Lureau))
66721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-hpdmc.c', 'milkymist-pfpu.c'))
67721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MAINSTONE', if_true: files('mst_fpga.c'))
68e5a7ba87SHavard Skinnemoensoftmmu_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
69e331f79eSHavard Skinnemoen  'npcm7xx_clk.c',
70e5a7ba87SHavard Skinnemoen  'npcm7xx_gcr.c',
71380a37e4SHao Wu  'npcm7xx_mft.c',
721e943c58SHao Wu  'npcm7xx_pwm.c',
73326ccfe2SHavard Skinnemoen  'npcm7xx_rng.c',
74e5a7ba87SHavard Skinnemoen))
75721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_OMAP', if_true: files(
76721cdcaeSMarc-André Lureau  'omap_clk.c',
77721cdcaeSMarc-André Lureau  'omap_gpmc.c',
78721cdcaeSMarc-André Lureau  'omap_l4.c',
79721cdcaeSMarc-André Lureau  'omap_sdrc.c',
80721cdcaeSMarc-André Lureau  'omap_tap.c',
81721cdcaeSMarc-André Lureau))
82721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_RASPI', if_true: files(
83721cdcaeSMarc-André Lureau  'bcm2835_mbox.c',
84721cdcaeSMarc-André Lureau  'bcm2835_mphi.c',
85721cdcaeSMarc-André Lureau  'bcm2835_property.c',
86721cdcaeSMarc-André Lureau  'bcm2835_rng.c',
87721cdcaeSMarc-André Lureau  'bcm2835_thermal.c',
88fc14176bSLuc Michel  'bcm2835_cprman.c',
89721cdcaeSMarc-André Lureau))
90721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_misc.c'))
91721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c', 'zynq-xadc.c'))
929f617635SEdgar E. Iglesiassoftmmu_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-xramc.c'))
93721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_STM32F2XX_SYSCFG', if_true: files('stm32f2xx_syscfg.c'))
94721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_STM32F4XX_SYSCFG', if_true: files('stm32f4xx_syscfg.c'))
95721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_STM32F4XX_EXTI', if_true: files('stm32f4xx_exti.c'))
96721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MPS2_FPGAIO', if_true: files('mps2-fpgaio.c'))
97721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MPS2_SCC', if_true: files('mps2-scc.c'))
98721cdcaeSMarc-André Lureau
99721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_TZ_MPC', if_true: files('tz-mpc.c'))
100721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_TZ_MSC', if_true: files('tz-msc.c'))
101721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_TZ_PPC', if_true: files('tz-ppc.c'))
102721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_IOTKIT_SECCTL', if_true: files('iotkit-secctl.c'))
103721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_IOTKIT_SYSINFO', if_true: files('iotkit-sysinfo.c'))
1044239b311SPeter Maydellsoftmmu_ss.add(when: 'CONFIG_ARMSSE_CPU_PWRCTRL', if_true: files('armsse-cpu-pwrctrl.c'))
105721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ARMSSE_CPUID', if_true: files('armsse-cpuid.c'))
106721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ARMSSE_MHU', if_true: files('armsse-mhu.c'))
107721cdcaeSMarc-André Lureau
108677726efSMihai Carabassoftmmu_ss.add(when: 'CONFIG_PVPANIC_ISA', if_true: files('pvpanic-isa.c'))
109d097b3dcSMihai Carabassoftmmu_ss.add(when: 'CONFIG_PVPANIC_PCI', if_true: files('pvpanic-pci.c'))
110721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_AUX', if_true: files('auxbus.c'))
1112ecf1726SCédric Le Goatersoftmmu_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files(
1122ecf1726SCédric Le Goater  'aspeed_lpc.c',
1132ecf1726SCédric Le Goater  'aspeed_scu.c',
1142ecf1726SCédric Le Goater  'aspeed_sdmc.c',
1152ecf1726SCédric Le Goater  'aspeed_xdma.c'))
1162ecf1726SCédric Le Goater
117721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-sysreg.c'))
118721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
119721cdcaeSMarc-André Lureau
120721cdcaeSMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
121721cdcaeSMarc-André Lureau
122721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))
123721cdcaeSMarc-André Lureau
124721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_IMX', if_true: files('imx6_src.c'))
125721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_IOTKIT_SYSCTL', if_true: files('iotkit-sysctl.c'))
126721cdcaeSMarc-André Lureau
127721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_MAC_VIA', if_true: files('mac_via.c'))
128721cdcaeSMarc-André Lureau
129721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_cmgcr.c', 'mips_cpc.c'))
130721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
131dccb92b5SGraeme Gregory
132dccb92b5SGraeme Gregoryspecific_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
133