/Linux-v6.6/Documentation/devicetree/bindings/interrupt-controller/ |
D | loongson,liointc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/loongson,liointc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson Local I/O Interrupt Controller 10 - Jiaxun Yang <jiaxun.yang@flygoat.com> 13 This interrupt controller is found in the Loongson-3 family of chips and 14 Loongson-2K1000 chip, as the primary package interrupt controller which 18 - $ref: /schemas/interrupt-controller.yaml# 23 - loongson,liointc-1.0 [all …]
|
D | loongson,eiointc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/loongson,eiointc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson Extended I/O Interrupt Controller 10 - Binbin Zhou <zhoubinbin@loongson.cn> 13 This interrupt controller is found on the Loongson-3 family chips and 14 Loongson-2K series chips and is used to distribute interrupts directly to 18 - $ref: /schemas/interrupt-controller.yaml# 23 - loongson,ls2k0500-eiointc [all …]
|
D | loongson,htvec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/loongson,htvec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson-3 HyperTransport Interrupt Vector Controller 10 - Jiaxun Yang <jiaxun.yang@flygoat.com> 13 This interrupt controller is found in the Loongson-3 family of chips for 18 const: loongson,htvec-1.0 28 interrupt-controller: true 30 '#interrupt-cells': [all …]
|
D | loongson,htpic.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/loongson,htpic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson-3 HyperTransport Interrupt Controller 10 - Jiaxun Yang <jiaxun.yang@flygoat.com> 13 - $ref: /schemas/interrupt-controller.yaml# 16 This interrupt controller is found in the Loongson-3 family of chips to transmit 21 const: loongson,htpic-1.0 32 interrupt-controller: true [all …]
|
/Linux-v6.6/Documentation/arch/loongarch/ |
D | irq-chip-model.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 Currently, LoongArch based processors (e.g. Loongson-3A5000) can only work together 10 I/O Interrupt Controller), HTVECINTC (Hyper-Transport Vector Interrupt Controller), 11 PCH-PIC (Main Interrupt Controller in LS7A chipset), PCH-LPC (LPC Interrupt Controller 12 in LS7A chipset) and PCH-MSI (MSI Interrupt Controller). 14 CPUINTC is a per-core controller (in CPU), LIOINTC/EIOINTC/HTVECINTC are per-package 15 controllers (in CPU), while PCH-PIC/PCH-LPC/PCH-MSI are controllers out of CPU (i.e., 22 In this model, IPI (Inter-Processor Interrupt) and CPU Local Timer interrupt go 24 interrupts go to PCH-PIC/PCH-LPC/PCH-MSI and gathered by HTVECINTC, and then go 27 +-----+ +---------+ +-------+ [all …]
|
D | introduction.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 LoongArch is a new RISC ISA, which is a bit like MIPS or RISC-V. There are 8 currently 3 variants: a reduced 32-bit version (LA32R), a standard 32-bit 9 version (LA32S) and a 64-bit version (LA64). There are 4 privilege levels 22 ---- 24 LoongArch has 32 GPRs ( ``$r0`` ~ ``$r31`` ); each one is 32-bit wide in LA32 25 and 64-bit wide in LA64. ``$r0`` is hard-wired to zero, and the other registers 26 are not architecturally special. (Except ``$r1``, which is hard-wired as the 30 the LoongArch ELF psABI spec, in :ref:`References <loongarch-references>`: 40 ``$r4``-``$r11`` ``$a0``-``$a7`` Argument registers No [all …]
|
/Linux-v6.6/drivers/platform/mips/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 MIPS platforms, including vendor-specific netbook/laptop/desktop 21 bool "Loongson-3 CPU HWMon Driver" 26 Loongson-3A/3B CPU Hwmon (temperature sensor) driver. 29 bool "Loongson RS780E ACPI Controller" 32 Loongson RS780E PCH ACPI Controller driver. 35 bool "Loongson-2K1000 Reset Controller" 38 Loongson-2K1000 Reset Controller driver.
|
/Linux-v6.6/Documentation/devicetree/bindings/pci/ |
D | loongson.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/loongson.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson PCI Host Controller 10 - Jiaxun Yang <jiaxun.yang@flygoat.com> 13 PCI host controller found on Loongson PCHs and SoCs. 16 - $ref: /schemas/pci/pci-bus.yaml# 21 - loongson,ls2k-pci 22 - loongson,ls7a-pci [all …]
|
/Linux-v6.6/arch/mips/include/asm/mach-loongson64/ |
D | kernel-entry-init.h | 7 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) 28 /* Loongson-3A R4+ */ 33 /* Loongson-3A R2/R3 */ 59 /* Loongson-3A R4+ */ 64 /* Loongson-3A R2/R3 */ 91 b 2f /* Loongson-3A1000/3A2000/3A3000/3A4000 */ 92 1: dins a0, t2, 14, 2 /* Loongson-3B1000/3B1500 need bit 15~14 */ 94 3: addiu t9, -1 /* limit mailbox access */ 95 bnez t9, 3b
|
D | loongson.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 20 /* machine-specific boot configuration */ 40 /* machine-specific reboot/halt operation */ 49 /* loongson-specific command line, env and memory initialization */ 77 #define LOONGSON_FLASH_TOP (LOONGSON_FLASH_BASE+LOONGSON_FLASH_SIZE-1) 81 #define LOONGSON_LIO0_TOP (LOONGSON_LIO0_BASE+LOONGSON_LIO0_SIZE-1) 85 #define LOONGSON_BOOT_TOP (LOONGSON_BOOT_BASE+LOONGSON_BOOT_SIZE-1) 88 #define LOONGSON_REG_TOP (LOONGSON_REG_BASE+LOONGSON_REG_SIZE-1) 89 /* Loongson-3 specific registers */ 92 #define LOONGSON3_REG_TOP (LOONGSON3_REG_BASE+LOONGSON3_REG_SIZE-1) [all …]
|
/Linux-v6.6/Documentation/translations/zh_CN/arch/loongarch/ |
D | irq-chip-model.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 .. include:: ../../disclaimer-zh_CN.rst 5 :Original: Documentation/arch/loongarch/irq-chip-model.rst 6 :Translator: Huacai Chen <chenhuacai@loongson.cn> 15 HTVECINTC(Hyper-Transport Vector Interrupt Controller)、PCH-PIC(LS7A芯片组的主中 16 断控制器)、PCH-LPC(LS7A芯片组的LPC中断控制器)和PCH-MSI(MSI中断控制器)。 19 全局中断控制器(每个芯片一个,所有核共享),而PCH-PIC/PCH-LPC/PCH-MSI是CPU外部的中 26 在这种模型里面,IPI(Inter-Processor Interrupt)和CPU本地时钟中断直接发送到CPUINTC, 27 CPU串口(UARTs)中断发送到LIOINTC,而其他所有设备的中断则分别发送到所连接的PCH-PIC/ 28 PCH-LPC/PCH-MSI,然后被HTVECINTC统一收集,再发送到LIOINTC,最后到达CPUINTC:: [all …]
|
D | introduction.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 .. include:: ../../disclaimer-zh_CN.rst 6 :Translator: Huacai Chen <chenhuacai@loongson.cn> 12 LoongArch是一种新的RISC ISA,在一定程度上类似于MIPS和RISC-V。LoongArch指令集 25 ---------- 32 :ref:`参考文献 <loongarch-references-zh_CN>`: 41 ``$r4``-``$r11`` ``$a0``-``$a7`` 参数寄存器 否 42 ``$r4``-``$r5`` ``$v0``-``$v1`` 返回值 否 43 ``$r12``-``$r20`` ``$t0``-``$t8`` 临时寄存器 否 46 ``$r23``-``$r31`` ``$s0``-``$s8`` 静态寄存器 是 [all …]
|
/Linux-v6.6/arch/mips/boot/dts/loongson/ |
D | loongson64-2k1000.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include <dt-bindings/interrupt-controller/irq.h> 8 compatible = "loongson,loongson2k1000"; 10 #address-cells = <2>; 11 #size-cells = <2>; 14 #address-cells = <1>; 15 #size-cells = <0>; 19 compatible = "loongson,gs264"; 21 #clock-cells = <1>; [all …]
|
/Linux-v6.6/drivers/irqchip/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 121 tristate "Broadcom STB 7038-style L1/L2 interrupt controller driver" 129 tristate "Broadcom STB 7120-style L2 interrupt controller driver" 211 bool "J-Core integrated AIC" if COMPILE_TEST 215 Support for the J-Core integrated AIC. 226 interrupt pins, as found on SH/R-Mobile and R-Car Gen1 SoCs. 229 bool "Renesas R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} IRQC support" if COMPILE_TEST 234 devices, as found on R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} SoCs. 284 tristate "TS-4800 IRQ controller" 289 Support for the TS-4800 FPGA IRQ controller [all …]
|
/Linux-v6.6/arch/mips/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 135 bool "Generic board-agnostic MIPS kernel" 224 Support for the Texas Instruments AR7 System-on-a-Chip 298 Build a generic DT-based kernel image that boots on select 299 BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top 391 see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the 392 DECstation porting pages on <http://decstation.unix-ag.org/>. 432 Olivetti M700-10 workstations. 468 bool "Loongson 32-bit family of machines" 471 This enables support for the Loongson-1 family of machines. [all …]
|
/Linux-v6.6/drivers/gpio/ |
D | gpio-loongson.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Loongson-2F/3A/3B GPIO Support 6 * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com> 20 #include <loongson.h> 97 struct device *dev = &pdev->dev; in loongson_gpio_probe() 101 return -ENOMEM; in loongson_gpio_probe() 103 gc->label = "loongson-gpio-chip"; in loongson_gpio_probe() 104 gc->base = 0; in loongson_gpio_probe() 105 gc->ngpio = LOONGSON_N_GPIO; in loongson_gpio_probe() 106 gc->get = loongson_gpio_get_value; in loongson_gpio_probe() [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/mips/loongson/ |
D | rs780e-acpi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mips/loongson/rs780e-acpi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson RS780E PCH ACPI Controller 10 - Jiaxun Yang <jiaxun.yang@flygoat.com> 13 This controller can be found in Loongson-3 systems with RS780E PCH. 17 const: loongson,rs780e-acpi 23 - compatible 24 - reg [all …]
|
/Linux-v6.6/arch/loongarch/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 212 # MIPS Loongson code, to preserve Loongson-specific code paths in drivers that 244 default 3 if PGTABLE_3LEVEL 252 def_bool $(as-instr,x:pcalau12i \$t0$(comma)%pc_hi20(x)) 255 def_bool $(as-instr,movfcsr2gr \$t0$(comma)\$fcsr0) 258 def_bool $(as-instr,vld \$vr0$(comma)\$a0$(comma)0) 261 def_bool $(as-instr,xvld \$xr0$(comma)\$a0$(comma)0) 264 def_bool $(as-instr,movscr2gr \$a0$(comma)\$scr0) 280 bool "4KB with 3 levels" 284 This option selects 4KB page size with 3 level page tables, which [all …]
|
/Linux-v6.6/arch/loongarch/include/asm/ |
D | cpu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 12 * As described in LoongArch specs from Loongson Technology, the PRID register 15 * +---------------+----------------+------------+--------------------+ 17 * +---------------+----------------+------------+--------------------+ 37 #define PRID_SERIES_LA132 0x8000 /* Loongson 32bit */ 38 #define PRID_SERIES_LA264 0xa000 /* Loongson 64bit, 2-issue */ 39 #define PRID_SERIES_LA364 0xb000 /* Loongson 64bit, 3-issue */ 40 #define PRID_SERIES_LA464 0xc000 /* Loongson 64bit, 4-issue */ 41 #define PRID_SERIES_LA664 0xd000 /* Loongson 64bit, 6-issue */ [all …]
|
/Linux-v6.6/tools/perf/arch/loongarch/entry/syscalls/ |
D | mksyscalltbl | 2 # SPDX-License-Identifier: GPL-2.0 7 # Author(s): Ming Wang <wangming01@loongson.cn> 8 # Author(s): Huacai Chen <chenhuacai@loongson.cn> 9 # Copyright (C) 2020-2023 Loongson Technology Corporation Limited 13 incpath=$3 16 if ! test -r $input; then 41 $gcc -E -dM -x c -I $incpath/include/uapi $input \ 42 |awk '$2 ~ "__NR" && $3 !~ "__NR3264_" { 44 print | "sort -k2 -n"}' \
|
/Linux-v6.6/sound/soc/loongson/ |
D | loongson_i2s.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * ALSA I2S interface for the Loongson platform 5 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 * Author: Yingkun Meng <mengyingkun@loongson.cn> 29 /* Loongson I2S Control Register */ 39 #define I2S_CTRL_MCLK_EN (1 << 3) /* Enable MCLK */ 43 #define LS_I2S_DRVNAME "loongson-i2s"
|
/Linux-v6.6/arch/mips/include/asm/ |
D | cpu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 +----------------+----------------+----------------+----------------+ 20 +----------------+----------------+----------------+----------------+ 24 that bits 16-23 have been 0 for all MIPS processors before the MIPS32/64 92 #define PRID_IMP_LOONGSON_32 0x4200 /* Loongson-1 */ 95 #define PRID_IMP_LOONGSON_64R 0x6100 /* Reduced Loongson-2 */ 96 #define PRID_IMP_LOONGSON_64C 0x6300 /* Classic Loongson-2 and Loongson-3 */ 97 #define PRID_IMP_LOONGSON_64G 0xc000 /* Generic Loongson-2 and Loongson-3 */ 252 #define PRID_REV_LOONGSON1C 0x0020 /* Same as Loongson-1B */ 269 * 4-bit bitfields, the 4K seems to simply count up and even newer MTI cores [all …]
|
/Linux-v6.6/arch/loongarch/power/ |
D | suspend_asm.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Sleep helper for Loongson-3 sleep mode. 5 * Author: Huacai Chen <chenhuacai@loongson.cn> 6 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 17 addi.d sp, sp, -PT_SIZE 59 /* Sleep/wakeup code for Loongson-3 */
|
/Linux-v6.6/arch/loongarch/kernel/ |
D | cpu-probe.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 16 #include <asm/cpu-features.h> 20 #include <asm/pgtable-bits.h> 34 fcsr = c->fpu_csr0; in cpu_set_fpu_fcsr_mask() 52 c->fpu_mask = ~(fcsr0 ^ fcsr1) & ~mask; in cpu_set_fpu_fcsr_mask() 68 c->pabits = (read_cpucfg(LOONGARCH_CPUCFG1) & CPUCFG1_PABITS) >> 4; in cpu_probe_addrbits() 69 c->vabits = (read_cpucfg(LOONGARCH_CPUCFG1) & CPUCFG1_VABITS) >> 12; in cpu_probe_addrbits() 70 vm_map_base = 0UL - (1UL << c->vabits); in cpu_probe_addrbits() 78 c->isa_level |= LOONGARCH_CPU_ISA_LA64; in set_isa() [all …]
|
/Linux-v6.6/drivers/platform/loongarch/ |
D | loongson-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic Loongson processor based LAPTOP/ALL-IN-ONE driver 5 * Jianmin Lv <lvjianmin@loongson.cn> 6 * Huacai Chen <chenhuacai@loongson.cn> 8 * Copyright (C) 2022 Loongson Technology Corporation Limited 20 #include <linux/input/sparse-keymap.h> 26 /* 1. Driver-wide structs and misc. variables */ 32 #define ACPI_LAPTOP_NAME "loongson-laptop" 33 #define ACPI_LAPTOP_ACPI_EVENT_PREFIX "loongson" 35 #define MAX_ACPI_ARGS 3 [all …]
|