blob: 7cd91898699e63468a5461010b7fe6b81bb1ac7e [file] [log] [blame]
Marc-André Lureau2c442202019-08-17 13:55:58 +04001ppc_ss = ss.source_set()
2ppc_ss.add(files(
3 'ppc.c',
4 'ppc_booke.c',
5))
Paolo Bonzini727bb5b2024-05-07 12:22:31 +02006ppc_ss.add(when: 'CONFIG_FDT_PPC', if_true: files('fdt.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +04007ppc_ss.add(when: 'CONFIG_FW_CFG_PPC', if_true: files('fw_cfg.c'))
8
9# IBM pSeries (sPAPR)
10ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files(
11 'spapr.c',
12 'spapr_caps.c',
13 'spapr_vio.c',
14 'spapr_events.c',
15 'spapr_hcall.c',
Nicholas Piggin6b8a0532023-06-20 20:57:37 +100016 'spapr_nested.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040017 'spapr_iommu.c',
18 'spapr_rtas.c',
19 'spapr_pci.c',
20 'spapr_rtc.c',
21 'spapr_drc.c',
22 'spapr_cpu_core.c',
23 'spapr_ovec.c',
24 'spapr_irq.c',
25 'spapr_tpm_proxy.c',
26 'spapr_nvdimm.c',
Daniel Henrique Barboza1eee9952020-09-01 09:56:39 -030027 'spapr_rtas_ddw.c',
28 'spapr_numa.c',
David Gibson6c8ebe32020-04-08 15:10:03 +100029 'pef.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040030))
Lucas Mateus Castro (alqotel)962104f2021-05-06 13:39:38 -030031ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_TCG'], if_true: files(
Philippe Mathieu-Daudé6c568992024-01-18 23:04:09 +100032 'spapr_vhyp_mmu.c',
Lucas Mateus Castro (alqotel)962104f2021-05-06 13:39:38 -030033))
Marc-André Lureau2c442202019-08-17 13:55:58 +040034ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c'))
Paolo Bonzinid0cda6f2023-11-03 09:17:48 +010035if host_os == 'linux'
Paolo Bonzini53e88682023-05-26 12:20:39 +020036 ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files(
37 'spapr_pci_vfio.c',
38 ))
39endif
Marc-André Lureau2c442202019-08-17 13:55:58 +040040
41# IBM PowerNV
42ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files(
43 'pnv.c',
44 'pnv_xscom.c',
Nicholas Piggin53f18b32024-02-23 22:34:56 +100045 'pnv_adu.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040046 'pnv_core.c',
Cédric Le Goater263b81e2023-10-16 17:20:12 -050047 'pnv_i2c.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040048 'pnv_lpc.c',
49 'pnv_psi.c',
Nicholas Piggin9a699502022-08-11 22:08:34 +100050 'pnv_chiptod.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040051 'pnv_occ.c',
Nicholas Piggin0bf4d772022-08-11 19:37:26 +100052 'pnv_sbe.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040053 'pnv_bmc.c',
54 'pnv_homer.c',
55 'pnv_pnor.c',
Chalapathi V1adf2472024-01-23 16:37:01 +100056 'pnv_nest_pervasive.c',
Chalapathi V5706b002024-01-23 16:37:02 +100057 'pnv_n1_chiplet.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040058))
59# PowerPC 4xx boards
60ppc_ss.add(when: 'CONFIG_PPC405', if_true: files(
61 'ppc405_boards.c',
62 'ppc405_uc.c'))
63ppc_ss.add(when: 'CONFIG_PPC440', if_true: files(
64 'ppc440_bamboo.c',
Philippe Mathieu-Daudé22dc8a42023-10-11 06:38:18 +020065 'ppc440_uc.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +040066ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files(
BALATON Zoltan2a48dd72022-10-19 18:02:52 +020067 'ppc4xx_devs.c',
BALATON Zoltan2a48dd72022-10-19 18:02:52 +020068 'ppc4xx_sdram.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +040069ppc_ss.add(when: 'CONFIG_SAM460EX', if_true: files('sam460ex.c'))
70# PReP
71ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep.c'))
72ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep_systemio.c'))
73ppc_ss.add(when: 'CONFIG_RS6000_MC', if_true: files('rs6000_mc.c'))
74# OldWorld PowerMac
75ppc_ss.add(when: 'CONFIG_MAC_OLDWORLD', if_true: files('mac_oldworld.c'))
76# NewWorld PowerMac
77ppc_ss.add(when: 'CONFIG_MAC_NEWWORLD', if_true: files('mac_newworld.c'))
78# e500
Bernhard Beschow8cf7b322022-10-03 22:31:30 +020079ppc_ss.add(when: 'CONFIG_E500PLAT', if_true: files('e500plat.c'))
80ppc_ss.add(when: 'CONFIG_MPC8544DS', if_true: files('mpc8544ds.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +040081ppc_ss.add(when: 'CONFIG_E500', if_true: files(
82 'e500.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040083 'mpc8544_guts.c',
84 'ppce500_spin.c'
85))
86# PowerPC 440 Xilinx ML507 reference board.
87ppc_ss.add(when: 'CONFIG_VIRTEX', if_true: files('virtex_ml507.c'))
BALATON Zoltand9656f82023-11-07 19:40:17 +010088# AmigaOne
89ppc_ss.add(when: 'CONFIG_AMIGAONE', if_true: files('amigaone.c'))
BALATON Zoltanba7e5ac2021-03-25 14:50:39 +010090# Pegasos2
91ppc_ss.add(when: 'CONFIG_PEGASOS2', if_true: files('pegasos2.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +040092
Alexey Kardashevskiyfc8c7452021-06-25 15:51:55 +100093ppc_ss.add(when: 'CONFIG_VOF', if_true: files('vof.c'))
94ppc_ss.add(when: ['CONFIG_VOF', 'CONFIG_PSERIES'], if_true: files('spapr_vof.c'))
95
Marc-André Lureau2c442202019-08-17 13:55:58 +040096hw_arch += {'ppc': ppc_ss}