| 1 | ppc_ss = ss.source_set() |
| 2 | ppc_ss.add(files( |
| 3 | 'ppc.c', |
| 4 | 'ppc_booke.c', |
| 5 | )) |
| 6 | ppc_ss.add(when: 'CONFIG_FDT_PPC', if_true: files('fdt.c')) |
| 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', |
| 16 | 'spapr_nested.c', |
| 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', |
| 27 | 'spapr_rtas_ddw.c', |
| 28 | 'spapr_numa.c', |
| 29 | 'spapr_fadump.c', |
| 30 | 'pef.c', |
| 31 | )) |
| 32 | ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_TCG'], if_true: files( |
| 33 | 'spapr_vhyp_mmu.c', |
| 34 | )) |
| 35 | ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c')) |
| 36 | if host_os == 'linux' |
| 37 | ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files( |
| 38 | 'spapr_pci_vfio.c', |
| 39 | )) |
| 40 | endif |
| 41 | |
| 42 | # IBM PowerNV |
| 43 | ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files( |
| 44 | 'pnv.c', |
| 45 | 'pnv_xscom.c', |
| 46 | 'pnv_adu.c', |
| 47 | 'pnv_core.c', |
| 48 | 'pnv_i2c.c', |
| 49 | 'pnv_lpc.c', |
| 50 | 'pnv_psi.c', |
| 51 | 'pnv_chiptod.c', |
| 52 | 'pnv_occ.c', |
| 53 | 'pnv_sbe.c', |
| 54 | 'pnv_bmc.c', |
| 55 | 'pnv_homer.c', |
| 56 | 'pnv_pnor.c', |
| 57 | 'pnv_nest_pervasive.c', |
| 58 | 'pnv_n1_chiplet.c', |
| 59 | 'pnv_mpipl.c', |
| 60 | 'pnv_nmmu.c' |
| 61 | )) |
| 62 | # PowerPC 4xx boards |
| 63 | ppc_ss.add(when: 'CONFIG_PPC405', if_true: files( |
| 64 | 'ppe42_machine.c')) |
| 65 | ppc_ss.add(when: 'CONFIG_PPC440', if_true: files( |
| 66 | 'ppc440_bamboo.c', |
| 67 | 'ppc440_uc.c')) |
| 68 | ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files( |
| 69 | 'ppc4xx_devs.c', |
| 70 | 'ppc4xx_sdram.c')) |
| 71 | ppc_ss.add(when: 'CONFIG_SAM460EX', if_true: files('sam460ex.c')) |
| 72 | # PReP |
| 73 | ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep.c')) |
| 74 | ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep_systemio.c')) |
| 75 | ppc_ss.add(when: 'CONFIG_RS6000_MC', if_true: files('rs6000_mc.c')) |
| 76 | # OldWorld PowerMac |
| 77 | ppc_ss.add(when: 'CONFIG_MAC_OLDWORLD', if_true: files('mac_oldworld.c')) |
| 78 | # NewWorld PowerMac |
| 79 | ppc_ss.add(when: 'CONFIG_MAC_NEWWORLD', if_true: files('mac_newworld.c')) |
| 80 | # e500 |
| 81 | ppc_ss.add(when: 'CONFIG_E500PLAT', if_true: files('e500plat.c')) |
| 82 | ppc_ss.add(when: 'CONFIG_MPC8544DS', if_true: files('mpc8544ds.c')) |
| 83 | ppc_ss.add(when: 'CONFIG_E500', if_true: files( |
| 84 | 'e500.c', |
| 85 | 'mpc8544_guts.c', |
| 86 | 'ppce500_spin.c' |
| 87 | )) |
| 88 | # PowerPC 440 Xilinx ML507 reference board. |
| 89 | ppc_ss.add(when: 'CONFIG_VIRTEX', if_true: files('virtex_ml507.c')) |
| 90 | # AmigaOne |
| 91 | ppc_ss.add(when: 'CONFIG_AMIGAONE', if_true: files('amigaone.c')) |
| 92 | # Pegasos |
| 93 | ppc_ss.add(when: 'CONFIG_PEGASOS', if_true: files('pegasos.c')) |
| 94 | |
| 95 | ppc_ss.add(when: 'CONFIG_VOF', if_true: files('vof.c')) |
| 96 | ppc_ss.add(when: ['CONFIG_VOF', 'CONFIG_PSERIES'], if_true: files('spapr_vof.c')) |
| 97 | |
| 98 | hw_arch += {'ppc': ppc_ss} |