/external/arm-trusted-firmware/drivers/brcm/ |
D | iproc_gpio.c | 22 #define PINMUX_OFFSET(gpio) ((gpio) * 4) argument 23 #define PINCONF_OFFSET(gpio) ((gpio) * 4) argument 55 static void gpio_set_bit(uintptr_t base, unsigned int reg, int gpio, bool set) in gpio_set_bit() argument 57 unsigned int offset = IPROC_GPIO_REG(gpio, reg); in gpio_set_bit() 58 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in gpio_set_bit() 70 static bool gpio_get_bit(uintptr_t base, unsigned int reg, int gpio) in gpio_get_bit() argument 72 unsigned int offset = IPROC_GPIO_REG(gpio, reg); in gpio_get_bit() 73 unsigned int shift = IPROC_GPIO_SHIFT(gpio); in gpio_get_bit() 78 static void mux_to_gpio(struct iproc_gpio *g, int gpio) in mux_to_gpio() argument 82 mmio_write_32(g->pinmux_base + PINMUX_OFFSET(gpio), in mux_to_gpio() [all …]
|
/external/arm-trusted-firmware/fdts/ |
D | stm32mp15xxaa-pinctrl.dtsi | 10 gpioa: gpio@50002000 { 13 gpio-ranges = <&pinctrl 0 0 16>; 16 gpiob: gpio@50003000 { 19 gpio-ranges = <&pinctrl 0 16 16>; 22 gpioc: gpio@50004000 { 25 gpio-ranges = <&pinctrl 0 32 16>; 28 gpiod: gpio@50005000 { 31 gpio-ranges = <&pinctrl 0 48 16>; 34 gpioe: gpio@50006000 { 37 gpio-ranges = <&pinctrl 0 64 16>; [all …]
|
D | stm32mp15xxac-pinctrl.dtsi | 10 gpioa: gpio@50002000 { 13 gpio-ranges = <&pinctrl 0 0 16>; 16 gpiob: gpio@50003000 { 19 gpio-ranges = <&pinctrl 0 16 16>; 22 gpioc: gpio@50004000 { 25 gpio-ranges = <&pinctrl 0 32 16>; 28 gpiod: gpio@50005000 { 31 gpio-ranges = <&pinctrl 0 48 16>; 34 gpioe: gpio@50006000 { 37 gpio-ranges = <&pinctrl 0 64 16>; [all …]
|
D | stm32mp15xxab-pinctrl.dtsi | 10 gpioa: gpio@50002000 { 13 gpio-ranges = <&pinctrl 0 0 16>; 16 gpiob: gpio@50003000 { 19 gpio-ranges = <&pinctrl 0 16 16>; 22 gpioc: gpio@50004000 { 25 gpio-ranges = <&pinctrl 0 32 16>; 28 gpiod: gpio@50005000 { 31 gpio-ranges = <&pinctrl 0 48 16>; 34 gpioe: gpio@50006000 { 37 gpio-ranges = <&pinctrl 0 64 16>; [all …]
|
D | stm32mp15xxad-pinctrl.dtsi | 10 gpioa: gpio@50002000 { 13 gpio-ranges = <&pinctrl 0 0 16>; 16 gpiob: gpio@50003000 { 19 gpio-ranges = <&pinctrl 0 16 16>; 22 gpioc: gpio@50004000 { 25 gpio-ranges = <&pinctrl 0 32 16>; 28 gpiod: gpio@50005000 { 31 gpio-ranges = <&pinctrl 0 48 16>; 34 gpioe: gpio@50006000 { 37 gpio-ranges = <&pinctrl 0 64 16>; [all …]
|
D | stm32mp151.dtsi | 483 gpioa: gpio@50002000 { 484 gpio-controller; 485 #gpio-cells = <2>; 494 gpiob: gpio@50003000 { 495 gpio-controller; 496 #gpio-cells = <2>; 505 gpioc: gpio@50004000 { 506 gpio-controller; 507 #gpio-cells = <2>; 516 gpiod: gpio@50005000 { [all …]
|
/external/arm-trusted-firmware/drivers/arm/pl061/ |
D | pl061_gpio.c | 34 static int pl061_get_direction(int gpio); 35 static void pl061_set_direction(int gpio, int direction); 36 static int pl061_get_value(int gpio); 37 static void pl061_set_value(int gpio, int value); 48 static int pl061_get_direction(int gpio) in pl061_get_direction() argument 53 assert((gpio >= 0) && (gpio < PLAT_PL061_MAX_GPIOS)); in pl061_get_direction() 55 base_addr = pl061_reg_base[gpio / GPIOS_PER_PL061]; in pl061_get_direction() 56 offset = gpio % GPIOS_PER_PL061; in pl061_get_direction() 63 static void pl061_set_direction(int gpio, int direction) in pl061_set_direction() argument 68 assert((gpio >= 0) && (gpio < PLAT_PL061_MAX_GPIOS)); in pl061_set_direction() [all …]
|
/external/arm-trusted-firmware/drivers/rpi3/gpio/ |
D | rpi3_gpio.c | 16 static int rpi3_gpio_get_direction(int gpio); 17 static void rpi3_gpio_set_direction(int gpio, int direction); 18 static int rpi3_gpio_get_value(int gpio); 19 static void rpi3_gpio_set_value(int gpio, int value); 20 static void rpi3_gpio_set_pull(int gpio, int pull); 43 int rpi3_gpio_get_select(int gpio) in rpi3_gpio_get_select() argument 46 int regN = gpio / 10; in rpi3_gpio_get_select() 47 int shift = 3 * (gpio % 10); in rpi3_gpio_get_select() 69 void rpi3_gpio_set_select(int gpio, int fsel) in rpi3_gpio_set_select() argument 71 int regN = gpio / 10; in rpi3_gpio_set_select() [all …]
|
/external/arm-trusted-firmware/drivers/gpio/ |
D | gpio.c | 22 int gpio_get_direction(int gpio) in gpio_get_direction() argument 26 assert(gpio >= 0); in gpio_get_direction() 28 return ops->get_direction(gpio); in gpio_get_direction() 31 void gpio_set_direction(int gpio, int direction) in gpio_set_direction() argument 36 assert(gpio >= 0); in gpio_set_direction() 38 ops->set_direction(gpio, direction); in gpio_set_direction() 41 int gpio_get_value(int gpio) in gpio_get_value() argument 45 assert(gpio >= 0); in gpio_get_value() 47 return ops->get_value(gpio); in gpio_get_value() 50 void gpio_set_value(int gpio, int value) in gpio_set_value() argument [all …]
|
/external/arm-trusted-firmware/include/drivers/ |
D | gpio.h | 23 int (*get_direction)(int gpio); 24 void (*set_direction)(int gpio, int direction); 25 int (*get_value)(int gpio); 26 void (*set_value)(int gpio, int value); 27 void (*set_pull)(int gpio, int pull); 28 int (*get_pull)(int gpio); 31 int gpio_get_direction(int gpio); 32 void gpio_set_direction(int gpio, int direction); 33 int gpio_get_value(int gpio); 34 void gpio_set_value(int gpio, int value); [all …]
|
/external/arm-trusted-firmware/plat/rockchip/rk3399/drivers/gpio/ |
D | rk3399_gpio.c | 160 static int get_pull(int gpio) in get_pull() argument 162 uint32_t port = GET_GPIO_PORT(gpio); in get_pull() 163 uint32_t bank = GET_GPIO_BANK(gpio); in get_pull() 164 uint32_t id = GET_GPIO_ID(gpio); in get_pull() 169 clock_state = gpio_get_clock(gpio); in get_pull() 180 gpio_put_clock(gpio, clock_state); in get_pull() 202 static void set_pull(int gpio, int pull) in set_pull() argument 204 uint32_t port = GET_GPIO_PORT(gpio); in set_pull() 205 uint32_t bank = GET_GPIO_BANK(gpio); in set_pull() 206 uint32_t id = GET_GPIO_ID(gpio); in set_pull() [all …]
|
/external/dtc/tests/ |
D | bad-gpio.dts | 4 gpio: gpio-controller { label 5 #gpio-cells = <3>; 10 foo-gpios = <&gpio>; 11 bar-gpio = <&gpio 1 2 3>;
|
/external/arm-trusted-firmware/drivers/renesas/rcar/ddr/ |
D | dram_sub_func.c | 42 uint32_t gpio; in rcar_dram_get_boot_status() local 47 gpio = GPIO_INDT3; in rcar_dram_get_boot_status() 50 gpio = GPIO_INDT6; in rcar_dram_get_boot_status() 53 gpio = GPIO_INDT1; in rcar_dram_get_boot_status() 56 reg_data = mmio_read_32(gpio); in rcar_dram_get_boot_status() 83 uint32_t gpio; in rcar_dram_update_boot_status() local 92 gpio = GPIO_INDT3; in rcar_dram_update_boot_status() 99 gpio = GPIO_INDT6; in rcar_dram_update_boot_status() 106 gpio = GPIO_INDT1; in rcar_dram_update_boot_status() 137 reg_data = mmio_read_32(gpio); in rcar_dram_update_boot_status()
|
/external/arm-trusted-firmware/plat/marvell/armada/a8k/common/ |
D | plat_pm.c | 496 unsigned int gpio; in plat_marvell_power_off_gpio() local 504 assert((pm_cfg->cfg.gpio.pin_count < PMIC_GPIO_MAX_NUMBER) && in plat_marvell_power_off_gpio() 505 (pm_cfg->cfg.gpio.step_count < PMIC_GPIO_MAX_TOGGLE_STEP)); in plat_marvell_power_off_gpio() 508 for (gpio = 0; gpio < pm_cfg->cfg.gpio.pin_count; gpio++) { in plat_marvell_power_off_gpio() 509 info = &pm_cfg->cfg.gpio.info[gpio]; in plat_marvell_power_off_gpio() 526 mdelay(pm_cfg->cfg.gpio.delay_ms); in plat_marvell_power_off_gpio() 531 for (idx = 0; idx < pm_cfg->cfg.gpio.step_count; idx++) { in plat_marvell_power_off_gpio() 532 tog_bits = pm_cfg->cfg.gpio.seq[idx]; in plat_marvell_power_off_gpio() 537 info = &pm_cfg->cfg.gpio.info[0]; in plat_marvell_power_off_gpio() 542 for (gpio = 0; gpio < pm_cfg->cfg.gpio.pin_count; gpio++) { in plat_marvell_power_off_gpio() [all …]
|
/external/arm-trusted-firmware/plat/mediatek/mt8183/drivers/gpio/ |
D | mtgpio.c | 363 void mt_set_gpio_dir(int gpio, int direction) in mt_set_gpio_dir() argument 365 mt_set_gpio_dir_chip((uint32_t)gpio, direction); in mt_set_gpio_dir() 368 int mt_get_gpio_dir(int gpio) in mt_get_gpio_dir() argument 372 pin = (uint32_t)gpio; in mt_get_gpio_dir() 376 void mt_set_gpio_pull(int gpio, int pull) in mt_set_gpio_pull() argument 380 pin = (uint32_t)gpio; in mt_set_gpio_pull() 384 int mt_get_gpio_pull(int gpio) in mt_get_gpio_pull() argument 388 pin = (uint32_t)gpio; in mt_get_gpio_pull() 392 void mt_set_gpio_out(int gpio, int value) in mt_set_gpio_out() argument 396 pin = (uint32_t)gpio; in mt_set_gpio_out() [all …]
|
D | mtgpio.h | 138 void mt_set_gpio_dir(int gpio, int direction); 139 int mt_get_gpio_dir(int gpio); 142 void mt_set_gpio_pull(int gpio, int pull); 143 int mt_get_gpio_pull(int gpio); 146 void mt_set_gpio_out(int gpio, int value); 147 int mt_get_gpio_out(int gpio); 148 int mt_get_gpio_in(int gpio); 151 void mt_set_gpio_mode(int gpio, int mode); 152 int mt_get_gpio_mode(int gpio);
|
/external/arm-trusted-firmware/drivers/renesas/rcar/cpld/ |
D | ulcb_cpld.c | 34 static void gpio_set_value(uint32_t addr, uint8_t gpio, uint32_t val) in gpio_set_value() argument 40 reg |= (1 << gpio); in gpio_set_value() 42 reg &= ~(1 << gpio); in gpio_set_value() 46 static void gpio_direction_output(uint32_t addr, uint8_t gpio) in gpio_direction_output() argument 51 reg |= (1 << gpio); in gpio_direction_output() 55 static void gpio_pfc(uint32_t addr, uint8_t gpio) in gpio_pfc() argument 60 reg &= ~(1 << gpio); in gpio_pfc()
|
/external/arm-trusted-firmware/plat/marvell/armada/a8k/a80x0/board/ |
D | marvell_plat_config.c | 168 .cfg.gpio.pin_count = 1, 169 .cfg.gpio.info = {{0, 35} }, 170 .cfg.gpio.step_count = 7, 171 .cfg.gpio.seq = {1, 0, 1, 0, 1, 0, 1}, 172 .cfg.gpio.delay_ms = 10, 190 .info.gpio.num = 33, 191 .info.gpio.button_state = HIGH,
|
/external/cpuinfo/test/dmesg/ |
D | galaxy-a3-2016-eu.log | 179 <3>[ 2.166514] [0: swapper/0: 1] cod3022x 3-a004: Unable to configure codec gpio as idle 214 <3>[ 2.279578] [0: swapper/0: 1] cod3022x 3-a004: Unable to configure codec gpio as idle 265 <6>[ 2.287305] [0: swapper/0: 1] check_dt: gpio: 0, regulator: 2, delay: 2, pinctrl: 1 300 <6>[ 2.304246] [0: swapper/0: 1] Decon: eint irq(557), gpio number(123), ret(0). 397 <6>[ 2.318687] [0: swapper/0: 1] gpio-keys gpio_keys.21: POWER_KEY(116) , gpio_val(1) 398 <6>[ 2.318696] [0: swapper/0: 1] gpio-keys gpio_keys.21: VOL_DOWN(114) , gpio_val(1) 399 <6>[ 2.318705] [0: swapper/0: 1] gpio-keys gpio_keys.21: VOL_UP(115) , gpio_val(1) 400 <6>[ 2.318714] [0: swapper/0: 1] gpio-keys gpio_keys.21: HOME_KEY(172) , gpio_val(1) 441 <6>[ 2.325212] [0: swapper/0: 1] gpio initial-state: gpa0-0 IN/PD/L 442 <6>[ 2.325223] [0: swapper/0: 1] gpio initial-state: gpa0-1 INT/NP/H [all …]
|
/external/arm-trusted-firmware/plat/mediatek/mt8192/drivers/gpio/ |
D | mtgpio.c | 283 static void mt_set_gpio_dir(int gpio, int direction) in mt_set_gpio_dir() argument 285 mt_set_gpio_dir_chip((uint32_t)gpio, direction); in mt_set_gpio_dir() 288 static int mt_get_gpio_dir(int gpio) in mt_get_gpio_dir() argument 292 pin = (uint32_t)gpio; in mt_get_gpio_dir() 296 static void mt_set_gpio_pull(int gpio, int pull) in mt_set_gpio_pull() argument 300 pin = (uint32_t)gpio; in mt_set_gpio_pull() 304 static int mt_get_gpio_pull(int gpio) in mt_get_gpio_pull() argument 308 pin = (uint32_t)gpio; in mt_get_gpio_pull() 312 static void mt_set_gpio_out(int gpio, int value) in mt_set_gpio_out() argument 316 pin = (uint32_t)gpio; in mt_set_gpio_out() [all …]
|
/external/adhd/cras/src/server/ |
D | cras_alsa_jack.c | 90 struct cras_gpio_jack gpio; member 198 free(jack->gpio.device_name); in cras_free_jack() 199 if (jack->gpio.fd >= 0) { in cras_free_jack() 201 cras_system_rm_select_fd(jack->gpio.fd); in cras_free_jack() 202 close(jack->gpio.fd); in cras_free_jack() 223 return jack->gpio.current_state; in get_jack_current_state() 258 jack->gpio.current_state = 0; in check_jack_edid() 331 jack->gpio.current_state = 0; in jack_state_change_cb() 354 int r = sys_input_get_switch_state(jack->gpio.fd, in gpio_switch_initial_state() 355 jack->gpio.switch_event, &v); in gpio_switch_initial_state() [all …]
|
/external/linux-kselftest/tools/testing/selftests/gpio/ |
D | Makefile | 12 TEST_PROGS := gpio-mockup.sh 13 TEST_FILES := gpio-mockup-sysfs.sh 14 TEST_PROGS_EXTENDED := gpio-mockup-chardev 16 GPIODIR := $(realpath ../../../gpio) 17 GPIOOBJ := gpio-utils.o
|
D | gpio-mockup-sysfs.sh | 7 active_low_sysfs=`cat $GPIO_SYSFS/gpio$nr/active_low` 8 val_sysfs=`cat $GPIO_SYSFS/gpio$nr/value` 9 dir_sysfs=`cat $GPIO_SYSFS/gpio$nr/direction` 43 echo $direction > $GPIO_SYSFS/gpio$nr/direction 44 echo $active_low > $GPIO_SYSFS/gpio$nr/active_low 46 echo $value > $GPIO_SYSFS/gpio$nr/value
|
/external/arm-trusted-firmware/plat/brcm/board/stingray/src/ |
D | bl2_setup.c | 495 static uint8_t gpio_get_state(int gpio) in gpio_get_state() argument 500 gpio_set_direction(gpio, GPIO_DIR_IN); in gpio_get_state() 503 if (gpio_get_value(gpio) == GPIO_LEVEL_HIGH) in gpio_get_state() 514 gpio_set_pull(gpio, GPIO_PULL_DOWN); in gpio_get_state() 515 if (gpio_get_value(gpio) == GPIO_LEVEL_HIGH) { in gpio_get_state() 524 gpio_set_pull(gpio, GPIO_PULL_UP); in gpio_get_state() 525 if (gpio_get_value(gpio) == GPIO_LEVEL_LOW) { in gpio_get_state() 535 if (gpio_get_pull(gpio) != GPIO_PULL_NONE) in gpio_get_state() 536 gpio_set_pull(gpio, GPIO_PULL_NONE); in gpio_get_state() 545 int gpio; in board_detect_gpio() local [all …]
|
/external/arm-trusted-firmware/plat/socionext/synquacer/ |
D | sq_psci.c | 108 volatile uint32_t *gpio = (uint32_t *)PLAT_SQ_GPIO_BASE; in sq_system_off() local 111 gpio[5] |= 0x2; /* set output */ in sq_system_off() 112 gpio[1] |= 0x2; /* set high */ in sq_system_off() 120 gpio[1] &= ~0x2; /* set low */ in sq_system_off() 125 gpio[1] |= 0x2; /* set high */ in sq_system_off()
|