blob: c927337da0ed1df8aa5a2a5588256f4f26257dc6 [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))
6ppc_ss.add(when: 'CONFIG_FDT_PPC', if_true: [files(
7 'fdt.c',
8), fdt])
9ppc_ss.add(when: 'CONFIG_FW_CFG_PPC', if_true: files('fw_cfg.c'))
10
11# IBM pSeries (sPAPR)
12ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files(
13 'spapr.c',
14 'spapr_caps.c',
15 'spapr_vio.c',
16 'spapr_events.c',
17 'spapr_hcall.c',
18 'spapr_iommu.c',
19 'spapr_rtas.c',
20 'spapr_pci.c',
21 'spapr_rtc.c',
22 'spapr_drc.c',
23 'spapr_cpu_core.c',
24 'spapr_ovec.c',
25 'spapr_irq.c',
26 'spapr_tpm_proxy.c',
27 'spapr_nvdimm.c',
Daniel Henrique Barboza1eee9952020-09-01 09:56:39 -030028 'spapr_rtas_ddw.c',
29 'spapr_numa.c',
David Gibson6c8ebe32020-04-08 15:10:03 +100030 'pef.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040031))
Lucas Mateus Castro (alqotel)962104f2021-05-06 13:39:38 -030032ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_TCG'], if_true: files(
33 'spapr_softmmu.c',
34))
Marc-André Lureau2c442202019-08-17 13:55:58 +040035ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c'))
36ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_LINUX'], if_true: files(
37 'spapr_pci_vfio.c',
38 'spapr_pci_nvlink2.c'
39))
40
41# IBM PowerNV
42ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files(
43 'pnv.c',
44 'pnv_xscom.c',
45 'pnv_core.c',
46 'pnv_lpc.c',
47 'pnv_psi.c',
48 'pnv_occ.c',
Nicholas Piggin0bf4d772022-08-11 19:37:26 +100049 'pnv_sbe.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040050 'pnv_bmc.c',
51 'pnv_homer.c',
52 'pnv_pnor.c',
53))
54# PowerPC 4xx boards
55ppc_ss.add(when: 'CONFIG_PPC405', if_true: files(
56 'ppc405_boards.c',
57 'ppc405_uc.c'))
58ppc_ss.add(when: 'CONFIG_PPC440', if_true: files(
59 'ppc440_bamboo.c',
60 'ppc440_pcix.c', 'ppc440_uc.c'))
61ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files(
BALATON Zoltan2a48dd72022-10-19 18:02:52 +020062 'ppc4xx_devs.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040063 'ppc4xx_pci.c',
BALATON Zoltan2a48dd72022-10-19 18:02:52 +020064 'ppc4xx_sdram.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +040065ppc_ss.add(when: 'CONFIG_SAM460EX', if_true: files('sam460ex.c'))
66# PReP
67ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep.c'))
68ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep_systemio.c'))
69ppc_ss.add(when: 'CONFIG_RS6000_MC', if_true: files('rs6000_mc.c'))
70# OldWorld PowerMac
71ppc_ss.add(when: 'CONFIG_MAC_OLDWORLD', if_true: files('mac_oldworld.c'))
72# NewWorld PowerMac
73ppc_ss.add(when: 'CONFIG_MAC_NEWWORLD', if_true: files('mac_newworld.c'))
74# e500
Bernhard Beschow8cf7b322022-10-03 22:31:30 +020075ppc_ss.add(when: 'CONFIG_E500PLAT', if_true: files('e500plat.c'))
76ppc_ss.add(when: 'CONFIG_MPC8544DS', if_true: files('mpc8544ds.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +040077ppc_ss.add(when: 'CONFIG_E500', if_true: files(
78 'e500.c',
Marc-André Lureau2c442202019-08-17 13:55:58 +040079 'mpc8544_guts.c',
80 'ppce500_spin.c'
81))
82# PowerPC 440 Xilinx ML507 reference board.
83ppc_ss.add(when: 'CONFIG_VIRTEX', if_true: files('virtex_ml507.c'))
BALATON Zoltanba7e5ac2021-03-25 14:50:39 +010084# Pegasos2
85ppc_ss.add(when: 'CONFIG_PEGASOS2', if_true: files('pegasos2.c'))
Marc-André Lureau2c442202019-08-17 13:55:58 +040086
Alexey Kardashevskiyfc8c7452021-06-25 15:51:55 +100087ppc_ss.add(when: 'CONFIG_VOF', if_true: files('vof.c'))
88ppc_ss.add(when: ['CONFIG_VOF', 'CONFIG_PSERIES'], if_true: files('spapr_vof.c'))
89
Marc-André Lureau2c442202019-08-17 13:55:58 +040090hw_arch += {'ppc': ppc_ss}