Home
last modified time | relevance | path

Searched +full:loongson +full:- +full:1 +full:c (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/linux-6.8/Documentation/devicetree/bindings/net/
Dloongson,ls1c-emac.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/loongson,ls1c-emac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Loongson-1C Ethernet MAC Controller
10 - Keguang Zhang <keguang.zhang@gmail.com>
13 Loongson-1C Ethernet MAC Controller is based on
17 - 10/100Mbps
18 - Full-duplex operation (IEEE 802.3x flow control automatic transmission)
19 - Half-duplex operation (CSMA/CD Protocol and back-pressure support)
[all …]
/linux-6.8/arch/loongarch/kernel/
Dcpu-probe.c1 // 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>
30 static inline void cpu_set_fpu_fcsr_mask(struct cpuinfo_loongarch *c) in cpu_set_fpu_fcsr_mask() argument
34 fcsr = c->fpu_csr0; in cpu_set_fpu_fcsr_mask()
52 c->fpu_mask = ~(fcsr0 ^ fcsr1) & ~mask; in cpu_set_fpu_fcsr_mask()
65 static void cpu_probe_addrbits(struct cpuinfo_loongarch *c) in cpu_probe_addrbits() argument
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()
[all …]
/linux-6.8/Documentation/devicetree/bindings/mips/loongson/
Ddevices.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/mips/loongson/devices.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Loongson based Platforms
10 - Jiaxun Yang <jiaxun.yang@flygoat.com>
12 Devices with a Loongson CPU shall have the following properties.
20 - description: Classic Loongson64 Quad Core + LS7A
22 - const: loongson,loongson64c-4core-ls7a
24 - description: Classic Loongson64 Quad Core + RS780E
[all …]
/linux-6.8/arch/loongarch/boot/dts/
Dloongson-2k2000.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
11 #address-cells = <2>;
12 #size-cells = <2>;
15 #address-cells = <1>;
16 #size-cells = <0>;
18 cpu0: cpu@1 {
19 compatible = "loongson,la364";
[all …]
Dloongson-2k1000.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/clock/loongson,ls2k-clk.h>
10 #include <dt-bindings/gpio/gpio.h>
13 #address-cells = <2>;
14 #size-cells = <2>;
17 #address-cells = <1>;
18 #size-cells = <0>;
[all …]
Dloongson-2k0500.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
11 #address-cells = <2>;
12 #size-cells = <2>;
15 #address-cells = <1>;
16 #size-cells = <0>;
19 compatible = "loongson,la264";
26 cpu_clk: cpu-clk {
[all …]
Dloongson-2k0500-ref.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include "loongson-2k0500.dtsi"
11 compatible = "loongson,ls2k0500-ref", "loongson,ls2k0500";
12 model = "Loongson-2K0500 Reference Board";
21 stdout-path = "serial0:115200n8";
30 reserved-memory {
31 #address-cells = <2>;
32 #size-cells = <2>;
[all …]
Dloongson-2k1000-ref.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include "loongson-2k1000.dtsi"
11 compatible = "loongson,ls2k1000-ref", "loongson,ls2k1000";
12 model = "Loongson-2K1000 Reference Board";
19 stdout-path = "serial0:115200n8";
29 reserved-memory {
30 #address-cells = <2>;
31 #size-cells = <2>;
[all …]
/linux-6.8/drivers/irqchip/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
23 default 1
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"
[all …]
Dirq-loongson-liointc.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2020, Jiaxun Yang <jiaxun.yang@flygoat.com>
4 * Loongson Local IO Interrupt Controller support
20 #include <loongson.h>
22 #include <asm/loongson.h>
36 * LIOINTC_REG_INTC_POL register is only valid for Loongson-2K series, and
37 * Loongson-3 series behave as noops.
73 struct irq_chip_generic *gc = handler->priv->gc; in liointc_chained_handle_irq()
79 pending = readl(handler->priv->core_isr[core]); in liointc_chained_handle_irq()
83 if (handler->priv->has_lpc_irq_errata && in liointc_chained_handle_irq()
[all …]
/linux-6.8/arch/mips/include/asm/mach-loongson64/
Dkernel-entry-init.h6 * Copyright (C) 2005 Embedded Alley Solutions, Inc
7 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
8 * Copyright (C) 2009 Jiajie Chen (chenjiajie@cse.buaa.edu.cn)
9 * Copyright (C) 2012 Huacai Chen (chenhc@lemote.com)
28 /* Loongson-3A R4+ */
31 beq t1, t2, 1f
33 /* Loongson-3A R2/R3 */
38 1:
59 /* Loongson-3A R4+ */
62 beq t1, t2, 1f
[all …]
/linux-6.8/drivers/platform/loongarch/
Dloongson-laptop.c1 // 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"
82 quiet = 1; in acpi_evalf()
[all …]
/linux-6.8/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-loongson1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loongson-1 DWMAC glue layer
5 * Copyright (C) 2011-2023 Keguang Zhang <keguang.zhang@gmail.com>
21 /* Loongson-1 SYSCON Registers */
25 /* Loongson-1B SYSCON Register Bits */
34 #define GMAC1_USE_PWM23 BIT(1)
37 /* Loongson-1C SYSCON Register Bits */
52 struct plat_stmmacenet_data *plat = dwmac->plat_dat; in ls1b_dwmac_syscon_init()
53 struct regmap *regmap = dwmac->regmap; in ls1b_dwmac_syscon_init()
59 dev_err(&pdev->dev, "Could not get IO_MEM resources\n"); in ls1b_dwmac_syscon_init()
[all …]
/linux-6.8/drivers/gpio/
Dgpio-loongson.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loongson-2F/3A/3B GPIO Support
5 * Copyright (c) 2008 Richard Liu, STMicroelectronics <richard.liu@st.com>
6 * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com>
7 * Copyright (c) 2013 Hongbing Hu <huhb@lemote.com>
8 * Copyright (c) 2014 Huacai Chen <chenhc@lemote.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()
[all …]
Dgpio-loongson-64bit.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Loongson GPIO Support
5 * Copyright (C) 2022-2023 Loongson Technology Corporation Limited
48 u8 bval = input ? 1 : 0; in loongson_commit_direction()
50 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_commit_direction()
55 u8 bval = high ? 1 : 0; in loongson_commit_level()
57 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level()
65 spin_lock_irqsave(&lgpio->lock, flags); in loongson_gpio_direction_input()
66 loongson_commit_direction(lgpio, pin, 1); in loongson_gpio_direction_input()
67 spin_unlock_irqrestore(&lgpio->lock, flags); in loongson_gpio_direction_input()
[all …]
/linux-6.8/sound/soc/loongson/
Dloongson_i2s.h1 /* 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 */
30 #define I2S_CTRL_MCLK_READY (1 << 16) /* MCLK ready */
31 #define I2S_CTRL_MASTER (1 << 15) /* Master mode */
32 #define I2S_CTRL_MSB (1 << 14) /* MSB bit order */
33 #define I2S_CTRL_RX_EN (1 << 13) /* RX enable */
34 #define I2S_CTRL_TX_EN (1 << 12) /* TX enable */
[all …]
Dloongson_i2s_pci.c1 // SPDX-License-Identifier: GPL-2.0
3 // loongson_i2s_pci.c -- Loongson I2S controller driver
5 // Copyright (C) 2023 Loongson Technology Corporation Limited
6 // Author: Yingkun Meng <mengyingkun@loongson.cn>
12 #include <linux/dma-mapping.h>
76 const struct fwnode_handle *fwnode = pdev->dev.fwnode; in loongson_i2s_pci_probe()
82 dev_err(&pdev->dev, "pci_enable_device failed\n"); in loongson_i2s_pci_probe()
83 return -ENODEV; in loongson_i2s_pci_probe()
86 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in loongson_i2s_pci_probe()
88 return -ENOMEM; in loongson_i2s_pci_probe()
[all …]
/linux-6.8/drivers/pci/controller/
Dpci-loongson.c1 // SPDX-License-Identifier: GPL-2.0
3 * Loongson PCI Host Controller Driver
5 * Copyright (C) 2020 Jiaxun Yang <jiaxun.yang@flygoat.com>
12 #include <linux/pci-acpi.h>
13 #include <linux/pci-ecam.h>
39 #define FLAG_CFG1 BIT(1)
58 dev->class = PCI_CLASS_BRIDGE_PCI_NORMAL; in bridge_class_quirk()
73 pdev->mmio_always_on = 1; in system_bus_quirk()
74 pdev->non_compliant_bars = 1; in system_bus_quirk()
84 * Some Loongson PCIe ports have hardware limitations on their Maximum Read
[all …]
/linux-6.8/drivers/i2c/busses/
Di2c-ls2x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Loongson-2K/Loongson LS7A I2C master mode driver
5 * Copyright (C) 2013 Loongson Technology Corporation Limited.
6 * Copyright (C) 2014-2017 Lemote, Inc.
7 * Copyright (C) 2018-2022 Loongson Technology Corporation Limited.
10 * Rewritten for mainline by Binbin Zhou <zhoubinbin@loongson.cn>
48 #define LS2X_SR_TIP BIT(1) /* Transmission state */
52 #define LS2X_CTR_EN BIT(7) /* 0: I2c frequency setting 1: Normal */
54 #define LS2X_CTR_MST BIT(5) /* 0: Slave mode 1: Master mode */
79 if (!(readb(priv->base + I2C_LS2X_SR) & LS2X_SR_IF)) in ls2x_i2c_isr()
[all …]
/linux-6.8/arch/mips/boot/dts/loongson/
Dloongson64-2k1000.dtsi1 // 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-6.8/Documentation/ABI/testing/
Dsysfs-firmware-lefi-boardinfo3 Contact: Tiezhu Yang <yangtiezhu@loongson.cn>
5 Get mainboard and BIOS info easily on the Loongson platform,
13 boardinfo.c file in arch/mips/loongson64.
17 [loongson@linux ~]$ cat /sys/firmware/lefi/boardinfo
20 Board Name : LEMOTE-LS3A4000-7A1000-1w-V01-pc
25 Version : Kunlun-A1901-V4.1.3-20200414093938
27 Release Date : 2020-04-14
33 [root@linux loongson]# dmidecode
/linux-6.8/tools/perf/arch/loongarch/entry/syscalls/
Dmksyscalltbl2 # 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
11 gcc=$1
16 if ! test -r $input; then
18 exit 1
41 $gcc -E -dM -x c -I $incpath/include/uapi $input \
44 print | "sort -k2 -n"}' \
/linux-6.8/arch/loongarch/include/uapi/asm/
Dauxvec.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Author: Hanlu Li <lihanlu@loongson.cn>
4 * Huacai Chen <chenhuacai@loongson.cn>
6 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
15 #define AT_VECTOR_SIZE_ARCH 1 /* entries in ARCH_DLINFO */
/linux-6.8/drivers/rtc/
Drtc-loongson.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loongson RTC driver
5 * Maintained out-of-tree by Huacai Chen <chenhuacai@kernel.org>.
7 * Binbin Zhou <zhoubinbin@loongson.cn>
20 #define TOY_WRITE0_REG 0x24 /* TOY low 32-bits value (write-only) */
21 #define TOY_WRITE1_REG 0x28 /* TOY high 32-bits value (write-only) */
22 #define TOY_READ0_REG 0x2c /* TOY low 32-bits value (read-only) */
23 #define TOY_READ1_REG 0x30 /* TOY high 32-bits value (read-only) */
25 #define TOY_MATCH1_REG 0x38 /* TOY timing interrupt 1 */
31 #define RTC_WRITE0_REG 0x64 /* RTC counters value (write-only) */
[all …]
/linux-6.8/arch/loongarch/power/
Dplatform.c1 // SPDX-License-Identifier: GPL-2.0
3 * Author: Huacai Chen <chenhuacai@loongson.cn>
4 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
10 #include <asm/loongson.h>
31 acpi_write_bit_register(ACPI_BITREG_PCIEXP_WAKE_STATUS, 1); in enable_pci_wakeup()
46 acpi_write_bit_register(ACPI_BITREG_SCI_ENABLE, 1); in loongson3_acpi_suspend_init()
50 return -1; in loongson3_acpi_suspend_init()

12345678910>>...12