Home
last modified time | relevance | path

Searched +full:cs +full:- +full:inactive +full:- +full:disable (Results 1 – 25 of 102) sorted by relevance

12345

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/
H A Dspi-rockchip.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/spi/spi-rockchip.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
14 - $ref: "spi-controller.yaml#"
17 - Heiko Stuebner <heiko@sntech.de>
23 - const: rockchip,rk3036-spi
24 - const: rockchip,rk3066-spi
25 - const: rockchip,rk3228-spi
26 - const: rockchip,rv1108-spi
[all …]
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dmvebu_a3700_spi.c6 * SPDX-License-Identifier: GPL-2.0+
43 static void spi_cs_activate(struct spi_reg *reg, int cs) in spi_cs_activate() argument
45 setbits_le32(&reg->ctrl, MVEBU_SPI_A3700_SPI_EN_0 << cs); in spi_cs_activate()
48 static void spi_cs_deactivate(struct spi_reg *reg, int cs) in spi_cs_deactivate() argument
50 clrbits_le32(&reg->ctrl, MVEBU_SPI_A3700_SPI_EN_0 << cs); in spi_cs_deactivate()
54 * spi_legacy_shift_byte() - triggers the real SPI transfer
65 * one-byte. Also, it does not guarantee that it will work if transfer
66 * type becomes two-byte. See spi_set_legacy() for details.
78 * Return: 0 - cool
79 * -ETIMEDOUT - XFER_RDY flag timeout
[all …]
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-sifive.c1 // SPDX-License-Identifier: GPL-2.0
95 u32 cs_inactive; /* level of the CS pins when inactive */
96 struct completion done; /* wake-up from interrupt */
101 iowrite32(value, spi->regs + offset); in sifive_spi_write()
106 return ioread32(spi->regs + offset); in sifive_spi_read()
118 /* Set CS/SCK Delays and Inactive Time to defaults */ in sifive_spi_init()
126 /* Exit specialized memory-mapped SPI flash mode */ in sifive_spi_init()
134 struct spi_device *device = msg->spi; in sifive_spi_prepare_message()
137 if (device->mode & SPI_CS_HIGH) in sifive_spi_prepare_message()
138 spi->cs_inactive &= ~BIT(device->chip_select); in sifive_spi_prepare_message()
[all …]
H A Dspi-omap2-mcspi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include <linux/dma-mapping.h>
30 #include <linux/platform_data/spi-omap2-mcspi.h>
47 /* per-channel banks, 0x14 bytes each, first is: */
54 /* per-register bitmasks: */
90 /* We have 2 DMA channels per CS, one for RX and one for TX */
115 struct list_head cs; member
149 writel_relaxed(val, mcspi->base + idx); in mcspi_write_reg()
156 return readl_relaxed(mcspi->base + idx); in mcspi_read_reg()
162 struct omap2_mcspi_cs *cs = spi->controller_state; in mcspi_write_cs_reg() local
[all …]
H A Dspi-xilinx.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * 2002-2007 (c) MontaVista Software, Inc.
56 #define XSPI_SSR_OFFSET 0x70 /* 32-bit Slave Select Register */
91 u32 cs_inactive; /* Level of the CS pins when inactive*/
120 if (!xspi->tx_ptr) { in xilinx_spi_tx()
121 xspi->write_fn(0, xspi->regs + XSPI_TXD_OFFSET); in xilinx_spi_tx()
125 switch (xspi->bytes_per_word) { in xilinx_spi_tx()
127 data = *(u8 *)(xspi->tx_ptr); in xilinx_spi_tx()
130 data = *(u16 *)(xspi->tx_ptr); in xilinx_spi_tx()
133 data = *(u32 *)(xspi->tx_ptr); in xilinx_spi_tx()
[all …]
H A Dspi-rockchip.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Addy Ke <addy.ke@rock-chips.com>
22 #define DRIVER_NAME "rockchip-spi"
164 * SPI_CTRLR1 is 16-bits, so we should support lengths of 0xffff + 1. However,
169 /* 2 for native cs, 2 for cs-gpio */
222 bool cs_inactive; /* spi slave tansmition stop when cs inactive */
223 bool cs_high_supported; /* native CS supports active-high polarity */
236 writel_relaxed((enable ? 1U : 0U), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip()
246 if (slave_mode && rs->version == ROCKCHIP_SPI_VER2_TYPE2) { in wait_for_tx_idle()
255 if ((readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & bit_filed) == idle_val) { in wait_for_tx_idle()
[all …]
H A Dspi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/dma-mapping.h>
16 #include <linux/clk/clk-conf.h>
20 #include <linux/spi/spi-mem.h>
50 spi_controller_put(spi->controller); in spidev_release()
51 kfree(spi->driver_override); in spidev_release()
61 len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1); in modalias_show()
62 if (len != -ENODEV) in modalias_show()
65 return sprintf(buf, "%s%s\n", SPI_MODULE_PREFIX, spi->modalias); in modalias_show()
75 const size_t len = end ? end - buf : count; in driver_override_store()
[all …]
H A Dspi-bcm-qspi.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <linux/spi/spi-mem.h>
25 #include "spi-bcm-qspi.h"
152 /* events that make us deassert CS */
236 return qspi->bspi_mode; in has_bspi()
239 /* hardware supports spcr3 and fast baud-rate */
243 ((qspi->mspi_maj_rev >= 1) && in bcm_qspi_has_fastbr()
244 (qspi->mspi_min_rev >= 5))) in bcm_qspi_has_fastbr()
253 if (!has_bspi(qspi) && (qspi->mspi_spcr3_sysclk || in bcm_qspi_has_sysclk_108()
254 ((qspi->mspi_maj_rev >= 1) && in bcm_qspi_has_sysclk_108()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Drv1103g-evb-mcu-display-v11.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "rv1103g-evb-v11.dts"
9 #include <dt-bindings/display/media-bus-format.h>
14 compatible = "pwm-backlight";
16 brightness-levels = <
49 default-brightness-level = <50>;
52 reserved-memory {
53 #address-cells = <1>;
54 #size-cells = <1>;
[all …]
H A Drv1106-evb-ext-mcu-v10.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/display/media-bus-format.h>
11 compatible = "pwm-backlight";
13 brightness-levels = <
46 default-brightness-level = <200>;
49 reserved-memory {
50 #address-cells = <1>;
51 #size-cells = <1>;
55 compatible = "shared-dma-pool";
56 inactive;
[all …]
H A Dda850-evm.dts1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
12 compatible = "ti,da850-evm", "ti,da850";
13 model = "DA850/AM1808/OMAP-L138 EVM";
16 stdout-path = &serial2;
27 backlight: backlight-pwm {
28 pinctrl-names = "default";
29 pinctrl-0 = <&ecap2_pins>;
[all …]
H A Dam43x-epos-evm.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
8 /dts-v1/;
11 #include <dt-bindings/pinctrl/am43xx.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/pwm/pwm.h>
14 #include <dt-bindings/sound/tlv320aic31xx-micbias.h>
18 compatible = "ti,am43x-epos-evm","ti,am438x","ti,am43";
25 stdout-path = &uart0;
28 vmmcsd_fixed: fixedregulator-sd {
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-omap2/
H A Dclockdomain.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2008-2011 Texas Instruments, Inc.
6 * Copyright (C) 2008-2011 Nokia Corporation
22 #include <linux/clk-provider.h>
56 if (!strcmp(name, temp_clkdm->name)) { in _clkdm_lookup()
66 * _clkdm_register - register a clockdomain
70 * Returns -EINVAL if given a null pointer, -EEXIST if a clockdomain is
77 if (!clkdm || !clkdm->name) in _clkdm_register()
78 return -EINVAL; in _clkdm_register()
80 pwrdm = pwrdm_lookup(clkdm->pwrdm.name); in _clkdm_register()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_scheduler.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 * (C) COPYRIGHT 2019-2022 ARM Limited. All rights reserved.
18 * http://www.gnu.org/licenses/gpl-2.0.html.
29 * kbase_csf_scheduler_queue_start() - Enable the running of GPU command queue
39 * Return: 0 on success, or negative on failure. -EBUSY is returned to
46 * kbase_csf_scheduler_queue_stop() - Disable the running of GPU command queue
58 * kbase_csf_scheduler_group_protm_enter - Handle the protm enter event for the
71 * kbase_csf_scheduler_group_get_slot() - Checks if a queue group is
86 * kbase_csf_scheduler_group_get_slot_locked() - Checks if a queue group is
100 * kbase_csf_scheduler_group_events_enabled() - Checks if interrupt events
[all …]
H A Dmali_kbase_csf_firmware_log.c1 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
18 * http://www.gnu.org/licenses/gpl-2.0.html.
31 * ARMv7 instruction: Branch with Link calls a subroutine at a PC-relative address.
36 * ARMv7 instruction: Branch with Link calls a subroutine at a PC-relative address, maximum
39 #define ARMV7_T1_BL_IMM_RANGE_MIN -16777216
42 * ARMv7 instruction: Branch with Link calls a subroutine at a PC-relative address, maximum
61 dev_err(kbdev->dev, "Couldn't get the firmware trace buffer"); in kbase_csf_firmware_log_enable_mask_read()
62 return -EIO; in kbase_csf_firmware_log_enable_mask_read()
78 dev_err(kbdev->dev, "Couldn't get the firmware trace buffer"); in kbase_csf_firmware_log_enable_mask_write()
79 return -EIO; in kbase_csf_firmware_log_enable_mask_write()
[all …]
H A Dmali_kbase_csf_defs.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 * (C) COPYRIGHT 2018-2023 ARM Limited. All rights reserved.
18 * http://www.gnu.org/licenses/gpl-2.0.html.
64 * enum kbase_csf_queue_bind_state - bind state of the queue
80 * enum kbase_csf_reset_gpu_state - state of the gpu reset
117 * enum kbase_csf_group_state - state of the GPU command queue group
119 * @KBASE_CSF_GROUP_INACTIVE: Group is inactive and won't be
123 * and is subjected to time-slice based
126 * group is assigned the CS
134 * slots left after scheduling non-idle
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/include/asm/
H A Dps3av.h1 /* SPDX-License-Identifier: GPL-2.0-only */
218 /* audio_ctrl_data[0] de-emphasis */
422 struct ps3av_info_cs cs; member
439 /* backend: enable/disable event */
445 /* backend: video cs param */
469 /* backend: video disable signal */
619 /* audio: active/inactive */
622 u32 audio_port; /* in: audio active/inactive port */
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dam43x-epos-evm.dts2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
11 /dts-v1/;
14 #include <dt-bindings/pinctrl/am43xx.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/pwm/pwm.h>
17 #include <dt-bindings/sound/tlv320aic31xx-micbias.h>
21 compatible = "ti,am43x-epos-evm","ti,am438x","ti,am43";
28 stdout-path = &uart0;
29 tick-timer = &timer2;
32 vmmcsd_fixed: fixedregulator-sd {
[all …]
/OK3568_Linux_fs/kernel/Documentation/scheduler/
H A Dsched-deadline.rst12 3. Scheduling Real-Time Tasks
18 4.1 System-wide settings
33 system behavior. As for -rt (group) scheduling, it is assumed that root users
50 ------------------
70 with the "traditional" real-time task model (see Section 3) can effectively
76 - Each SCHED_DEADLINE task is characterized by the "runtime",
79 - The state of the task is described by a "scheduling deadline", and
82 - When a SCHED_DEADLINE task wakes up (becomes ready for execution),
86 ---------------------------------- > ---------
87 scheduling deadline - current time period
[all …]
/OK3568_Linux_fs/kernel/drivers/media/v4l2-core/
H A Dv4l2-ctrls.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #define pr_fmt(fmt) "v4l2-ctrls: " fmt
15 #include <media/v4l2-ctrls.h>
16 #include <media/v4l2-dev.h>
17 #include <media/v4l2-device.h>
18 #include <media/v4l2-event.h>
19 #include <media/v4l2-fwnode.h>
20 #include <media/v4l2-ioctl.h>
23 if (!WARN_ON(!(vdev)) && ((vdev)->dev_debug & V4L2_DEV_DEBUG_CTRL)) \
29 (master->ops && master->ops->op)
[all …]
/OK3568_Linux_fs/kernel/arch/s390/kernel/
H A Dperf_cpum_sf.c1 // SPDX-License-Identifier: GPL-2.0
3 * Performance event support for the System z CPU-measurement Sampling Facility
26 /* Minimum number of sample-data-block-tables:
28 * A single table contains up to 511 pointers to sample-data-blocks.
32 /* Number of sample-data-blocks per sample-data-block-table (SDBT):
33 * A table contains SDB pointers (8 bytes) and one table-link entry
36 #define CPUM_SF_SDB_PER_TABLE ((PAGE_SIZE - 8) / 8)
38 /* Maximum page offset for an SDBT table-link entry:
39 * If this page offset is reached, a table-link entry to the next SDBT
51 * the number of sample-data-block-tables into account. Note that these
[all …]
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dptrace.c1 // SPDX-License-Identifier: GPL-2.0-only
92 REG_OFFSET_NAME(cs),
100 * regs_query_register_offset() - query register offset from its name
104 * pt_regs from its name. If the name is invalid, this returns -EINVAL;
109 for (roff = regoffset_table; roff->name != NULL; roff++) in regs_query_register_offset()
110 if (!strcmp(roff->name, name)) in regs_query_register_offset()
111 return roff->offset; in regs_query_register_offset()
112 return -EINVAL; in regs_query_register_offset()
116 * regs_query_register_name() - query register name from its offset
125 for (roff = regoffset_table; roff->name != NULL; roff++) in regs_query_register_name()
[all …]
/OK3568_Linux_fs/u-boot/drivers/ddr/fsl/
H A Dctrl_regs.c2 * Copyright 2008-2014 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
29 * Rtt(nominal) - DDR2:
34 * Rtt(nominal) - DDR3:
49 * if (popts->dimmslot[i].num_valid_cs
50 * && (popts->cs_local_opts[2*i].odt_rd_cfg
51 * || popts->cs_local_opts[2*i].odt_wr_cfg)) {
155 unsigned int ap_n_en = 0; /* Chip select n auto-precharge enable */ in set_csn_config()
174 if (!popts->memctl_interleaving) in set_csn_config()
176 switch (popts->memctl_interleaving_mode) { in set_csn_config()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sun/
H A Dsunhme.h1 /* SPDX-License-Identifier: GPL-2.0 */
38 #define GREG_STAT_ACNTEXP 0x00000004 /* Align-error counter expired */
39 #define GREG_STAT_CCNTEXP 0x00000008 /* CRC-error counter expired */
40 #define GREG_STAT_LCNTEXP 0x00000010 /* Length-error counter expired */
42 #define GREG_STAT_CVCNTEXP 0x00000040 /* Code-violation counter expired */
46 #define GREG_STAT_MAXPKTERR 0x00000400 /* Max-packet size error */
47 #define GREG_STAT_NCNTEXP 0x00000800 /* Normal-collision counter expired */
48 #define GREG_STAT_ECNTEXP 0x00001000 /* Excess-collision counter expired */
49 #define GREG_STAT_LCCNTEXP 0x00002000 /* Late-collision counter expired */
50 #define GREG_STAT_FCNTEXP 0x00004000 /* First-collision counter expired */
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/comedi/drivers/
H A Ds626.c1 // SPDX-License-Identifier: GPL-2.0+
6 * COMEDI - Linux Control and Measurement Device Interface
10 * Copyright (C) 2002-2004 Sensoray Co., Inc.
69 * struct s626_private - Working data for s626 driver.
70 * @ai_cmd_running: non-zero if ai_cmd is running.
99 #define S626_INDXMASK(C) (1 << (((C) > 2) ? ((C) * 2 - 1) : ((C) * 2 + 4)))
103 * Enable/disable a function or test status bit(s) that are accessed
111 writel(val, dev->mmio + reg); in s626_mc_enable()
117 writel(cmd << 16, dev->mmio + reg); in s626_mc_disable()
125 val = readl(dev->mmio + reg); in s626_mc_test()
[all …]

12345