| /linux/drivers/gpio/ |
| H A D | gpio-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/gpio/aspeed.h> 11 #include <linux/gpio/driver.h> 26 * These two headers aren't meant to be used by GPIO drivers. We need 31 #include <linux/gpio/consumer.h> 33 /* Non-constan 256 aspeed_gpio_g4_bank_reg(struct aspeed_gpio * gpio,const struct aspeed_gpio_bank * bank,const enum aspeed_gpio_reg reg) aspeed_gpio_g4_bank_reg() argument 342 find_bank_props(struct aspeed_gpio * gpio,unsigned int offset) find_bank_props() argument 355 have_gpio(struct aspeed_gpio * gpio,unsigned int offset) have_gpio() argument 365 have_input(struct aspeed_gpio * gpio,unsigned int offset) have_input() argument 375 have_output(struct aspeed_gpio * gpio,unsigned int offset) have_output() argument 382 aspeed_gpio_change_cmd_source(struct aspeed_gpio * gpio,unsigned int offset,int cmdsrc) aspeed_gpio_change_cmd_source() argument 388 aspeed_gpio_copro_request(struct aspeed_gpio * gpio,unsigned int offset) aspeed_gpio_copro_request() argument 397 aspeed_gpio_copro_release(struct aspeed_gpio * gpio,unsigned int offset) aspeed_gpio_copro_release() argument 404 aspeed_gpio_support_copro(struct aspeed_gpio * gpio) aspeed_gpio_support_copro() argument 412 struct aspeed_gpio *gpio = gpiochip_get_data(gc); aspeed_gpio_get() local 420 struct aspeed_gpio *gpio = gpiochip_get_data(gc); __aspeed_gpio_set() local 429 struct aspeed_gpio *gpio = gpiochip_get_data(gc); aspeed_gpio_set() local 446 struct aspeed_gpio *gpio = gpiochip_get_data(gc); aspeed_gpio_dir_in() local 465 struct aspeed_gpio *gpio = gpiochip_get_data(gc); aspeed_gpio_dir_out() local 485 struct aspeed_gpio *gpio = gpiochip_get_data(gc); aspeed_gpio_get_direction() local 502 irqd_to_aspeed_gpio_data(struct irq_data * d,struct aspeed_gpio ** gpio,int * offset) irqd_to_aspeed_gpio_data() argument 522 struct aspeed_gpio *gpio; aspeed_gpio_irq_ack() local 542 struct aspeed_gpio *gpio; aspeed_gpio_irq_set_mask() local 584 struct aspeed_gpio *gpio; aspeed_gpio_set_type() local 638 struct aspeed_gpio *gpio = gpiochip_get_data(gc); aspeed_gpio_irq_handler() local 657 struct aspeed_gpio *gpio = gpiochip_get_data(gc); aspeed_init_irq_valid_mask() local 681 struct aspeed_gpio *gpio = gpiochip_get_data(chip); aspeed_gpio_reset_tolerance() local 709 usecs_to_cycles(struct aspeed_gpio * gpio,unsigned long usecs,u32 * cycles) usecs_to_cycles() argument 733 register_allocated_timer(struct aspeed_gpio * gpio,unsigned int offset,unsigned int timer) register_allocated_timer() argument 752 unregister_allocated_timer(struct aspeed_gpio * gpio,unsigned int offset) unregister_allocated_timer() argument 771 timer_allocation_registered(struct aspeed_gpio * gpio,unsigned int offset) timer_allocation_registered() argument 778 configure_timer(struct aspeed_gpio * gpio,unsigned int offset,unsigned int timer) configure_timer() argument 791 struct aspeed_gpio *gpio = gpiochip_get_data(chip); enable_debounce() local 868 struct aspeed_gpio *gpio = gpiochip_get_data(chip); disable_debounce() local 883 struct aspeed_gpio *gpio = gpiochip_get_data(chip); set_debounce() local 944 struct aspeed_gpio *gpio = gpiochip_get_data(chip); aspeed_gpio_copro_grab_gpio() local 989 struct aspeed_gpio *gpio = gpiochip_get_data(chip); aspeed_gpio_copro_release_gpio() local 1021 struct aspeed_gpio *gpio; aspeed_gpio_irq_print_chip() local 1041 aspeed_g4_reg_bit_set(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg,bool val) aspeed_g4_reg_bit_set() argument 1063 aspeed_g4_reg_bit_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g4_reg_bit_get() argument 1072 aspeed_g4_reg_bank_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g4_reg_bank_get() argument 1084 aspeed_g4_privilege_ctrl(struct aspeed_gpio * gpio,unsigned int offset,int cmdsrc) aspeed_g4_privilege_ctrl() argument 1096 aspeed_g4_privilege_init(struct aspeed_gpio * gpio) aspeed_g4_privilege_init() argument 1109 aspeed_g4_copro_request(struct aspeed_gpio * gpio,unsigned int offset) aspeed_g4_copro_request() argument 1130 aspeed_g4_copro_release(struct aspeed_gpio * gpio,unsigned int offset) aspeed_g4_copro_release() argument 1156 aspeed_g7_reg_bit_set(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg,bool val) aspeed_g7_reg_bit_set() argument 1169 aspeed_g7_reg_bit_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g7_reg_bit_get() argument 1185 aspeed_g7_reg_bank_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g7_reg_bank_get() argument 1311 struct aspeed_gpio *gpio; aspeed_gpio_probe() local [all...] |
| H A D | gpio-zynq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Xilinx Zynq GPIO device driver 5 * Copyright (C) 2009 - 2014 Xilinx, Inc. 10 #include <linux/gpio/driver.h> 20 #define DRIVER_NAME "zynq-gpio" 163 zynq_gpio_is_zynq(struct zynq_gpio * gpio) zynq_gpio_is_zynq() argument 174 gpio_data_ro_bug(struct zynq_gpio * gpio) gpio_data_ro_bug() argument 194 zynq_gpio_get_bank_pin(unsigned int pin_num,unsigned int * bank_num,unsigned int * bank_pin_num,struct zynq_gpio * gpio) zynq_gpio_get_bank_pin() argument 229 struct zynq_gpio *gpio = gpiochip_get_data(chip); zynq_gpio_get_value() local 272 struct zynq_gpio *gpio = gpiochip_get_data(chip); zynq_gpio_set_value() local 312 struct zynq_gpio *gpio = gpiochip_get_data(chip); zynq_gpio_dir_in() local 352 struct zynq_gpio *gpio = gpiochip_get_data(chip); zynq_gpio_dir_out() local 386 struct zynq_gpio *gpio = gpiochip_get_data(chip); zynq_gpio_get_direction() local 411 struct zynq_gpio *gpio = zynq_gpio_irq_mask() local 435 struct zynq_gpio *gpio = zynq_gpio_irq_unmask() local 456 struct zynq_gpio *gpio = zynq_gpio_irq_ack() local 507 struct zynq_gpio *gpio = zynq_gpio_set_irq_type() local 572 struct zynq_gpio *gpio = zynq_gpio_set_wake() local 628 zynq_gpio_handle_bank_irq(struct zynq_gpio * gpio,unsigned int bank_num,unsigned long pending) zynq_gpio_handle_bank_irq() argument 657 struct zynq_gpio *gpio = zynq_gpio_irqhandler() local 676 zynq_gpio_save_context(struct zynq_gpio * gpio) zynq_gpio_save_context() argument 705 zynq_gpio_restore_context(struct zynq_gpio * gpio) zynq_gpio_restore_context() argument 740 struct zynq_gpio *gpio = dev_get_drvdata(dev); zynq_gpio_suspend() local 761 struct zynq_gpio *gpio = dev_get_drvdata(dev); zynq_gpio_resume() local 784 struct zynq_gpio *gpio = dev_get_drvdata(dev); zynq_gpio_runtime_suspend() local 793 struct zynq_gpio *gpio = dev_get_drvdata(dev); zynq_gpio_runtime_resume() local 904 struct zynq_gpio *gpio; zynq_gpio_probe() local 1010 struct zynq_gpio *gpio = platform_get_drvdata(pdev); zynq_gpio_remove() local [all...] |
| H A D | gpio-npcm-sgpio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Nuvoton NPCM Serial GPIO Driver 10 #include <linux/gpio/driver.h> 22 #define NPCM_IOXCFG1 0x2A 23 #define NPCM_IOXCFG1_SFT_CLK GENMASK(3, 0) 27 #define NPCM_IOXCTS 0x28 32 #define NPCM_IOXCFG2 0x2B 33 #define NPCM_IOXCFG2_PORT GENMASK(3, 0) 35 #define NPCM_IXOEVCFG_MASK GENMASK(1, 0) 37 #define NPCM_IXOEVCFG_RISING BIT(0) [all …]
|
| H A D | gpio-tqmx86.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * TQ-Systems TQMx86 PLD GPIO driver 12 #include <linux/gpio/driver.h> 23 #define TQMX86_NGPO 4 /* 0-3 - output */ 24 #define TQMX86_NGPI 4 /* 4- 69 tqmx86_gpio_clrsetbits(struct tqmx86_gpio_data * gpio,u8 clr,u8 set,unsigned int reg) tqmx86_gpio_clrsetbits() argument 83 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); tqmx86_gpio_get() local 88 _tqmx86_gpio_set(struct tqmx86_gpio_data * gpio,unsigned int offset,int value) _tqmx86_gpio_set() argument 99 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); tqmx86_gpio_set() local 111 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); tqmx86_gpio_direction_input() local 124 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); tqmx86_gpio_direction_output() local 137 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); tqmx86_gpio_get_direction() local 148 tqmx86_gpio_irq_config(struct tqmx86_gpio_data * gpio,int hwirq) tqmx86_gpio_irq_config() argument 171 struct tqmx86_gpio_data *gpio = gpiochip_get_data( tqmx86_gpio_irq_mask() local 184 struct tqmx86_gpio_data *gpio = gpiochip_get_data( tqmx86_gpio_irq_unmask() local 197 struct tqmx86_gpio_data *gpio = gpiochip_get_data( tqmx86_gpio_irq_set_type() local 228 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); tqmx86_gpio_irq_handler() local 327 struct tqmx86_gpio_data *gpio; tqmx86_gpio_probe() local [all...] |
| H A D | gpio-raspberrypi-exp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Raspberry Pi 3 expander GPIO driver 6 * GPIO expander on the VPU. 12 #include <linux/gpio/driver.h> 15 #include <soc/bcm2835/raspberrypi-firmware.h> 17 #define MODULE_NAME "raspberrypi-exp-gpio" 22 #define RPI_EXP_GPIO_DIR_IN 0 33 u32 gpio; member 42 u32 gpio; member 50 u32 gpio; member [all …]
|
| H A D | gpio-aspeed-sgpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/gpio/driver.h> 22 #define ASPEED_SGPIO_CTRL 0x54 25 #define ASPEED_SGPIO_ENABLE BIT(0) 50 * Note: The "value" register returns the input value when the GPIO is 53 * The "rdata" register returns the output value when the GPIO is 58 .val_regs = 0x0000, 59 .rdata_reg = 0x0070, 60 .irq_regs = 0x0004, 61 .tolerance_regs = 0x0018, [all …]
|
| /linux/arch/arc/boot/dts/ |
| H A D | abilis_tb101.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 15 bus-frequency = <166666666>; 18 clock-frequency = <1000000000>; 21 clock-mult = <1>; 22 clock-div = <2>; 25 clock-mult = <1>; 26 clock-div = <6>; 31 pctl_tsin_s0: pctl-tsin-s0 { /* Serial TS-in 0 */ 34 pctl_tsin_s1: pctl-tsin-s1 { /* Serial TS-in 1 */ 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ [all …]
|
| H A D | abilis_tb100.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 15 bus-frequency = <166666666>; 18 clock-frequency = <1000000000>; 21 clock-mult = <1>; 22 clock-div = <2>; 25 clock-mult = <1>; 26 clock-div = <6>; 31 pctl_tsin_s0: pctl-tsin-s0 { /* Serial TS-in 0 */ 34 pctl_tsin_s1: pctl-tsin-s1 { /* Serial TS-in 1 */ 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-facebook-yosemite4.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/leds/leds-pca955x.h> 8 #include <dt-bindings/i2c/i2c.h> 12 compatible = "facebook,yosemite4-bmc", "aspeed,ast2600"; 44 stdout-path = "serial4:57600n8"; 49 reg = <0x80000000 0x80000000>; 52 reserved-memory { [all …]
|
| /linux/Documentation/devicetree/bindings/gpio/ |
| H A D | gpio-ep9301.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/gpio-ep9301.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: EP93xx GPIO controller 10 - Linus Walleij <linus.walleij@linaro.org> 11 - Bartosz Golaszewski <brgl@bgdev.pl> 12 - Nikita Shubin <nikita.shubin@maquefel.me> 17 - const: cirrus,ep9301-gpio 18 - items: [all …]
|
| /linux/arch/arm64/boot/dts/amlogic/ |
| H A D | amlogic-s6.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/amlogic,pinctrl.h> 10 #include <dt-bindings/power/amlogic,s6-pwrc.h> 13 #address-cells = <2>; 14 #size-cells = <0>; 16 cpu0: cpu@0 { 18 compatible = "arm,cortex-a510"; [all …]
|
| H A D | amlogic-a5.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include "amlogic-a4-common.dtsi" 7 #include "amlogic-a5-reset.h" 8 #include <dt-bindings/pinctrl/amlogic,pinctrl.h> 9 #include <dt-bindings/power/amlogic,a5-pwrc.h> 12 #address-cells = <2>; 13 #size-cells = <0>; 15 cpu0: cpu@0 { 17 compatible = "arm,cortex-a55"; 18 reg = <0x0 0x0>; [all …]
|
| H A D | amlogic-s7d.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/amlogic,pinctrl.h> 10 #include <dt-bindings/power/amlogic,s7d-pwrc.h> 14 #address-cells = <2>; 15 #size-cells = <0>; 17 cpu0: cpu@0 { 19 compatible = "arm,cortex-a55"; [all …]
|
| H A D | amlogic-s7.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/amlogic,pinctrl.h> 10 #include <dt-bindings/power/amlogic,s7-pwrc.h> 14 #address-cells = <2>; 15 #size-cells = <0>; 17 cpu0: cpu@0 { 19 compatible = "arm,cortex-a55"; [all …]
|
| /linux/arch/mips/include/asm/mach-au1x00/ |
| H A D | gpio-au1000.h | 2 * GPIO functions for Au1000, Au1500, Au1100, Au1550, Au1200 12 #include <asm/mach-au1x00/au1000.h> 14 /* The default GPIO numberspace as documented in the Alchemy manuals. 15 * GPIO0-31 from GPIO1 block, GPIO200-215 from GPIO2 block. 17 #define ALCHEMY_GPIO1_BASE 0 22 #define ALCHEMY_GPIO1_MAX (ALCHEMY_GPIO1_BASE + ALCHEMY_GPIO1_NUM - 1) 23 #define ALCHEMY_GPIO2_MAX (ALCHEMY_GPIO2_BASE + ALCHEMY_GPIO2_NUM - 1) 28 #define AU1000_SYS_TRIOUTRD 0x100 29 #define AU1000_SYS_TRIOUTCLR 0x100 30 #define AU1000_SYS_OUTPUTRD 0x108 [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am65-iot2050-arduino-connector.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) Siemens AG, 2018-2023 13 pinctrl-names = 15 "d0-uart0-rxd", "d0-gpio", "d0-gpio-pullup", "d0-gpio-pulldown", 16 "d1-uart0-txd", "d1-gpio", "d1-gpio-pullup", "d1-gpio-pulldown", 17 "d2-uart0-ctsn", "d2-gpio", "d2-gpio-pullup", "d2-gpio-pulldown", 18 "d3-uart0-rtsn", "d3-gpio", "d3-gpio-pullup", "d3-gpio-pulldown", 19 "d10-spi0-cs0", "d10-gpio", "d10-gpio-pullup", "d10-gpio-pulldown", 20 "d11-spi0-d0", "d11-gpio", "d11-gpio-pullup", "d11-gpio-pulldown", 21 "d12-spi0-d1", "d12-gpio", "d12-gpio-pullup", "d12-gpio-pulldown", [all …]
|
| /linux/drivers/ssb/ |
| H A D | driver_gpio.c | 3 * GPIO driver 6 * Copyright 2012, Hauke Mehrtens <hauke@hauke-m.de> 13 #include <linux/gpio/driver.h> 26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_to_irq() argument 30 if (bus->bustype == SSB_BUSTYPE_SSB) in ssb_gpio_to_irq() 31 return irq_find_mapping(bus->irq_domain, gpio); in ssb_gpio_to_irq() 33 return -EINVAL; in ssb_gpio_to_irq() 41 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_get_value() argument 45 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); in ssb_gpio_chipco_get_value() 48 static int ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value() argument [all …]
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | mucmc52.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright 2006-2007 Secret Lab Technologies Ltd. 12 /* Timer pins that need to be in GPIO mode */ 13 &gpt0 { gpio-controller; }; 14 &gpt1 { gpio-controller; }; 15 &gpt2 { gpio-controller; }; 16 &gpt3 { gpio-controller; }; 50 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 54 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 70 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5410-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Exynos5410 SoC pin-mux and pin-config device tree source 9 #include "exynos-pinctrl.h" 12 gpa0: gpa0-gpio-bank { 13 gpio-controller; 14 #gpio-cells = <2>; 16 interrupt-controller; 17 #interrupt-cells = <2>; 20 gpa1: gpa1-gpio-bank { 21 gpio-controller; [all …]
|
| /linux/arch/arm/boot/dts/intel/pxa/ |
| H A D | pxa3xx.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #define MFP_PIN_PXA300(gpio) \ argument 6 ((gpio <= 2) ? (0x00b4 + 4 * gpio) : \ 7 (gpio <= 26) ? (0x027c + 4 * (gpio - 3)) : \ 8 (gpio <= 98) ? (0x0400 + 4 * (gpio - 27)) : \ 9 (gpio <= 127) ? (0x0600 + 4 * (gpio - 99)) : \ 10 0) 11 #define MFP_PIN_PXA300_2(gpio) \ argument 12 ((gpio <= 1) ? (0x674 + 4 * gpio) : \ 13 (gpio <= 6) ? (0x2dc + 4 * gpio) : \ [all …]
|
| /linux/arch/arm64/boot/dts/hisilicon/ |
| H A D | hi3670.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/clock/hi3670-clock.h> 14 interrupt-parent = <&gic>; 15 #address-cells = <2>; 16 #size-cells = <2>; 19 compatible = "arm,psci-0.2"; 24 #address-cells = <2>; 25 #size-cells = <0>; 27 cpu-map { [all …]
|
| /linux/arch/arm/boot/dts/hisilicon/ |
| H A D | hi3620.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2012-2013 HiSilicon Ltd. 6 * Copyright (C) 2012-2013 Linaro Ltd. 11 #include <dt-bindings/clock/hi3620-clock.h> 14 #address-cells = <1>; 15 #size-cells = <1>; 26 compatible = "fixed-clock"; 27 #clock-cells = <0>; 28 clock-frequency = <26000000>; 29 clock-output-names = "apb_pclk"; [all …]
|
| /linux/arch/arm64/boot/dts/lg/ |
| H A D | lg131x.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #address-cells = <2>; 13 #size-cells = <2>; 15 interrupt-parent = <&gic>; 18 #address-cells = <2>; 19 #size-cells = <0>; 21 cpu0: cpu@0 { 23 compatible = "arm,cortex-a53"; [all …]
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-th1520.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Pinctrl driver for the T-Head TH1520 SoC 26 #include <linux/pinctrl/pinconf-generic.h> 41 #define TH1520_PADCFG_DS GENMASK(3, 0) 48 #define TH1520_PAD_MUXDATA GENMASK(29, 0) 67 return thp->base + 4 * (pin / 2); in th1520_padcfg() 72 return 16 * (pin & BIT(0)); in th1520_padcfg_shift() 78 return thp->base + 0x400 + 4 * (pin / 8); in th1520_muxcfg() 83 return 4 * (pin & GENMASK(2, 0)); in th1520_muxcfg_shift() 114 [TH1520_MUX_GPIO] = "gpio", [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
| H A D | base.c | 29 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) in nvkm_gpio_drive() argument 31 return gpio->func->drive(gpio, line, dir, out); in nvkm_gpio_drive() 35 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense() argument 37 return gpio->func->sense(gpio, line); in nvkm_gpio_sense() 41 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() argument 43 if (gpio->func->reset) in nvkm_gpio_reset() 44 gpio->func->reset(gpio, func); in nvkm_gpio_reset() 48 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, in nvkm_gpio_find() argument 51 struct nvkm_device *device = gpio->subdev.device; in nvkm_gpio_find() 52 struct nvkm_bios *bios = device->bios; in nvkm_gpio_find() [all …]
|