Searched refs:loongson_sysconf (Results 1 – 14 of 14) sorted by relevance
25 struct loongson_system_configuration loongson_sysconf; variable64 loongson_sysconf.nr_uarts = 1; in prom_init_env()88 loongson_sysconf.cputype = ecpu->cputype; in prom_init_env()92 loongson_sysconf.cores_per_node = 4; in prom_init_env()93 loongson_sysconf.cores_per_package = 4; in prom_init_env()110 loongson_sysconf.ht_control_base = 0x90000EFDFB000000; in prom_init_env()111 loongson_sysconf.workarounds = WORKAROUND_CPUFREQ; in prom_init_env()115 loongson_sysconf.cores_per_node = 4; /* One chip has 2 nodes */ in prom_init_env()116 loongson_sysconf.cores_per_package = 8; in prom_init_env()133 loongson_sysconf.ht_control_base = 0x90001EFDFB000000; in prom_init_env()[all …]
76 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()
45 void (*fw_restart)(void) = (void *)loongson_sysconf.restart_addr; in loongson_restart()66 void (*fw_poweroff)(void) = (void *)loongson_sysconf.poweroff_addr; in loongson_poweroff()
85 loongson_pci_mem_resource.start = loongson_sysconf.pci_mem_start_addr; in pcibios_init()86 loongson_pci_mem_resource.end = loongson_sysconf.pci_mem_end_addr; in pcibios_init()
22 if (loongson_sysconf.ecname[0] != '\0') in loongson3_platform_init()23 platform_device_register_simple(loongson_sysconf.ecname, -1, NULL, 0); in loongson3_platform_init()25 for (i = 0; i < loongson_sysconf.nr_sensors; i++) { in loongson3_platform_init()26 if (loongson_sysconf.sensors[i].type > SENSOR_FAN) in loongson3_platform_init()30 pdev->name = loongson_sysconf.sensors[i].name; in loongson3_platform_init()31 pdev->id = loongson_sysconf.sensors[i].id; in loongson3_platform_init()32 pdev->dev.platform_data = &loongson_sysconf.sensors[i]; in loongson3_platform_init()
58 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe()64 loongson_sysconf.nr_cpus, num_online_nodes()); in cpu_node_probe()69 int package_row = row * loongson_sysconf.cores_per_node / in compute_node_distance()70 loongson_sysconf.cores_per_package; in compute_node_distance()71 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()72 loongson_sysconf.cores_per_package; in compute_node_distance()213 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit()223 for (cpu = 0; cpu < loongson_sysconf.nr_cpus; cpu++) { in prom_meminit()224 node = cpu / loongson_sysconf.cores_per_node; in prom_meminit()228 if (loongson_sysconf.reserved_cpus_mask & (1<<cpu)) in prom_meminit()
314 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package); in loongson3_init_secondary()316 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary()356 while (i < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()357 if (loongson_sysconf.reserved_cpus_mask & (1<<i)) { in loongson3_smp_setup()370 while (num < loongson_sysconf.nr_cpus) { in loongson3_smp_setup()381 cpu_logical_map(0) % loongson_sysconf.cores_per_package); in loongson3_smp_setup()382 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson3_smp_setup()701 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_disable_clock()715 if (!(loongson_sysconf.workarounds & WORKAROUND_CPUHOTPLUG)) in loongson3_enable_clock()
118 LOONGSON_INT_COREx_INTy(loongson_sysconf.boot_cpu_id, 0); in irq_router_init()122 LOONGSON_INT_COREx_INTy(loongson_sysconf.boot_cpu_id, 1); in irq_router_init()
12 #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000)
48 if (!loongson_sysconf.vgabios_addr) in pci_fixup_radeon()55 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr); in pci_fixup_radeon()
169 nr_packages = loongson_sysconf.nr_cpus / in loongson_hwmon_init()170 loongson_sysconf.cores_per_package; in loongson_hwmon_init()
16 #define LOONGSON_HT1_CFG_BASE loongson_sysconf.ht_control_base
219 extern struct loongson_system_configuration loongson_sysconf;
113 #define LOONGSON_PCIIO_BASE loongson_sysconf.pci_io_base