| /OK3568_Linux_fs/kernel/drivers/pinctrl/samsung/ |
| H A D | pinctrl-samsung.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's. 25 * enum pincfg_type - possible pin configuration types supported. 46 * packed together into a 16-bits. The upper 8-bits represent the configuration 47 * type and the lower 8-bits hold the value of the configuration type. 57 * enum eint_type - possible external interrupt types. 58 * @EINT_TYPE_NONE: bank does not support external interrupts 59 * @EINT_TYPE_GPIO: bank supportes external gpio interrupts 60 * @EINT_TYPE_WKUP: bank supportes external wakeup interrupts 61 * @EINT_TYPE_WKUP_MUX: bank supports multiplexed external wakeup interrupts [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | zynq_gpio.c | 6 * Most of code taken from linux kernel driver (linux/drivers/gpio/gpio-zynq.c) 7 * Copyright (C) 2009 - 2014 Xilinx, Inc. 9 * SPDX-License-Identifier: GPL-2.0+ 47 ZYNQ##str##_GPIO_BANK0_NGPIO - 1) 50 ZYNQ##str##_GPIO_BANK1_NGPIO - 1) 53 ZYNQ##str##_GPIO_BANK2_NGPIO - 1) 56 ZYNQ##str##_GPIO_BANK3_NGPIO - 1) 59 ZYNQ##str##_GPIO_BANK4_NGPIO - 1) 62 ZYNQ##str##_GPIO_BANK5_NGPIO - 1) 65 /* LSW Mask & Data -WO */ [all …]
|
| H A D | tegra_gpio.c | 3 * (C) Copyright 2010-2012,2015 6 * SPDX-License-Identifier: GPL-2.0+ 23 #include <dm/device-internal.h> 24 #include <dt-bindings/gpio/gpio.h> 34 struct gpio_ctlr_bank *bank; member 36 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ 39 /* Information about each port at run-time */ 41 struct gpio_ctlr_bank *bank; member 42 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ 49 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config() local [all …]
|
| H A D | Kconfig | 15 is defined in include/asm-generic/gpio.h. 24 is a mechanism providing automatic GPIO request and config- 25 uration as part of the gpio-controller's driver probe function. 34 alloc req_seq both for gpio devices from U-Boot and kernel dtb. 63 lines. Each I/O line may be dedicated as a general-purpose 67 responsible for the general-purpose I/O. 115 This controller have single bank (default name "soc"), every 120 - APQ8016 121 - MSM8916 146 Default name for GPIO bank is "pm8916". [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-zynq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2009 - 2014 Xilinx, Inc. 20 #define DRIVER_NAME "zynq-gpio" 46 ZYNQ##str##_GPIO_BANK0_NGPIO - 1) 49 ZYNQ##str##_GPIO_BANK1_NGPIO - 1) 52 ZYNQ##str##_GPIO_BANK2_NGPIO - 1) 55 ZYNQ##str##_GPIO_BANK3_NGPIO - 1) 58 ZYNQ##str##_GPIO_BANK4_NGPIO - 1) 61 ZYNQ##str##_GPIO_BANK5_NGPIO - 1) 64 /* LSW Mask & Data -WO */ [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/ |
| H A D | pinctrl-st.txt | 3 Each multi-function pin is controlled, driven and routed through the 5 and multiple alternate functions(ALT1 - ALTx) that directly connect 14 GPIO bank can have one of the two possible types of interrupt-wirings. 17 reduces number of overall interrupts numbers required. All these banks belong to 20 | |----> [gpio-bank (n) ] 21 | |----> [gpio-bank (n + 1)] 22 [irqN]-- | irq-mux |----> [gpio-bank (n + 2)] 23 | |----> [gpio-bank (... )] 24 |_________|----> [gpio-bank (n + 7)] 26 Second type has a dedicated interrupt per gpio bank. [all …]
|
| H A D | samsung-pinctrl.txt | 6 on-chip controllers onto these pads. 9 - compatible: should be one of the following. 10 - "samsung,s3c2412-pinctrl": for S3C2412-compatible pin-controller, 11 - "samsung,s3c2416-pinctrl": for S3C2416-compatible pin-controller, 12 - "samsung,s3c2440-pinctrl": for S3C2440-compatible pin-controller, 13 - "samsung,s3c2450-pinctrl": for S3C2450-compatible pin-controller, 14 - "samsung,s3c64xx-pinctrl": for S3C64xx-compatible pin-controller, 15 - "samsung,s5pv210-pinctrl": for S5PV210-compatible pin-controller, 16 - "samsung,exynos3250-pinctrl": for Exynos3250 compatible pin-controller. 17 - "samsung,exynos4210-pinctrl": for Exynos4210 compatible pin-controller. [all …]
|
| H A D | allwinner,sun4i-a10-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/allwinner,sun4i-a10-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#gpio-cells": 17 GPIO consumers must use three arguments, first the number of the 18 bank, then the pin number inside that bank, and finally the GPIO 21 "#interrupt-cells": [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A D | pinctrl-rockchip.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2020-2021 Rockchip Electronics Co. Ltd. 8 * With some ideas taken from pinctrl-samsung: 14 * and pinctrl-at91: 15 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 245 * @offset: if initialized to -1 it will be autocalculated, by specifying 279 * @offset: if initialized to -1 it will be autocalculated, by specifying 292 * @dev: the pinctrl device bind to the bank 293 * @reg_base: register base of the gpio bank 295 * @clk: clock of the gpio bank [all …]
|
| H A D | pinctrl-equilibrium.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 #define DRV_CUR_PINS 16 /* Drive Current pin number per register */ 74 * @nr_groups: number of groups included in @groups. 83 * struct eqbr_pin_bank: represent a pin bank. 84 * @membase: base address of the pin bank register. 85 * @id: bank id, to idenify the unique bank. 86 * @pin_base: starting pin number of the pin bank. 87 * @nr_pins: number of the pins of the pin bank. 88 * @aval_pinmap: available pin bitmap of the pin bank. 101 * @bank: pointer to corresponding pin bank. [all …]
|
| H A D | pinctrl-equilibrium.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/pinctrl/pinconf-generic.h> 18 #include "pinctrl-equilibrium.h" 20 #define PIN_NAME_FMT "io-%d" 31 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_disable_irq() 32 writel(BIT(offset), gctrl->membase + GPIO_IRNENCLR); in eqbr_gpio_disable_irq() 33 raw_spin_unlock_irqrestore(&gctrl->lock, flags); in eqbr_gpio_disable_irq() 43 gc->direction_input(gc, offset); in eqbr_gpio_enable_irq() 44 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_enable_irq() 45 writel(BIT(offset), gctrl->membase + GPIO_IRNRNSET); in eqbr_gpio_enable_irq() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/thermal/ |
| H A D | mtk_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/nvmem-consumer.h> 101 /* The total number of temperature sensors in the MT8173 */ 104 /* The number of banks in the MT8173 */ 107 /* The number of sensing points per bank */ 110 /* The number of controller in the MT8173 */ 174 /* The total number of temperature sensors in the MT2701 */ 177 /* The number of sensing points per bank */ 180 /* The number of controller in the MT2701 */ 195 /* The total number of temperature sensors in the MT2712 */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/dma/ipu/ |
| H A D | ipu_irq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/dma/ipu-dma.h> 20 * Register read / write - shall be inlined by the compiler 24 return __raw_readl(ipu->reg_ipu + reg); in ipu_read_reg() 29 __raw_writel(value, ipu->reg_ipu + reg); in ipu_write_reg() 72 struct ipu_irq_bank *bank; member 96 struct ipu_irq_bank *bank; in ipu_irq_unmask() local 102 bank = map->bank; in ipu_irq_unmask() 103 if (!bank) { in ipu_irq_unmask() 105 pr_err("IPU: %s(%u) - unmapped!\n", __func__, d->irq); in ipu_irq_unmask() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/hwmon/ |
| H A D | abituguru-datasheet.rst | 14 Olle Sandberg <ollebull@gmail.com>, 2005-05-25 27 Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-2006 33 As far as known the uGuru is always placed at and using the (ISA) I/O-ports 34 0xE0 and 0xE4, so we don't have to scan any port-range, just check what the two 35 ports are holding for detection. We will refer to 0xE0 as CMD (command-port) 39 present. We have to check for two different values at data-port, because 41 later on attached again data-port will hold 0x08, more about this later. 57 ---------- 59 The uGuru has a number of different addressing levels. The first addressing 60 level we will call banks. A bank holds data for one or more sensors. The data [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | denali.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (c) 2009 - 2010, Intel Corporation and its suppliers. 18 #define DEVICE_RESET__BANK(bank) BIT(bank) argument 36 #define RB_PIN_ENABLED__BANK(bank) BIT(bank) argument 208 #define INTR_STATUS(bank) (0x410 + (bank) * 0x50) argument 209 #define INTR_EN(bank) (0x420 + (bank) * 0x50) argument 230 #define PAGE_CNT(bank) (0x430 + (bank) * 0x50) argument 231 #define ERR_PAGE_ADDR(bank) (0x440 + (bank) * 0x50) argument 232 #define ERR_BLOCK_ADDR(bank) (0x450 + (bank) * 0x50) argument 254 #define ECC_COR_INFO(bank) (0x650 + (bank) / 2 * 0x10) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/devices/ |
| H A D | spear_smi.c | 157 * struct spear_smi - Structure for SMI Device 165 * @cmd_complete: queue to wait for command completion of NOR-flash. 166 * @num_flashes: number of flashes actually present on board. 167 * @flash: separate structure for each Serial NOR-flash attached to SMI. 182 * struct spear_snor_flash - Structure for Serial NOR Flash 184 * @bank: Bank number(0, 1, 2, 3) for each NOR-flash. 185 * @dev_id: Device ID of NOR-flash. 187 * @mtd: MTD info for each NOR-flash. 188 * @num_parts: Total number of partition in each bank of NOR-flash. 189 * @parts: Partition info for each bank of NOR-flash. [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/soundwire/ |
| H A D | sdw.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 2 /* Copyright(c) 2015-17 Intel Corporation. */ 15 /* SDW Broadcast Device Number */ 18 /* SDW Enumeration Device Number */ 25 /* SDW Master Device Number, not supported yet */ 71 * enum sdw_slave_status - Slave status 89 * @SDW_CLK_PRE_DEPREPARE: pre clock stop de-prepare 90 * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepare 100 * enum sdw_command_response - Command response as defined by SDW spec 180 * enum sdw_p15_behave - Slave Port 15 behaviour when the Master attempts a [all …]
|
| /OK3568_Linux_fs/kernel/drivers/memory/ |
| H A D | jz4780-nemc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Alex Smith <alex@alex-smith.me.uk> 21 #include <linux/jz4780-nemc.h> 23 #define NEMC_SMCRn(n) (0x14 + (((n) - 1) * 4)) 43 #define NEMC_NFCSR_NFEn(n) BIT(((n) - 1) << 1) 44 #define NEMC_NFCSR_NFCEn(n) BIT((((n) - 1) << 1) + 1) 45 #define NEMC_NFCSR_TNFEn(n) BIT(16 + (n) - 1) 62 * jz4780_nemc_num_banks() - count the number of banks referenced by a device 65 * Return: The number of unique NEMC banks referred to by the specified NEMC 66 * child device. Unique here means that a device that references the same bank [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ |
| H A D | st_smi.c | 5 * SPDX-License-Identifier: GPL-2.0+ 82 * smi_wait_xfer_finish - Wait until TFF is set in status register 92 if (readl(&smicntl->smi_sr) & TFF) in smi_wait_xfer_finish() 99 return -1; in smi_wait_xfer_finish() 103 * smi_read_id - Read flash id 105 * @banknum: bank number 107 * Read the flash id present at bank #banknum 113 writel(readl(&smicntl->smi_cr1) | SW_MODE, &smicntl->smi_cr1); in smi_read_id() 114 writel(READ_ID, &smicntl->smi_tr); in smi_read_id() 116 &smicntl->smi_cr2); in smi_read_id() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mtd/ |
| H A D | fsmc-nand.txt | 5 - compatible : "st,spear600-fsmc-nand", "stericsson,fsmc-nand" 6 - reg : Address range of the mtd chip 7 - reg-names: Should contain the reg names "fsmc_regs", "nand_data", "nand_addr" and "nand_cmd" 10 - bank-width : Width (in bytes) of the device. If not present, the width 12 - nand-skip-bbtscan: Indicates the BBT scanning should be skipped 13 - timings: array of 6 bytes for NAND timings. The meanings of these bytes 15 byte 0 TCLR : CLE to RE delay in number of AHB clock cycles, only 4 bits 19 byte 2 THIZ : number of HCLK clock cycles during which the data bus is 20 kept in Hi-Z (tristate) after the start of a write access. 23 byte 3 THOLD : number of HCLK clock cycles to hold the address (and data [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap2/ |
| H A D | powerdomain.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2008, 2011 Texas Instruments, Inc. 6 * Copyright (C) 2007-2011 Nokia Corporation 72 if (!strcmp(name, temp_pwrdm->name)) { in _pwrdm_lookup() 82 * _pwrdm_register - register a powerdomain 86 * -EINVAL if given a null pointer, -EEXIST if a powerdomain is 94 if (!pwrdm || !pwrdm->name) in _pwrdm_register() 95 return -EINVAL; in _pwrdm_register() 98 pwrdm->prcm_partition == OMAP4430_INVALID_PRCM_PARTITION) { in _pwrdm_register() 100 pwrdm->name); in _pwrdm_register() [all …]
|
| H A D | powerdomain.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2007-2008, 2010 Texas Instruments, Inc. 6 * Copyright (C) 2007-2011 Nokia Corporation 10 * XXX This should be moved to the mach-omap2/ directory at the earliest 45 * PWRDM_HAS_HDWR_SAR - powerdomain has hardware save-and-restore support 47 * PWRDM_HAS_MPU_QUIRK - MPU pwr domain has MEM bank 0 bits in MEM 48 * bank 1 position. This is true for OMAP3430 50 * PWRDM_HAS_LOWPOWERSTATECHANGE - can transition from a sleep state 58 * Number of memory banks that are power-controllable. On OMAP4430, the 64 * Maximum number of clockdomains that can be associated with a powerdomain. [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/ |
| H A D | brcm,brcmstb-gpio.txt | 3 The controller's registers are organized as sets of eight 32-bit 4 registers with each set controlling a bank of up to 32 pins. A single 9 - compatible: 10 Must be "brcm,brcmstb-gpio" 12 - reg: 16 - #gpio-cells: 17 Should be <2>. The first cell is the pin number (within the controller's 19 bit[0]: polarity (0 for active-high, 1 for active-low) 21 - gpio-controller: 24 - brcm,gpio-bank-widths: [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/ |
| H A D | gpio.txt | 1 Every GPIO controller node must have #gpio-cells property defined, 2 this information will be used to translate gpio-specifiers. 10 - compatible : "fsl,cpm1-pario-bank-a", "fsl,cpm1-pario-bank-b", 11 "fsl,cpm1-pario-bank-c", "fsl,cpm1-pario-bank-d", 12 "fsl,cpm1-pario-bank-e", "fsl,cpm2-pario-bank" 13 - #gpio-cells : Should be two. The first cell is the pin number and the 15 - gpio-controller : Marks the port as GPIO controller. 17 - fsl,cpm1-gpio-irq-mask : For banks having interrupt capability (like port C 20 - interrupts : This property provides the list of interrupt for each GPIO having 21 one as described by the fsl,cpm1-gpio-irq-mask property. There should be as [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/ |
| H A D | adf_transport.c | 1 // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) 2 /* Copyright(c) 2014 - 2020 Intel Corporation */ 15 return data - mult; in adf_modulo() 20 if (((size - 1) & addr) != 0) in adf_check_ring_alignment() 21 return -EFAULT; in adf_check_ring_alignment() 36 static int adf_reserve_ring(struct adf_etr_bank_data *bank, u32 ring) in adf_reserve_ring() argument 38 spin_lock(&bank->lock); in adf_reserve_ring() 39 if (bank->ring_mask & (1 << ring)) { in adf_reserve_ring() 40 spin_unlock(&bank->lock); in adf_reserve_ring() 41 return -EFAULT; in adf_reserve_ring() [all …]
|