Lines Matching +full:rs780e +full:- +full:pci
1 // SPDX-License-Identifier: GPL-2.0-or-later
54 loongson_p = &(boot_p->efi.smbios.lp); in prom_init_env()
57 ((u64)loongson_p + loongson_p->system_offset); in prom_init_env()
59 ((u64)loongson_p + loongson_p->cpu_offset); in prom_init_env()
61 ((u64)loongson_p + loongson_p->irq_offset); in prom_init_env()
63 ((u64)loongson_p + loongson_p->memory_offset); in prom_init_env()
65 cpu_clock_freq = ecpu->cpu_clock_freq; in prom_init_env()
66 loongson_sysconf.cputype = ecpu->cputype; in prom_init_env()
67 switch (ecpu->cputype) { in prom_init_env()
120 loongson_sysconf.nr_cpus = ecpu->nr_cpus; in prom_init_env()
121 loongson_sysconf.boot_cpu_id = ecpu->cpu_startup_core_id; in prom_init_env()
122 loongson_sysconf.reserved_cpus_mask = ecpu->reserved_cores_mask; in prom_init_env()
123 if (ecpu->nr_cpus > NR_CPUS || ecpu->nr_cpus == 0) in prom_init_env()
126 loongson_sysconf.cores_per_node - 1) / in prom_init_env()
129 loongson_sysconf.pci_mem_start_addr = eirq_source->pci_mem_start_addr; in prom_init_env()
130 loongson_sysconf.pci_mem_end_addr = eirq_source->pci_mem_end_addr; in prom_init_env()
131 loongson_sysconf.pci_io_base = eirq_source->pci_io_start_addr; in prom_init_env()
132 loongson_sysconf.dma_mask_bits = eirq_source->dma_mask_bits; in prom_init_env()
137 loongson_sysconf.restart_addr = boot_p->reset_system.ResetWarm; in prom_init_env()
138 loongson_sysconf.poweroff_addr = boot_p->reset_system.Shutdown; in prom_init_env()
139 loongson_sysconf.suspend_addr = boot_p->reset_system.DoSuspend; in prom_init_env()
141 loongson_sysconf.vgabios_addr = boot_p->efi.smbios.vga_bios; in prom_init_env()
147 if (esys->has_ec) in prom_init_env()
148 memcpy(loongson_sysconf.ecname, esys->ec_name, 32); in prom_init_env()
149 loongson_sysconf.workarounds |= esys->workarounds; in prom_init_env()
151 loongson_sysconf.nr_uarts = esys->nr_uarts; in prom_init_env()
152 if (esys->nr_uarts < 1 || esys->nr_uarts > MAX_UARTS) in prom_init_env()
154 memcpy(loongson_sysconf.uarts, esys->uarts, in prom_init_env()
157 loongson_sysconf.nr_sensors = esys->nr_sensors; in prom_init_env()
161 memcpy(loongson_sysconf.sensors, esys->sensors, in prom_init_env()
165 /* Read the ID of PCI host bridge to detect bridge type */ in prom_init_env()
178 pr_info("The bridge chip is RS780E or SR5690\n"); in prom_init_env()
179 loongson_sysconf.bridgetype = RS780E; in prom_init_env()
201 case RS780E: in prom_init_env()
210 if (loongson_sysconf.bridgetype == RS780E) in prom_init_env()
222 pr_err("Failed to determine built-in Loongson64 dtb\n"); in prom_init_env()