xref: /openbmc/qemu/hw/misc/meson.build (revision 7cc25f6c)
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_MAX111X', if_true: files('max111x.c'))
7softmmu_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
8softmmu_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
9softmmu_ss.add(when: 'CONFIG_SGA', if_true: files('sga.c'))
10softmmu_ss.add(when: 'CONFIG_TMP105', if_true: files('tmp105.c'))
11softmmu_ss.add(when: 'CONFIG_TMP421', if_true: files('tmp421.c'))
12softmmu_ss.add(when: 'CONFIG_EMC141X', if_true: files('emc141x.c'))
13softmmu_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
14softmmu_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
15softmmu_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
16
17# ARM devices
18softmmu_ss.add(when: 'CONFIG_PL310', if_true: files('arm_l2x0.c'))
19softmmu_ss.add(when: 'CONFIG_INTEGRATOR_DEBUG', if_true: files('arm_integrator_debug.c'))
20softmmu_ss.add(when: 'CONFIG_A9SCU', if_true: files('a9scu.c'))
21softmmu_ss.add(when: 'CONFIG_ARM11SCU', if_true: files('arm11scu.c'))
22
23# Mac devices
24softmmu_ss.add(when: 'CONFIG_MOS6522', if_true: files('mos6522.c'))
25
26# RISC-V devices
27softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_DMC', if_true: files('mchp_pfsoc_dmc.c'))
28softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_IOSCB', if_true: files('mchp_pfsoc_ioscb.c'))
29softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_SYSREG', if_true: files('mchp_pfsoc_sysreg.c'))
30softmmu_ss.add(when: 'CONFIG_SIFIVE_TEST', if_true: files('sifive_test.c'))
31softmmu_ss.add(when: 'CONFIG_SIFIVE_E_PRCI', if_true: files('sifive_e_prci.c'))
32softmmu_ss.add(when: 'CONFIG_SIFIVE_U_OTP', if_true: files('sifive_u_otp.c'))
33softmmu_ss.add(when: 'CONFIG_SIFIVE_U_PRCI', if_true: files('sifive_u_prci.c'))
34
35# PKUnity SoC devices
36softmmu_ss.add(when: 'CONFIG_PUV3', if_true: files('puv3_pm.c'))
37
38subdir('macio')
39
40softmmu_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem.c'))
41
42softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-ccu.c'))
43specific_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-cpucfg.c'))
44softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-dramc.c'))
45softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-sysctrl.c'))
46softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-sid.c'))
47softmmu_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c'))
48softmmu_ss.add(when: 'CONFIG_NSERIES', if_true: files('cbus.c'))
49softmmu_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c'))
50softmmu_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', 'exynos4210_clk.c', 'exynos4210_rng.c'))
51softmmu_ss.add(when: 'CONFIG_IMX', if_true: files(
52  'imx25_ccm.c',
53  'imx31_ccm.c',
54  'imx6_ccm.c',
55  'imx6ul_ccm.c',
56  'imx7_ccm.c',
57  'imx7_gpr.c',
58  'imx7_snvs.c',
59  'imx_ccm.c',
60  'imx_rngc.c',
61))
62softmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-hpdmc.c', 'milkymist-pfpu.c'))
63softmmu_ss.add(when: 'CONFIG_MAINSTONE', if_true: files('mst_fpga.c'))
64softmmu_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
65  'npcm7xx_clk.c',
66  'npcm7xx_gcr.c',
67  'npcm7xx_rng.c',
68))
69softmmu_ss.add(when: 'CONFIG_OMAP', if_true: files(
70  'omap_clk.c',
71  'omap_gpmc.c',
72  'omap_l4.c',
73  'omap_sdrc.c',
74  'omap_tap.c',
75))
76softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files(
77  'bcm2835_mbox.c',
78  'bcm2835_mphi.c',
79  'bcm2835_property.c',
80  'bcm2835_rng.c',
81  'bcm2835_thermal.c',
82  'bcm2835_cprman.c',
83))
84softmmu_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_misc.c'))
85softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c', 'zynq-xadc.c'))
86softmmu_ss.add(when: 'CONFIG_STM32F2XX_SYSCFG', if_true: files('stm32f2xx_syscfg.c'))
87softmmu_ss.add(when: 'CONFIG_STM32F4XX_SYSCFG', if_true: files('stm32f4xx_syscfg.c'))
88softmmu_ss.add(when: 'CONFIG_STM32F4XX_EXTI', if_true: files('stm32f4xx_exti.c'))
89softmmu_ss.add(when: 'CONFIG_MPS2_FPGAIO', if_true: files('mps2-fpgaio.c'))
90softmmu_ss.add(when: 'CONFIG_MPS2_SCC', if_true: files('mps2-scc.c'))
91
92softmmu_ss.add(when: 'CONFIG_TZ_MPC', if_true: files('tz-mpc.c'))
93softmmu_ss.add(when: 'CONFIG_TZ_MSC', if_true: files('tz-msc.c'))
94softmmu_ss.add(when: 'CONFIG_TZ_PPC', if_true: files('tz-ppc.c'))
95softmmu_ss.add(when: 'CONFIG_IOTKIT_SECCTL', if_true: files('iotkit-secctl.c'))
96softmmu_ss.add(when: 'CONFIG_IOTKIT_SYSINFO', if_true: files('iotkit-sysinfo.c'))
97softmmu_ss.add(when: 'CONFIG_ARMSSE_CPUID', if_true: files('armsse-cpuid.c'))
98softmmu_ss.add(when: 'CONFIG_ARMSSE_MHU', if_true: files('armsse-mhu.c'))
99
100softmmu_ss.add(when: 'CONFIG_PVPANIC', if_true: files('pvpanic.c'))
101softmmu_ss.add(when: 'CONFIG_AUX', if_true: files('auxbus.c'))
102softmmu_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_scu.c', 'aspeed_sdmc.c', 'aspeed_xdma.c'))
103softmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-sysreg.c'))
104softmmu_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
105
106softmmu_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
107
108specific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))
109
110specific_ss.add(when: 'CONFIG_IMX', if_true: files('imx6_src.c'))
111specific_ss.add(when: 'CONFIG_IOTKIT_SYSCTL', if_true: files('iotkit-sysctl.c'))
112
113specific_ss.add(when: 'CONFIG_MAC_VIA', if_true: files('mac_via.c'))
114
115specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_cmgcr.c', 'mips_cpc.c'))
116specific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
117
118specific_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
119