/openbmc/u-boot/arch/arm/cpu/armv7/sunxi/ |
H A D | psci.c | 130 struct sunxi_cpucfg_reg *cpucfg = in sunxi_set_entry_address() local 133 writel((u32)entry, &cpucfg->priv0); in sunxi_set_entry_address() 141 struct sunxi_cpucfg_reg *cpucfg = in sunxi_cpu_set_power() local 144 sunxi_power_switch(&cpucfg->cpu1_pwr_clamp, &cpucfg->cpu1_pwroff, in sunxi_cpu_set_power() 150 struct sunxi_cpucfg_reg *cpucfg = in sunxi_cpu_set_power() local 153 sunxi_power_switch((void *)cpucfg + SUN8I_R40_PWR_CLAMP(cpu), in sunxi_cpu_set_power() 154 (void *)cpucfg + SUN8I_R40_PWROFF, in sunxi_cpu_set_power() 170 struct sunxi_cpucfg_reg *cpucfg = in sunxi_cpu_power_off() local 176 if (readl(&cpucfg->cpu[cpu].status) & BIT(2)) in sunxi_cpu_power_off() 182 writel(0, &cpucfg->cpu[cpu].rst); in sunxi_cpu_power_off() [all …]
|
/openbmc/qemu/target/loongarch/ |
H A D | cpu.c | 384 env->cpucfg[i] = 0x0; in loongarch_la464_initfn() 388 env->cpucfg[0] = 0x14c010; /* PRID */ in loongarch_la464_initfn() 402 env->cpucfg[1] = data; in loongarch_la464_initfn() 415 env->cpucfg[2] = data; in loongarch_la464_initfn() 417 env->cpucfg[4] = 100 * 1000 * 1000; /* Crystal frequency */ in loongarch_la464_initfn() 422 env->cpucfg[5] = data; in loongarch_la464_initfn() 433 env->cpucfg[16] = data; in loongarch_la464_initfn() 439 env->cpucfg[17] = data; in loongarch_la464_initfn() 445 env->cpucfg[18] = data; in loongarch_la464_initfn() 451 env->cpucfg[19] = data; in loongarch_la464_initfn() [all …]
|
H A D | machine.c | 32 return FIELD_EX64(cpu->env.cpucfg[2], CPUCFG2, FP); in fpu_needed() 66 return FIELD_EX64(cpu->env.cpucfg[2], CPUCFG2, LSX); in lsx_needed() 99 return FIELD_EX64(cpu->env.cpucfg[2], CPUCFG2, LASX); in lasx_needed() 117 return !!FIELD_EX64(cpu->env.cpucfg[2], CPUCFG2, LBT_ALL); in lbt_needed()
|
H A D | gdbstub.c | 180 if (FIELD_EX32(env->cpucfg[2], CPUCFG2, FP)) { in loongarch_cpu_register_gdb_regs_for_features() 185 if (FIELD_EX32(env->cpucfg[2], CPUCFG2, LSX)) { in loongarch_cpu_register_gdb_regs_for_features() 190 if (FIELD_EX32(env->cpucfg[2], CPUCFG2, LASX)) { in loongarch_cpu_register_gdb_regs_for_features()
|
H A D | trace-events | 12 kvm_failed_get_cpucfg(const char *msg) "Failed to get cpucfg from KVM: %s" 13 kvm_failed_put_cpucfg(const char *msg) "Failed to put cpucfg into KVM: %s"
|
H A D | cpu.h | 310 uint32_t cpucfg[21]; member 441 return FIELD_EX32(env->cpucfg[1], CPUCFG1, ARCH) == CPUCFG1_ARCH_LA64; in is_la64()
|
/openbmc/qemu/target/loongarch/kvm/ |
H A D | kvm.c | 536 if (FIELD_EX32(env->cpucfg[2], CPUCFG2, LBT_ALL) != 7) { in kvm_loongarch_put_lbt() 564 if (FIELD_EX32(env->cpucfg[2], CPUCFG2, LBT_ALL) != 7) { in kvm_loongarch_get_lbt() 635 env->cpucfg[i] = (uint32_t)val; in kvm_loongarch_get_cpucfg() 655 env->cpucfg[2] &= val; in kvm_check_cpucfg2() 657 if (FIELD_EX32(env->cpucfg[2], CPUCFG2, FP)) { in kvm_check_cpucfg2() 659 env->cpucfg[2] = FIELD_DP32(env->cpucfg[2], CPUCFG2, FP_VER, 1); in kvm_check_cpucfg2() 662 if (FIELD_EX32(env->cpucfg[2], CPUCFG2, LLFTP)) { in kvm_check_cpucfg2() 664 env->cpucfg[2] = FIELD_DP32(env->cpucfg[2], CPUCFG2, LLFTP_VER, 1); in kvm_check_cpucfg2() 684 val = env->cpucfg[i]; in kvm_loongarch_put_cpucfg() 841 env->cpucfg[2] = FIELD_DP32(env->cpucfg[2], CPUCFG2, LBT_ALL, 7); in kvm_cpu_check_lbt() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/arm/freescale/ |
H A D | fsl,vf610-mscm-cpucfg.txt | 7 - compatible: "fsl,vf610-mscm-cpucfg", "syscon" 11 mscm_cpucfg: cpucfg@40001000 { 12 compatible = "fsl,vf610-mscm-cpucfg", "syscon";
|
H A D | fsl,vf610-mscm-ir.txt | 13 - fsl,cpucfg: The handle to the MSCM CPU configuration node, required 26 fsl,cpucfg = <&mscm_cpucfg>;
|
/openbmc/qemu/target/loongarch/tcg/ |
H A D | translate.c | 135 if (FIELD_EX64(env->cpucfg[2], CPUCFG2, LSX)) { in loongarch_tr_init_disas_context() 139 if (FIELD_EX64(env->cpucfg[2], CPUCFG2, LASX)) { in loongarch_tr_init_disas_context() 148 ctx->cpucfg1 = env->cpucfg[1]; in loongarch_tr_init_disas_context() 149 ctx->cpucfg2 = env->cpucfg[2]; in loongarch_tr_init_disas_context()
|
H A D | op_helper.c | 85 return rj >= ARRAY_SIZE(env->cpucfg) ? 0 : env->cpucfg[rj]; in helper_cpucfg()
|
/openbmc/linux/arch/mips/loongson64/ |
H A D | Makefile | 13 obj-$(CONFIG_CPU_LOONGSON3_CPUCFG_EMULATION) += cpucfg-emul.o
|
/openbmc/qemu/include/hw/arm/ |
H A D | allwinner-h3.h | 134 AwCpuCfgState cpucfg; member
|
/openbmc/qemu/hw/arm/ |
H A D | allwinner-h3.c | 217 object_initialize_child(obj, "cpucfg", &s->cpucfg, TYPE_AW_CPUCFG); in allwinner_h3_init() 354 sysbus_realize(SYS_BUS_DEVICE(&s->cpucfg), &error_fatal); in allwinner_h3_realize() 355 sysbus_mmio_map(SYS_BUS_DEVICE(&s->cpucfg), 0, s->memmap[AW_H3_DEV_CPUCFG]); in allwinner_h3_realize()
|
/openbmc/linux/arch/arm/boot/dts/nxp/vf/ |
H A D | vfxxx.dtsi | 69 mscm_cpucfg: cpucfg@40001000 { 70 compatible = "fsl,vf610-mscm-cpucfg", "syscon"; 77 fsl,cpucfg = <&mscm_cpucfg>;
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | sun8i-a83t.dtsi | 368 cpucfg@1700000 { 369 compatible = "allwinner,sun8i-a83t-cpucfg"; 991 compatible = "allwinner,sun8i-a83t-r-cpucfg";
|
H A D | sun9i-a80.dtsi | 399 cpucfg@1700000 { 400 compatible = "allwinner,sun9i-a80-cpucfg";
|
H A D | sun8i-a23-a33.dtsi | 611 cpucfg@1f01c00 {
|
H A D | sun6i-a31.dtsi | 1317 cpucfg@1f01c00 {
|
/openbmc/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun8i-a83t.dtsi | 400 cpucfg@1700000 { 401 compatible = "allwinner,sun8i-a83t-cpucfg"; 1131 compatible = "allwinner,sun8i-a83t-r-cpucfg";
|
H A D | sun9i-a80.dtsi | 455 cpucfg@1700000 { 456 compatible = "allwinner,sun9i-a80-cpucfg";
|
H A D | sun8i-a23-a33.dtsi | 780 cpucfg@1f01c00 {
|
/openbmc/qemu/hw/misc/ |
H A D | meson.build | 46 specific_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-cpucfg.c'))
|
H A D | trace-events | 3 # allwinner-cpucfg.c
|
/openbmc/qemu/linux-user/ |
H A D | elfload.c | 1327 if (FIELD_EX32(cpu->env.cpucfg[1], CPUCFG1, UAL)) { in get_elf_hwcap() 1331 if (FIELD_EX32(cpu->env.cpucfg[2], CPUCFG2, FP)) { in get_elf_hwcap() 1335 if (FIELD_EX32(cpu->env.cpucfg[2], CPUCFG2, LAM)) { in get_elf_hwcap() 1339 if (FIELD_EX32(cpu->env.cpucfg[2], CPUCFG2, LSX)) { in get_elf_hwcap() 1343 if (FIELD_EX32(cpu->env.cpucfg[2], CPUCFG2, LASX)) { in get_elf_hwcap()
|