1ppc_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', 28 'spapr_rtas_ddw.c' 29)) 30ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c')) 31ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_LINUX'], if_true: files( 32 'spapr_pci_vfio.c', 33 'spapr_pci_nvlink2.c' 34)) 35 36# IBM PowerNV 37ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files( 38 'pnv.c', 39 'pnv_xscom.c', 40 'pnv_core.c', 41 'pnv_lpc.c', 42 'pnv_psi.c', 43 'pnv_occ.c', 44 'pnv_bmc.c', 45 'pnv_homer.c', 46 'pnv_pnor.c', 47)) 48# PowerPC 4xx boards 49ppc_ss.add(when: 'CONFIG_PPC405', if_true: files( 50 'ppc405_boards.c', 51 'ppc405_uc.c')) 52ppc_ss.add(when: 'CONFIG_PPC440', if_true: files( 53 'ppc440_bamboo.c', 54 'ppc440_pcix.c', 'ppc440_uc.c')) 55ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files( 56 'ppc4xx_pci.c', 57 'ppc4xx_devs.c')) 58ppc_ss.add(when: 'CONFIG_SAM460EX', if_true: files('sam460ex.c')) 59# PReP 60ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep.c')) 61ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep_systemio.c')) 62ppc_ss.add(when: 'CONFIG_RS6000_MC', if_true: files('rs6000_mc.c')) 63# OldWorld PowerMac 64ppc_ss.add(when: 'CONFIG_MAC_OLDWORLD', if_true: files('mac_oldworld.c')) 65# NewWorld PowerMac 66ppc_ss.add(when: 'CONFIG_MAC_NEWWORLD', if_true: files('mac_newworld.c')) 67# e500 68ppc_ss.add(when: 'CONFIG_E500', if_true: files( 69 'e500.c', 70 'mpc8544ds.c', 71 'e500plat.c' 72)) 73ppc_ss.add(when: 'CONFIG_E500', if_true: files( 74 'mpc8544_guts.c', 75 'ppce500_spin.c' 76)) 77# PowerPC 440 Xilinx ML507 reference board. 78ppc_ss.add(when: 'CONFIG_VIRTEX', if_true: files('virtex_ml507.c')) 79 80hw_arch += {'ppc': ppc_ss} 81