2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_APPLESMC', if_true: files('applesmc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_EDU', if_true: files('edu.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmcoreinfo.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugexit.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_PVPANIC_COMMON', if_true: files('pvpanic.c'))
|
2019-08-16 17:15:00 +03:00
|
|
|
|
|
|
|
# ARM devices
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_PL310', if_true: files('arm_l2x0.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_INTEGRATOR_DEBUG', if_true: files('arm_integrator_debug.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_A9SCU', if_true: files('a9scu.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ARM11SCU', if_true: files('arm11scu.c'))
|
2019-08-16 17:15:00 +03:00
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_ras.c'))
|
2021-08-12 12:33:32 +03:00
|
|
|
|
2019-08-16 17:15:00 +03:00
|
|
|
# Mac devices
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_MOS6522', if_true: files('mos6522.c'))
|
2023-10-04 11:37:48 +03:00
|
|
|
system_ss.add(when: 'CONFIG_DJMEMC', if_true: files('djmemc.c'))
|
2023-10-04 11:37:51 +03:00
|
|
|
system_ss.add(when: 'CONFIG_IOSB', if_true: files('iosb.c'))
|
2019-08-16 17:15:00 +03:00
|
|
|
|
2021-03-13 00:41:44 +03:00
|
|
|
# virt devices
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_VIRT_CTRL', if_true: files('virt_ctrl.c'))
|
2021-03-13 00:41:44 +03:00
|
|
|
|
2020-09-03 13:40:12 +03:00
|
|
|
# RISC-V devices
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_MCHP_PFSOC_DMC', if_true: files('mchp_pfsoc_dmc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_MCHP_PFSOC_IOSCB', if_true: files('mchp_pfsoc_ioscb.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_MCHP_PFSOC_SYSREG', if_true: files('mchp_pfsoc_sysreg.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_SIFIVE_TEST', if_true: files('sifive_test.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_SIFIVE_E_PRCI', if_true: files('sifive_e_prci.c'))
|
2023-06-27 17:12:14 +03:00
|
|
|
system_ss.add(when: 'CONFIG_SIFIVE_E_AON', if_true: files('sifive_e_aon.c'))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_SIFIVE_U_OTP', if_true: files('sifive_u_otp.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_SIFIVE_U_PRCI', if_true: files('sifive_u_prci.c'))
|
2020-09-03 13:40:12 +03:00
|
|
|
|
2019-08-16 17:15:00 +03:00
|
|
|
subdir('macio')
|
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem.c'))
|
2019-08-16 17:15:00 +03:00
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_SRAMC', if_true: files('allwinner-sramc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_A10_CCM', if_true: files('allwinner-a10-ccm.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_A10_DRAMC', if_true: files('allwinner-a10-dramc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-ccu.c'))
|
2019-08-16 17:15:00 +03:00
|
|
|
specific_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-cpucfg.c'))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-dramc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-sysctrl.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-sid.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-ccu.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-dramc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_AXP2XX_PMU', if_true: files('axp2xx.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', 'exynos4210_clk.c', 'exynos4210_rng.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_IMX', if_true: files(
|
2019-08-16 17:15:00 +03:00
|
|
|
'imx25_ccm.c',
|
|
|
|
'imx31_ccm.c',
|
|
|
|
'imx6_ccm.c',
|
2022-12-14 17:27:14 +03:00
|
|
|
'imx6_src.c',
|
2019-08-16 17:15:00 +03:00
|
|
|
'imx6ul_ccm.c',
|
|
|
|
'imx7_ccm.c',
|
2023-08-31 11:45:17 +03:00
|
|
|
'imx7_src.c',
|
2019-08-16 17:15:00 +03:00
|
|
|
'imx7_gpr.c',
|
|
|
|
'imx7_snvs.c',
|
|
|
|
'imx_ccm.c',
|
|
|
|
'imx_rngc.c',
|
|
|
|
))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
|
2020-09-11 08:20:49 +03:00
|
|
|
'npcm7xx_clk.c',
|
2020-09-11 08:20:48 +03:00
|
|
|
'npcm7xx_gcr.c',
|
2021-03-11 21:08:52 +03:00
|
|
|
'npcm7xx_mft.c',
|
2021-01-08 22:09:43 +03:00
|
|
|
'npcm7xx_pwm.c',
|
2020-10-24 00:06:35 +03:00
|
|
|
'npcm7xx_rng.c',
|
2020-09-11 08:20:48 +03:00
|
|
|
))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_OMAP', if_true: files(
|
2019-08-16 17:15:00 +03:00
|
|
|
'omap_clk.c',
|
|
|
|
))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_RASPI', if_true: files(
|
2019-08-16 17:15:00 +03:00
|
|
|
'bcm2835_mbox.c',
|
|
|
|
'bcm2835_mphi.c',
|
|
|
|
'bcm2835_property.c',
|
|
|
|
'bcm2835_rng.c',
|
|
|
|
'bcm2835_thermal.c',
|
2020-10-10 16:57:49 +03:00
|
|
|
'bcm2835_cprman.c',
|
2021-06-26 00:02:09 +03:00
|
|
|
'bcm2835_powermgt.c',
|
2019-08-16 17:15:00 +03:00
|
|
|
))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_misc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-crf.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-apu-ctrl.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files(
|
2024-01-18 23:06:35 +03:00
|
|
|
'xlnx-versal-crl.c',
|
2022-01-21 19:11:32 +03:00
|
|
|
'xlnx-versal-xramc.c',
|
|
|
|
'xlnx-versal-pmc-iou-slcr.c',
|
2023-08-31 19:56:55 +03:00
|
|
|
'xlnx-versal-cfu.c',
|
2023-08-31 19:56:54 +03:00
|
|
|
'xlnx-cfi-if.c',
|
2023-08-31 19:56:58 +03:00
|
|
|
'xlnx-versal-cframe-reg.c',
|
2022-01-21 19:11:32 +03:00
|
|
|
))
|
hw/misc: Introduce AMD/Xilix Versal TRNG device
This adds a non-cryptographic grade implementation of the
model for the True Random Number Generator (TRNG) component
in AMD/Xilinx Versal device family.
This implements all 3 modes defined by the actual hardware
specs, all of which selectable by guest software at will
at anytime:
1) PRNG mode, in which the generated sequence is required to
be reproducible after reseeded by the same 384-bit value
as supplied by guest software.
2) Test mode, in which the generated sequence is required to
be reproducible ater reseeded by the same 128-bit test
seed supplied by guest software.
3) TRNG mode, in which non-reproducible sequence is generated
based on periodic reseed by a suitable entropy source.
This model is only intended for non-real world testing of
guest software, where cryptographically strong PRNG or TRNG
is not needed.
This model supports versions 1 & 2 of the device, with
default to be version 2; the 'hw-version' uint32 property
can be set to 0x0100 to override the default.
Other implemented properties:
- 'forced-prng', uint64
When set to non-zero, mode 3's entropy source is implemented
as a deterministic sequence based on the given value and other
deterministic parameters.
This option allows the emulation to test guest software using
mode 3 and to reproduce data-dependent defects.
- 'fips-fault-events', uint32, bit-mask
bit 3: Triggers the SP800-90B entropy health test fault irq
bit 1: Triggers the FIPS 140-2 continuous test fault irq
Signed-off-by: Tong Ho <tong.ho@amd.com>
Message-id: 20231031184611.3029156-2-tong.ho@amd.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-10-31 21:46:09 +03:00
|
|
|
system_ss.add(when: 'CONFIG_XLNX_VERSAL_TRNG', if_true: files(
|
|
|
|
'xlnx-versal-trng.c',
|
|
|
|
))
|
2024-10-14 19:05:50 +03:00
|
|
|
system_ss.add(when: 'CONFIG_STM32_RCC', if_true: files('stm32_rcc.c'))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_STM32F2XX_SYSCFG', if_true: files('stm32f2xx_syscfg.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_STM32F4XX_SYSCFG', if_true: files('stm32f4xx_syscfg.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_STM32F4XX_EXTI', if_true: files('stm32f4xx_exti.c'))
|
2024-01-09 19:06:02 +03:00
|
|
|
system_ss.add(when: 'CONFIG_STM32L4X5_EXTI', if_true: files('stm32l4x5_exti.c'))
|
2024-01-09 22:41:57 +03:00
|
|
|
system_ss.add(when: 'CONFIG_STM32L4X5_SYSCFG', if_true: files('stm32l4x5_syscfg.c'))
|
2024-03-03 17:06:36 +03:00
|
|
|
system_ss.add(when: 'CONFIG_STM32L4X5_RCC', if_true: files('stm32l4x5_rcc.c'))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_MPS2_FPGAIO', if_true: files('mps2-fpgaio.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_MPS2_SCC', if_true: files('mps2-scc.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_TZ_MPC', if_true: files('tz-mpc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_TZ_MSC', if_true: files('tz-msc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_TZ_PPC', if_true: files('tz-ppc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_IOTKIT_SECCTL', if_true: files('iotkit-secctl.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_IOTKIT_SYSCTL', if_true: files('iotkit-sysctl.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_IOTKIT_SYSINFO', if_true: files('iotkit-sysinfo.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ARMSSE_CPU_PWRCTRL', if_true: files('armsse-cpu-pwrctrl.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ARMSSE_CPUID', if_true: files('armsse-cpuid.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ARMSSE_MHU', if_true: files('armsse-mhu.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_PVPANIC_ISA', if_true: files('pvpanic-isa.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_PVPANIC_PCI', if_true: files('pvpanic-pci.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_AUX', if_true: files('auxbus.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files(
|
2021-05-01 11:03:51 +03:00
|
|
|
'aspeed_hace.c',
|
2022-01-11 11:45:45 +03:00
|
|
|
'aspeed_i3c.c',
|
2021-03-09 14:01:28 +03:00
|
|
|
'aspeed_lpc.c',
|
|
|
|
'aspeed_scu.c',
|
2022-02-18 11:18:10 +03:00
|
|
|
'aspeed_sbc.c',
|
2021-03-09 14:01:28 +03:00
|
|
|
'aspeed_sdmc.c',
|
2022-06-30 10:21:14 +03:00
|
|
|
'aspeed_xdma.c',
|
2024-06-04 08:44:23 +03:00
|
|
|
'aspeed_peci.c',
|
|
|
|
'aspeed_sli.c'))
|
2021-03-09 14:01:28 +03:00
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-sysreg.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
|
2019-08-16 17:15:00 +03:00
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
|
2019-08-16 17:15:00 +03:00
|
|
|
|
2023-08-23 11:14:42 +03:00
|
|
|
system_ss.add(when: 'CONFIG_I2C_ECHO', if_true: files('i2c-echo.c'))
|
2023-03-02 15:57:50 +03:00
|
|
|
|
2019-08-16 17:15:00 +03:00
|
|
|
specific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))
|
|
|
|
|
|
|
|
specific_ss.add(when: 'CONFIG_MAC_VIA', if_true: files('mac_via.c'))
|
|
|
|
|
|
|
|
specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_cmgcr.c', 'mips_cpc.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
|
2020-08-26 17:19:51 +03:00
|
|
|
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
|
2022-05-04 12:25:52 +03:00
|
|
|
|
|
|
|
# HPPA devices
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add(when: 'CONFIG_LASI', if_true: files('lasi.c'))
|