xref: /qemu/hw/misc/meson.build (revision de6cd7599b518f0c832cc85980196ec02c129a86)
1*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_APPLESMC', if_true: files('applesmc.c'))
2*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_EDU', if_true: files('edu.c'))
3*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmcoreinfo.c'))
4*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugexit.c'))
5*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
6*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
7*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
8*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
9*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
10*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
11*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PVPANIC_COMMON', if_true: files('pvpanic.c'))
12721cdcaeSMarc-André Lureau
13721cdcaeSMarc-André Lureau# ARM devices
14*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PL310', if_true: files('arm_l2x0.c'))
15*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_INTEGRATOR_DEBUG', if_true: files('arm_integrator_debug.c'))
16*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_A9SCU', if_true: files('a9scu.c'))
17*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ARM11SCU', if_true: files('arm11scu.c'))
18721cdcaeSMarc-André Lureau
19*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_ras.c'))
202f9db77eSPeter Maydell
21721cdcaeSMarc-André Lureau# Mac devices
22*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MOS6522', if_true: files('mos6522.c'))
23721cdcaeSMarc-André Lureau
240791bc02SLaurent Vivier# virt devices
25*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_VIRT_CTRL', if_true: files('virt_ctrl.c'))
260791bc02SLaurent Vivier
2789ece6f7SBin Meng# RISC-V devices
28*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MCHP_PFSOC_DMC', if_true: files('mchp_pfsoc_dmc.c'))
29*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MCHP_PFSOC_IOSCB', if_true: files('mchp_pfsoc_ioscb.c'))
30*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MCHP_PFSOC_SYSREG', if_true: files('mchp_pfsoc_sysreg.c'))
31*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SIFIVE_TEST', if_true: files('sifive_test.c'))
32*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SIFIVE_E_PRCI', if_true: files('sifive_e_prci.c'))
33*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SIFIVE_U_OTP', if_true: files('sifive_u_otp.c'))
34*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SIFIVE_U_PRCI', if_true: files('sifive_u_prci.c'))
3589ece6f7SBin Meng
36721cdcaeSMarc-André Lureausubdir('macio')
37721cdcaeSMarc-André Lureau
38*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem.c'))
39721cdcaeSMarc-André Lureau
40*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_SRAMC', if_true: files('allwinner-sramc.c'))
41*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_A10_CCM', if_true: files('allwinner-a10-ccm.c'))
42*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_A10_DRAMC', if_true: files('allwinner-a10-dramc.c'))
43*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-ccu.c'))
44721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-cpucfg.c'))
45*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-dramc.c'))
46*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-sysctrl.c'))
47*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-sid.c'))
48*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-ccu.c'))
49*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-dramc.c'))
50*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_AXP2XX_PMU', if_true: files('axp2xx.c'))
51*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c'))
52*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_NSERIES', if_true: files('cbus.c'))
53*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c'))
54*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', 'exynos4210_clk.c', 'exynos4210_rng.c'))
55*de6cd759SPhilippe Mathieu-Daudésystem_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',
593d81e8cfSThomas Huth  'imx6_src.c',
60721cdcaeSMarc-André Lureau  'imx6ul_ccm.c',
61721cdcaeSMarc-André Lureau  'imx7_ccm.c',
62721cdcaeSMarc-André Lureau  'imx7_gpr.c',
63721cdcaeSMarc-André Lureau  'imx7_snvs.c',
64721cdcaeSMarc-André Lureau  'imx_ccm.c',
65721cdcaeSMarc-André Lureau  'imx_rngc.c',
66721cdcaeSMarc-André Lureau))
67*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MAINSTONE', if_true: files('mst_fpga.c'))
68*de6cd759SPhilippe Mathieu-Daudésystem_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))
75*de6cd759SPhilippe Mathieu-Daudésystem_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))
82*de6cd759SPhilippe Mathieu-Daudésystem_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',
8938f2cfbbSNolan Leake  'bcm2835_powermgt.c',
90721cdcaeSMarc-André Lureau))
91*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_misc.c'))
92*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c'))
93*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-crf.c'))
94*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-apu-ctrl.c'))
95369e5cb0SEdgar E. Iglesiasspecific_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-crl.c'))
96*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files(
978c1c0a1bSFrancisco Iglesias  'xlnx-versal-xramc.c',
988c1c0a1bSFrancisco Iglesias  'xlnx-versal-pmc-iou-slcr.c',
998c1c0a1bSFrancisco Iglesias))
100*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_STM32F2XX_SYSCFG', if_true: files('stm32f2xx_syscfg.c'))
101*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_STM32F4XX_SYSCFG', if_true: files('stm32f4xx_syscfg.c'))
102*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_STM32F4XX_EXTI', if_true: files('stm32f4xx_exti.c'))
103*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MPS2_FPGAIO', if_true: files('mps2-fpgaio.c'))
104*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MPS2_SCC', if_true: files('mps2-scc.c'))
105721cdcaeSMarc-André Lureau
106*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_TZ_MPC', if_true: files('tz-mpc.c'))
107*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_TZ_MSC', if_true: files('tz-msc.c'))
108*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_TZ_PPC', if_true: files('tz-ppc.c'))
109*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_IOTKIT_SECCTL', if_true: files('iotkit-secctl.c'))
110*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_IOTKIT_SYSCTL', if_true: files('iotkit-sysctl.c'))
111*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_IOTKIT_SYSINFO', if_true: files('iotkit-sysinfo.c'))
112*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ARMSSE_CPU_PWRCTRL', if_true: files('armsse-cpu-pwrctrl.c'))
113*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ARMSSE_CPUID', if_true: files('armsse-cpuid.c'))
114*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ARMSSE_MHU', if_true: files('armsse-mhu.c'))
115721cdcaeSMarc-André Lureau
116*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PVPANIC_ISA', if_true: files('pvpanic-isa.c'))
117*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PVPANIC_PCI', if_true: files('pvpanic-pci.c'))
118*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_AUX', if_true: files('auxbus.c'))
119*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files(
120c5475b3fSJoel Stanley  'aspeed_hace.c',
121119df56bSTroy Lee  'aspeed_i3c.c',
1222ecf1726SCédric Le Goater  'aspeed_lpc.c',
1232ecf1726SCédric Le Goater  'aspeed_scu.c',
124e1acf581SJoel Stanley  'aspeed_sbc.c',
1252ecf1726SCédric Le Goater  'aspeed_sdmc.c',
12655c57023SPeter Delevoryas  'aspeed_xdma.c',
12755c57023SPeter Delevoryas  'aspeed_peci.c'))
1282ecf1726SCédric Le Goater
129*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-sysreg.c'))
130*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
131721cdcaeSMarc-André Lureau
132*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
133721cdcaeSMarc-André Lureau
134*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_I2C', if_true: files('i2c-echo.c'))
135b14037f3SKlaus Jensen
136721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))
137721cdcaeSMarc-André Lureau
138721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_MAC_VIA', if_true: files('mac_via.c'))
139721cdcaeSMarc-André Lureau
140721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_cmgcr.c', 'mips_cpc.c'))
141721cdcaeSMarc-André Lureauspecific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
142dccb92b5SGraeme Gregory
143*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
14445f569a1SMark Cave-Ayland
14545f569a1SMark Cave-Ayland# HPPA devices
146*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_LASI', if_true: files('lasi.c'))
147