Lines Matching +full:rs780e +full:- +full:pci

1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <linux/dma-map-ops.h>
71 loongson_p = &(boot_p->efi.smbios.lp); in prom_lefi_init_env()
74 ((u64)loongson_p + loongson_p->system_offset); in prom_lefi_init_env()
76 ((u64)loongson_p + loongson_p->cpu_offset); in prom_lefi_init_env()
78 ((u64)loongson_p + loongson_p->boarddev_table_offset); in prom_lefi_init_env()
80 ((u64)loongson_p + loongson_p->interface_offset); in prom_lefi_init_env()
82 ((u64)loongson_p + loongson_p->special_offset); in prom_lefi_init_env()
84 ((u64)loongson_p + loongson_p->irq_offset); in prom_lefi_init_env()
86 ((u64)loongson_p + loongson_p->memory_offset); in prom_lefi_init_env()
88 cpu_clock_freq = ecpu->cpu_clock_freq; in prom_lefi_init_env()
89 loongson_sysconf.cputype = ecpu->cputype; in prom_lefi_init_env()
90 switch (ecpu->cputype) { in prom_lefi_init_env()
147 loongson_sysconf.nr_cpus = ecpu->nr_cpus; in prom_lefi_init_env()
148 loongson_sysconf.boot_cpu_id = ecpu->cpu_startup_core_id; in prom_lefi_init_env()
149 loongson_sysconf.reserved_cpus_mask = ecpu->reserved_cores_mask; in prom_lefi_init_env()
150 if (ecpu->nr_cpus > NR_CPUS || ecpu->nr_cpus == 0) in prom_lefi_init_env()
153 loongson_sysconf.cores_per_node - 1) / in prom_lefi_init_env()
156 loongson_sysconf.dma_mask_bits = eirq_source->dma_mask_bits; in prom_lefi_init_env()
162 dma_default_coherent = !eirq_source->dma_noncoherent; in prom_lefi_init_env()
167 loongson_sysconf.restart_addr = boot_p->reset_system.ResetWarm; in prom_lefi_init_env()
168 loongson_sysconf.poweroff_addr = boot_p->reset_system.Shutdown; in prom_lefi_init_env()
169 loongson_sysconf.suspend_addr = boot_p->reset_system.DoSuspend; in prom_lefi_init_env()
171 loongson_sysconf.vgabios_addr = boot_p->efi.smbios.vga_bios; in prom_lefi_init_env()
176 loongson_sysconf.workarounds |= esys->workarounds; in prom_lefi_init_env()
180 /* Read the ID of PCI host bridge to detect bridge type */ in prom_lefi_init_env()
192 pr_info("The bridge chip is RS780E or SR5690\n"); in prom_lefi_init_env()
193 loongson_sysconf.bridgetype = RS780E; in prom_lefi_init_env()
215 case RS780E: in prom_lefi_init_env()
224 if (loongson_sysconf.bridgetype == RS780E) in prom_lefi_init_env()
238 pr_err("Failed to determine built-in Loongson64 dtb\n"); in prom_lefi_init_env()