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