env.c (0ea8a56de21be24cb79abb03dee79aabcd60a316) | env.c (6c1bfbd9df8c42a1156b9f4769ca78dfc5e89045) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Based on Ocelot Linux port, which is 4 * Copyright 2001 MontaVista Software Inc. 5 * Author: jsun@mvista.com or jsun@junsun.net 6 * 7 * Copyright 2003 ICT CAS 8 * Author: Michael Guo <guoyi@ict.ac.cn> --- 14 unchanged lines hidden (view full) --- 23 24#define HOST_BRIDGE_CONFIG_ADDR ((void __iomem *)TO_UNCAC(0x1a000000)) 25 26u32 cpu_clock_freq; 27EXPORT_SYMBOL(cpu_clock_freq); 28struct efi_memory_map_loongson *loongson_memmap; 29struct loongson_system_configuration loongson_sysconf; 30 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Based on Ocelot Linux port, which is 4 * Copyright 2001 MontaVista Software Inc. 5 * Author: jsun@mvista.com or jsun@junsun.net 6 * 7 * Copyright 2003 ICT CAS 8 * Author: Michael Guo <guoyi@ict.ac.cn> --- 14 unchanged lines hidden (view full) --- 23 24#define HOST_BRIDGE_CONFIG_ADDR ((void __iomem *)TO_UNCAC(0x1a000000)) 25 26u32 cpu_clock_freq; 27EXPORT_SYMBOL(cpu_clock_freq); 28struct efi_memory_map_loongson *loongson_memmap; 29struct loongson_system_configuration loongson_sysconf; 30 |
31struct board_devices *eboard; 32struct interface_info *einter; 33struct loongson_special_attribute *especial; 34 |
|
31u64 loongson_chipcfg[MAX_PACKAGES] = {0xffffffffbfc00180}; 32u64 loongson_chiptemp[MAX_PACKAGES]; 33u64 loongson_freqctrl[MAX_PACKAGES]; 34 35unsigned long long smp_group[4]; 36 37const char *get_system_type(void) 38{ --- 13 unchanged lines hidden (view full) --- 52 /* firmware arguments are initialized in head.S */ 53 boot_p = (struct boot_params *)fw_arg2; 54 loongson_p = &(boot_p->efi.smbios.lp); 55 56 esys = (struct system_loongson *) 57 ((u64)loongson_p + loongson_p->system_offset); 58 ecpu = (struct efi_cpuinfo_loongson *) 59 ((u64)loongson_p + loongson_p->cpu_offset); | 35u64 loongson_chipcfg[MAX_PACKAGES] = {0xffffffffbfc00180}; 36u64 loongson_chiptemp[MAX_PACKAGES]; 37u64 loongson_freqctrl[MAX_PACKAGES]; 38 39unsigned long long smp_group[4]; 40 41const char *get_system_type(void) 42{ --- 13 unchanged lines hidden (view full) --- 56 /* firmware arguments are initialized in head.S */ 57 boot_p = (struct boot_params *)fw_arg2; 58 loongson_p = &(boot_p->efi.smbios.lp); 59 60 esys = (struct system_loongson *) 61 ((u64)loongson_p + loongson_p->system_offset); 62 ecpu = (struct efi_cpuinfo_loongson *) 63 ((u64)loongson_p + loongson_p->cpu_offset); |
64 eboard = (struct board_devices *) 65 ((u64)loongson_p + loongson_p->boarddev_table_offset); 66 einter = (struct interface_info *) 67 ((u64)loongson_p + loongson_p->interface_offset); 68 especial = (struct loongson_special_attribute *) 69 ((u64)loongson_p + loongson_p->special_offset); |
|
60 eirq_source = (struct irq_source_routing_table *) 61 ((u64)loongson_p + loongson_p->irq_offset); 62 loongson_memmap = (struct efi_memory_map_loongson *) 63 ((u64)loongson_p + loongson_p->memory_offset); 64 65 cpu_clock_freq = ecpu->cpu_clock_freq; 66 loongson_sysconf.cputype = ecpu->cputype; 67 switch (ecpu->cputype) { --- 156 unchanged lines hidden --- | 70 eirq_source = (struct irq_source_routing_table *) 71 ((u64)loongson_p + loongson_p->irq_offset); 72 loongson_memmap = (struct efi_memory_map_loongson *) 73 ((u64)loongson_p + loongson_p->memory_offset); 74 75 cpu_clock_freq = ecpu->cpu_clock_freq; 76 loongson_sysconf.cputype = ecpu->cputype; 77 switch (ecpu->cputype) { --- 156 unchanged lines hidden --- |