Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 1 | ppc_ss = ss.source_set() |
| 2 | ppc_ss.add(files( |
| 3 | 'ppc.c', |
| 4 | 'ppc_booke.c', |
| 5 | )) |
Paolo Bonzini | 727bb5b | 2024-05-07 12:22:31 +0200 | [diff] [blame] | 6 | ppc_ss.add(when: 'CONFIG_FDT_PPC', if_true: files('fdt.c')) |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 7 | ppc_ss.add(when: 'CONFIG_FW_CFG_PPC', if_true: files('fw_cfg.c')) |
| 8 | |
| 9 | # IBM pSeries (sPAPR) |
| 10 | ppc_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 Piggin | 6b8a053 | 2023-06-20 20:57:37 +1000 | [diff] [blame] | 16 | 'spapr_nested.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 17 | '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 Barboza | 1eee995 | 2020-09-01 09:56:39 -0300 | [diff] [blame] | 27 | 'spapr_rtas_ddw.c', |
| 28 | 'spapr_numa.c', |
David Gibson | 6c8ebe3 | 2020-04-08 15:10:03 +1000 | [diff] [blame] | 29 | 'pef.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 30 | )) |
Lucas Mateus Castro (alqotel) | 962104f | 2021-05-06 13:39:38 -0300 | [diff] [blame] | 31 | ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_TCG'], if_true: files( |
Philippe Mathieu-Daudé | 6c56899 | 2024-01-18 23:04:09 +1000 | [diff] [blame] | 32 | 'spapr_vhyp_mmu.c', |
Lucas Mateus Castro (alqotel) | 962104f | 2021-05-06 13:39:38 -0300 | [diff] [blame] | 33 | )) |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 34 | ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c')) |
Paolo Bonzini | d0cda6f | 2023-11-03 09:17:48 +0100 | [diff] [blame] | 35 | if host_os == 'linux' |
Paolo Bonzini | 53e8868 | 2023-05-26 12:20:39 +0200 | [diff] [blame] | 36 | ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files( |
| 37 | 'spapr_pci_vfio.c', |
| 38 | )) |
| 39 | endif |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 40 | |
| 41 | # IBM PowerNV |
| 42 | ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files( |
| 43 | 'pnv.c', |
| 44 | 'pnv_xscom.c', |
Nicholas Piggin | 53f18b3 | 2024-02-23 22:34:56 +1000 | [diff] [blame] | 45 | 'pnv_adu.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 46 | 'pnv_core.c', |
Cédric Le Goater | 263b81e | 2023-10-16 17:20:12 -0500 | [diff] [blame] | 47 | 'pnv_i2c.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 48 | 'pnv_lpc.c', |
| 49 | 'pnv_psi.c', |
Nicholas Piggin | 9a69950 | 2022-08-11 22:08:34 +1000 | [diff] [blame] | 50 | 'pnv_chiptod.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 51 | 'pnv_occ.c', |
Nicholas Piggin | 0bf4d77 | 2022-08-11 19:37:26 +1000 | [diff] [blame] | 52 | 'pnv_sbe.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 53 | 'pnv_bmc.c', |
| 54 | 'pnv_homer.c', |
| 55 | 'pnv_pnor.c', |
Chalapathi V | 1adf247 | 2024-01-23 16:37:01 +1000 | [diff] [blame] | 56 | 'pnv_nest_pervasive.c', |
Chalapathi V | 5706b00 | 2024-01-23 16:37:02 +1000 | [diff] [blame] | 57 | 'pnv_n1_chiplet.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 58 | )) |
| 59 | # PowerPC 4xx boards |
| 60 | ppc_ss.add(when: 'CONFIG_PPC405', if_true: files( |
| 61 | 'ppc405_boards.c', |
| 62 | 'ppc405_uc.c')) |
| 63 | ppc_ss.add(when: 'CONFIG_PPC440', if_true: files( |
| 64 | 'ppc440_bamboo.c', |
Philippe Mathieu-Daudé | 22dc8a4 | 2023-10-11 06:38:18 +0200 | [diff] [blame] | 65 | 'ppc440_uc.c')) |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 66 | ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files( |
BALATON Zoltan | 2a48dd7 | 2022-10-19 18:02:52 +0200 | [diff] [blame] | 67 | 'ppc4xx_devs.c', |
BALATON Zoltan | 2a48dd7 | 2022-10-19 18:02:52 +0200 | [diff] [blame] | 68 | 'ppc4xx_sdram.c')) |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 69 | ppc_ss.add(when: 'CONFIG_SAM460EX', if_true: files('sam460ex.c')) |
| 70 | # PReP |
| 71 | ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep.c')) |
| 72 | ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep_systemio.c')) |
| 73 | ppc_ss.add(when: 'CONFIG_RS6000_MC', if_true: files('rs6000_mc.c')) |
| 74 | # OldWorld PowerMac |
| 75 | ppc_ss.add(when: 'CONFIG_MAC_OLDWORLD', if_true: files('mac_oldworld.c')) |
| 76 | # NewWorld PowerMac |
| 77 | ppc_ss.add(when: 'CONFIG_MAC_NEWWORLD', if_true: files('mac_newworld.c')) |
| 78 | # e500 |
Bernhard Beschow | 8cf7b32 | 2022-10-03 22:31:30 +0200 | [diff] [blame] | 79 | ppc_ss.add(when: 'CONFIG_E500PLAT', if_true: files('e500plat.c')) |
| 80 | ppc_ss.add(when: 'CONFIG_MPC8544DS', if_true: files('mpc8544ds.c')) |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 81 | ppc_ss.add(when: 'CONFIG_E500', if_true: files( |
| 82 | 'e500.c', |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 83 | 'mpc8544_guts.c', |
| 84 | 'ppce500_spin.c' |
| 85 | )) |
| 86 | # PowerPC 440 Xilinx ML507 reference board. |
| 87 | ppc_ss.add(when: 'CONFIG_VIRTEX', if_true: files('virtex_ml507.c')) |
BALATON Zoltan | d9656f8 | 2023-11-07 19:40:17 +0100 | [diff] [blame] | 88 | # AmigaOne |
| 89 | ppc_ss.add(when: 'CONFIG_AMIGAONE', if_true: files('amigaone.c')) |
BALATON Zoltan | ba7e5ac | 2021-03-25 14:50:39 +0100 | [diff] [blame] | 90 | # Pegasos2 |
| 91 | ppc_ss.add(when: 'CONFIG_PEGASOS2', if_true: files('pegasos2.c')) |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 92 | |
Alexey Kardashevskiy | fc8c745 | 2021-06-25 15:51:55 +1000 | [diff] [blame] | 93 | ppc_ss.add(when: 'CONFIG_VOF', if_true: files('vof.c')) |
| 94 | ppc_ss.add(when: ['CONFIG_VOF', 'CONFIG_PSERIES'], if_true: files('spapr_vof.c')) |
| 95 | |
Marc-André Lureau | 2c44220 | 2019-08-17 13:55:58 +0400 | [diff] [blame] | 96 | hw_arch += {'ppc': ppc_ss} |