xref: /openbmc/qemu/hw/misc/meson.build (revision 27047bd2)
1softmmu_ss.add(when: 'CONFIG_APPLESMC', if_true: files('applesmc.c'))
2softmmu_ss.add(when: 'CONFIG_EDU', if_true: files('edu.c'))
3softmmu_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmcoreinfo.c'))
4softmmu_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugexit.c'))
5softmmu_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
6softmmu_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
7softmmu_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
8softmmu_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
9softmmu_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
10softmmu_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
11softmmu_ss.add(when: 'CONFIG_PVPANIC_COMMON', if_true: files('pvpanic.c'))
12
13# ARM devices
14softmmu_ss.add(when: 'CONFIG_PL310', if_true: files('arm_l2x0.c'))
15softmmu_ss.add(when: 'CONFIG_INTEGRATOR_DEBUG', if_true: files('arm_integrator_debug.c'))
16softmmu_ss.add(when: 'CONFIG_A9SCU', if_true: files('a9scu.c'))
17softmmu_ss.add(when: 'CONFIG_ARM11SCU', if_true: files('arm11scu.c'))
18
19softmmu_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_ras.c'))
20
21# Mac devices
22softmmu_ss.add(when: 'CONFIG_MOS6522', if_true: files('mos6522.c'))
23
24# virt devices
25softmmu_ss.add(when: 'CONFIG_VIRT_CTRL', if_true: files('virt_ctrl.c'))
26
27# RISC-V devices
28softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_DMC', if_true: files('mchp_pfsoc_dmc.c'))
29softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_IOSCB', if_true: files('mchp_pfsoc_ioscb.c'))
30softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_SYSREG', if_true: files('mchp_pfsoc_sysreg.c'))
31softmmu_ss.add(when: 'CONFIG_SIFIVE_TEST', if_true: files('sifive_test.c'))
32softmmu_ss.add(when: 'CONFIG_SIFIVE_E_PRCI', if_true: files('sifive_e_prci.c'))
33softmmu_ss.add(when: 'CONFIG_SIFIVE_U_OTP', if_true: files('sifive_u_otp.c'))
34softmmu_ss.add(when: 'CONFIG_SIFIVE_U_PRCI', if_true: files('sifive_u_prci.c'))
35
36subdir('macio')
37
38softmmu_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem.c'))
39
40softmmu_ss.add(when: 'CONFIG_ALLWINNER_SRAMC', if_true: files('allwinner-sramc.c'))
41softmmu_ss.add(when: 'CONFIG_ALLWINNER_A10_CCM', if_true: files('allwinner-a10-ccm.c'))
42softmmu_ss.add(when: 'CONFIG_ALLWINNER_A10_DRAMC', if_true: files('allwinner-a10-dramc.c'))
43softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-ccu.c'))
44specific_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-cpucfg.c'))
45softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-dramc.c'))
46softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-sysctrl.c'))
47softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-sid.c'))
48softmmu_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-ccu.c'))
49softmmu_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-dramc.c'))
50softmmu_ss.add(when: 'CONFIG_AXP2XX_PMU', if_true: files('axp2xx.c'))
51softmmu_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c'))
52softmmu_ss.add(when: 'CONFIG_NSERIES', if_true: files('cbus.c'))
53softmmu_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c'))
54softmmu_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', 'exynos4210_clk.c', 'exynos4210_rng.c'))
55softmmu_ss.add(when: 'CONFIG_IMX', if_true: files(
56  'imx25_ccm.c',
57  'imx31_ccm.c',
58  'imx6_ccm.c',
59  'imx6_src.c',
60  'imx6ul_ccm.c',
61  'imx7_ccm.c',
62  'imx7_gpr.c',
63  'imx7_snvs.c',
64  'imx_ccm.c',
65  'imx_rngc.c',
66))
67softmmu_ss.add(when: 'CONFIG_MAINSTONE', if_true: files('mst_fpga.c'))
68softmmu_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
69  'npcm7xx_clk.c',
70  'npcm7xx_gcr.c',
71  'npcm7xx_mft.c',
72  'npcm7xx_pwm.c',
73  'npcm7xx_rng.c',
74))
75softmmu_ss.add(when: 'CONFIG_OMAP', if_true: files(
76  'omap_clk.c',
77  'omap_gpmc.c',
78  'omap_l4.c',
79  'omap_sdrc.c',
80  'omap_tap.c',
81))
82softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files(
83  'bcm2835_mbox.c',
84  'bcm2835_mphi.c',
85  'bcm2835_property.c',
86  'bcm2835_rng.c',
87  'bcm2835_thermal.c',
88  'bcm2835_cprman.c',
89  'bcm2835_powermgt.c',
90))
91softmmu_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_misc.c'))
92softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c'))
93softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-crf.c'))
94softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-apu-ctrl.c'))
95specific_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-crl.c'))
96softmmu_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files(
97  'xlnx-versal-xramc.c',
98  'xlnx-versal-pmc-iou-slcr.c',
99))
100softmmu_ss.add(when: 'CONFIG_STM32F2XX_SYSCFG', if_true: files('stm32f2xx_syscfg.c'))
101softmmu_ss.add(when: 'CONFIG_STM32F4XX_SYSCFG', if_true: files('stm32f4xx_syscfg.c'))
102softmmu_ss.add(when: 'CONFIG_STM32F4XX_EXTI', if_true: files('stm32f4xx_exti.c'))
103softmmu_ss.add(when: 'CONFIG_MPS2_FPGAIO', if_true: files('mps2-fpgaio.c'))
104softmmu_ss.add(when: 'CONFIG_MPS2_SCC', if_true: files('mps2-scc.c'))
105
106softmmu_ss.add(when: 'CONFIG_TZ_MPC', if_true: files('tz-mpc.c'))
107softmmu_ss.add(when: 'CONFIG_TZ_MSC', if_true: files('tz-msc.c'))
108softmmu_ss.add(when: 'CONFIG_TZ_PPC', if_true: files('tz-ppc.c'))
109softmmu_ss.add(when: 'CONFIG_IOTKIT_SECCTL', if_true: files('iotkit-secctl.c'))
110softmmu_ss.add(when: 'CONFIG_IOTKIT_SYSCTL', if_true: files('iotkit-sysctl.c'))
111softmmu_ss.add(when: 'CONFIG_IOTKIT_SYSINFO', if_true: files('iotkit-sysinfo.c'))
112softmmu_ss.add(when: 'CONFIG_ARMSSE_CPU_PWRCTRL', if_true: files('armsse-cpu-pwrctrl.c'))
113softmmu_ss.add(when: 'CONFIG_ARMSSE_CPUID', if_true: files('armsse-cpuid.c'))
114softmmu_ss.add(when: 'CONFIG_ARMSSE_MHU', if_true: files('armsse-mhu.c'))
115
116softmmu_ss.add(when: 'CONFIG_PVPANIC_ISA', if_true: files('pvpanic-isa.c'))
117softmmu_ss.add(when: 'CONFIG_PVPANIC_PCI', if_true: files('pvpanic-pci.c'))
118softmmu_ss.add(when: 'CONFIG_AUX', if_true: files('auxbus.c'))
119softmmu_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files(
120  'aspeed_hace.c',
121  'aspeed_i3c.c',
122  'aspeed_lpc.c',
123  'aspeed_scu.c',
124  'aspeed_sbc.c',
125  'aspeed_sdmc.c',
126  'aspeed_xdma.c',
127  'aspeed_peci.c'))
128
129softmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-sysreg.c'))
130softmmu_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
131
132softmmu_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
133
134softmmu_ss.add(when: 'CONFIG_I2C', if_true: files('i2c-echo.c'))
135
136specific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))
137
138specific_ss.add(when: 'CONFIG_MAC_VIA', if_true: files('mac_via.c'))
139
140specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_cmgcr.c', 'mips_cpc.c'))
141specific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
142
143softmmu_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
144
145# HPPA devices
146softmmu_ss.add(when: 'CONFIG_LASI', if_true: files('lasi.c'))
147