Home
last modified time | relevance | path

Searched refs:loongson_sysconf (Results 1 – 14 of 14) sorted by relevance

/arch/mips/loongson64/common/
Denv.c29 struct loongson_system_configuration loongson_sysconf; variable
68 loongson_sysconf.nr_uarts = 1; in prom_init_env()
92 loongson_sysconf.cputype = ecpu->cputype; in prom_init_env()
94 loongson_sysconf.cores_per_node = 4; in prom_init_env()
95 loongson_sysconf.cores_per_package = 4; in prom_init_env()
108 loongson_sysconf.ht_control_base = 0x90000EFDFB000000; in prom_init_env()
109 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_init_env()
111 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_init_env()
112 loongson_sysconf.cores_per_package = 8; in prom_init_env()
129 loongson_sysconf.ht_control_base = 0x90001EFDFB000000; in prom_init_env()
[all …]
Dserial.c76 if (loongson_sysconf.uarts[0].uartclk) in serial_init()
78 loongson_sysconf.uarts[0].uartclk; in serial_init()
80 for (i = 1; i < loongson_sysconf.nr_uarts; i++) { in serial_init()
81 iotype = loongson_sysconf.uarts[i].iotype; in serial_init()
83 loongson_uart_base[i] = loongson_sysconf.uarts[i].uart_base; in serial_init()
87 MIPS_CPU_IRQ_BASE + loongson_sysconf.uarts[i].int_offset; in serial_init()
94 loongson_sysconf.uarts[i].int_offset; in serial_init()
100 loongson_sysconf.uarts[i].uartclk; in serial_init()
105 memset(&uart8250_data[mips_machtype][loongson_sysconf.nr_uarts], in serial_init()
Dreset.c48 void (*fw_restart)(void) = (void *)loongson_sysconf.restart_addr; in loongson_restart()
64 void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr; in loongson_poweroff()
Dpci.c89 loongson_pci_mem_resource.start = loongson_sysconf.pci_mem_start_addr; in pcibios_init()
90 loongson_pci_mem_resource.end = loongson_sysconf.pci_mem_end_addr; in pcibios_init()
Ddma-swiotlb.c91 if (mask > DMA_BIT_MASK(loongson_sysconf.dma_mask_bits)) { in loongson_dma_set_mask()
92 *dev->dma_mask = DMA_BIT_MASK(loongson_sysconf.dma_mask_bits); in loongson_dma_set_mask()
/arch/mips/loongson64/loongson-3/
Dplatform.c26 if (loongson_sysconf.ecname[0] != '\0') in loongson3_platform_init()
27 platform_device_register_simple(loongson_sysconf.ecname, -1, NULL, 0); in loongson3_platform_init()
29 for (i = 0; i < loongson_sysconf.nr_sensors; i++) { in loongson3_platform_init()
30 if (loongson_sysconf.sensors[i].type > SENSOR_FAN) in loongson3_platform_init()
37 pdev->name = loongson_sysconf.sensors[i].name; in loongson3_platform_init()
38 pdev->id = loongson_sysconf.sensors[i].id; in loongson3_platform_init()
39 pdev->dev.platform_data = &loongson_sysconf.sensors[i]; in loongson3_platform_init()
Dnuma.c63 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe()
69 loongson_sysconf.nr_cpus, num_online_nodes()); in cpu_node_probe()
74 int package_row = row * loongson_sysconf.cores_per_node / in compute_node_distance()
75 loongson_sysconf.cores_per_package; in compute_node_distance()
76 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()
77 loongson_sysconf.cores_per_package; in compute_node_distance()
232 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit()
239 for (cpu = 0; cpu < loongson_sysconf.nr_cpus; cpu++) { in prom_meminit()
240 node = cpu / loongson_sysconf.cores_per_node; in prom_meminit()
244 if (loongson_sysconf.reserved_cpus_mask & (1<<cpu)) in prom_meminit()
Dsmp.c305 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package; in loongson3_init_secondary()
307 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary()
347 while (i < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()
348 if (loongson_sysconf.reserved_cpus_mask & (1<<i)) { in loongson3_smp_setup()
361 while (num < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()
371 cpu_data[0].core = cpu_logical_map(0) % loongson_sysconf.cores_per_package; in loongson3_smp_setup()
372 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson3_smp_setup()
577 switch (loongson_sysconf.cputype) { in play_dead()
598 if (loongson_sysconf.cputype == Loongson_3A) { in loongson3_disable_clock()
600 } else if (loongson_sysconf.cputype == Loongson_3B) { in loongson3_disable_clock()
[all …]
Dirq.c64 LOONGSON_INT_COREx_INTy(loongson_sysconf.boot_cpu_id, 0); in irq_router_init()
68 LOONGSON_INT_COREx_INTy(loongson_sysconf.boot_cpu_id, 1); in irq_router_init()
Dhpet.c11 #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000)
/arch/mips/pci/
Dfixup-loongson3.c46 if (!loongson_sysconf.vgabios_addr) in pci_fixup_radeon()
50 loongson_sysconf.vgabios_addr; in pci_fixup_radeon()
52 loongson_sysconf.vgabios_addr + 256*1024 - 1; in pci_fixup_radeon()
/arch/mips/include/asm/mach-loongson64/
Dirq.h15 #define LOONGSON_HT1_CFG_BASE loongson_sysconf.ht_control_base
Dboot_param.h208 extern struct loongson_system_configuration loongson_sysconf;
Dloongson.h118 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base