Lines Matching refs:loongson_sysconf
29 struct loongson_system_configuration loongson_sysconf; variable
87 loongson_sysconf.cputype = ecpu->cputype; in prom_lefi_init_env()
91 loongson_sysconf.cores_per_node = 4; in prom_lefi_init_env()
92 loongson_sysconf.cores_per_package = 4; in prom_lefi_init_env()
109 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_lefi_init_env()
113 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_lefi_init_env()
114 loongson_sysconf.cores_per_package = 8; in prom_lefi_init_env()
131 loongson_sysconf.workarounds = WORKAROUND_CPUHOTPLUG; in prom_lefi_init_env()
134 loongson_sysconf.cores_per_node = 1; in prom_lefi_init_env()
135 loongson_sysconf.cores_per_package = 1; in prom_lefi_init_env()
139 loongson_sysconf.nr_cpus = ecpu->nr_cpus; in prom_lefi_init_env()
140 loongson_sysconf.boot_cpu_id = ecpu->cpu_startup_core_id; in prom_lefi_init_env()
141 loongson_sysconf.reserved_cpus_mask = ecpu->reserved_cores_mask; in prom_lefi_init_env()
143 loongson_sysconf.nr_cpus = NR_CPUS; in prom_lefi_init_env()
144 loongson_sysconf.nr_nodes = (loongson_sysconf.nr_cpus + in prom_lefi_init_env()
145 loongson_sysconf.cores_per_node - 1) / in prom_lefi_init_env()
146 loongson_sysconf.cores_per_node; in prom_lefi_init_env()
148 loongson_sysconf.dma_mask_bits = eirq_source->dma_mask_bits; in prom_lefi_init_env()
149 if (loongson_sysconf.dma_mask_bits < 32 || in prom_lefi_init_env()
150 loongson_sysconf.dma_mask_bits > 64) in prom_lefi_init_env()
151 loongson_sysconf.dma_mask_bits = 32; in prom_lefi_init_env()
153 loongson_sysconf.restart_addr = boot_p->reset_system.ResetWarm; in prom_lefi_init_env()
154 loongson_sysconf.poweroff_addr = boot_p->reset_system.Shutdown; in prom_lefi_init_env()
155 loongson_sysconf.suspend_addr = boot_p->reset_system.DoSuspend; in prom_lefi_init_env()
157 loongson_sysconf.vgabios_addr = boot_p->efi.smbios.vga_bios; in prom_lefi_init_env()
159 loongson_sysconf.poweroff_addr, loongson_sysconf.restart_addr, in prom_lefi_init_env()
160 loongson_sysconf.vgabios_addr); in prom_lefi_init_env()
162 loongson_sysconf.workarounds |= esys->workarounds; in prom_lefi_init_env()
173 loongson_sysconf.bridgetype = LS7A; in prom_lefi_init_env()
174 loongson_sysconf.early_config = ls7a_early_config; in prom_lefi_init_env()
179 loongson_sysconf.bridgetype = RS780E; in prom_lefi_init_env()
180 loongson_sysconf.early_config = rs780e_early_config; in prom_lefi_init_env()
184 loongson_sysconf.bridgetype = VIRTUAL; in prom_lefi_init_env()
185 loongson_sysconf.early_config = virtual_early_config; in prom_lefi_init_env()
197 switch (loongson_sysconf.bridgetype) { in prom_lefi_init_env()
210 if (loongson_sysconf.bridgetype == RS780E) in prom_lefi_init_env()
217 if (loongson_sysconf.bridgetype == LS7A) in prom_lefi_init_env()