Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 25 of 60) sorted by relevance

123

/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/pl061/
Dpl061_gpio.c33 static int pl061_get_direction(int gpio);
34 static void pl061_set_direction(int gpio, int direction);
35 static int pl061_get_value(int gpio);
36 static void pl061_set_value(int gpio, int value);
47 static int pl061_get_direction(int gpio) in pl061_get_direction() argument
52 assert((gpio >= 0) && (gpio < PLAT_PL061_MAX_GPIOS)); in pl061_get_direction()
54 base_addr = pl061_reg_base[gpio / GPIOS_PER_PL061]; in pl061_get_direction()
55 offset = gpio % GPIOS_PER_PL061; in pl061_get_direction()
62 static void pl061_set_direction(int gpio, int direction) in pl061_set_direction() argument
67 assert((gpio >= 0) && (gpio < PLAT_PL061_MAX_GPIOS)); in pl061_set_direction()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/gpio/
Dgpio.c21 int gpio_get_direction(int gpio) in gpio_get_direction() argument
25 assert(gpio >= 0); in gpio_get_direction()
27 return ops->get_direction(gpio); in gpio_get_direction()
30 void gpio_set_direction(int gpio, int direction) in gpio_set_direction() argument
35 assert(gpio >= 0); in gpio_set_direction()
37 ops->set_direction(gpio, direction); in gpio_set_direction()
40 int gpio_get_value(int gpio) in gpio_get_value() argument
44 assert(gpio >= 0); in gpio_get_value()
46 return ops->get_value(gpio); in gpio_get_value()
49 void gpio_set_value(int gpio, int value) in gpio_set_value() argument
[all …]
/device/linaro/bootloader/arm-trusted-firmware/include/drivers/
Dgpio.h21 int (*get_direction)(int gpio);
22 void (*set_direction)(int gpio, int direction);
23 int (*get_value)(int gpio);
24 void (*set_value)(int gpio, int value);
25 void (*set_pull)(int gpio, int pull);
26 int (*get_pull)(int gpio);
29 int gpio_get_direction(int gpio);
30 void gpio_set_direction(int gpio, int direction);
31 int gpio_get_value(int gpio);
32 void gpio_set_value(int gpio, int value);
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/DeviceTree/
Dhi3660.dtsi473 gpio0: gpio@e8a0b000 {
477 gpio-controller;
478 #gpio-cells = <2>;
479 gpio-ranges = <&pmx0 1 0 7>;
486 gpio1: gpio@e8a0c000 {
490 gpio-controller;
491 #gpio-cells = <2>;
492 gpio-ranges = <&pmx0 1 7 7>;
499 gpio2: gpio@e8a0d000 {
503 gpio-controller;
[all …]
Dhi6220.dtsi388 #gpio-range-cells = <3>;
391 pinctrl-single,gpio-range = <
392 &range 80 8 MUX_M0 /* gpio 3: [0..7] */
393 &range 88 8 MUX_M0 /* gpio 4: [0..7] */
394 &range 96 8 MUX_M0 /* gpio 5: [0..7] */
395 &range 104 8 MUX_M0 /* gpio 6: [0..7] */
396 &range 112 8 MUX_M0 /* gpio 7: [0..7] */
397 &range 120 2 MUX_M0 /* gpio 8: [0..1] */
398 &range 2 6 MUX_M1 /* gpio 8: [2..7] */
399 &range 8 8 MUX_M1 /* gpio 9: [0..7] */
[all …]
Dhi6220-hikey.dts12 #include <dt-bindings/gpio/gpio.h>
110 gpio = <&gpio0 7 0>;
182 gpio0: gpio@f8011000 {
183 gpio-line-names = "PWR_HOLD", "DSI_SEL",
188 gpio1: gpio@f8012000 {
189 gpio-line-names = "SD_DET", "HDMI_INT", "PMU_IRQ_N",
193 gpio2: gpio@f8013000 {
194 gpio-line-names =
204 gpio3: gpio@f8014000 {
205 gpio-line-names = "GPIO3_0", "NC", "NC", "", "NC", "",
[all …]
Dhi3660-hikey960.dts13 #include <dt-bindings/gpio/gpio.h>
72 compatible = "gpio-keys";
85 compatible = "gpio-leds";
186 gpio = <&gpio6 3 0>;
229 gpio-line-names =
242 gpio-line-names =
254 gpio-line-names =
266 gpio-line-names =
279 gpio-line-names =
289 gpio-line-names =
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/rk3399/drivers/gpio/
Drk3399_gpio.c156 static int get_pull(int gpio) in get_pull() argument
158 uint32_t port = GET_GPIO_PORT(gpio); in get_pull()
159 uint32_t bank = GET_GPIO_BANK(gpio); in get_pull()
160 uint32_t id = GET_GPIO_ID(gpio); in get_pull()
165 clock_state = gpio_get_clock(gpio); in get_pull()
176 gpio_put_clock(gpio, clock_state); in get_pull()
198 static void set_pull(int gpio, int pull) in set_pull() argument
200 uint32_t port = GET_GPIO_PORT(gpio); in set_pull()
201 uint32_t bank = GET_GPIO_BANK(gpio); in set_pull()
202 uint32_t id = GET_GPIO_ID(gpio); in set_pull()
[all …]
/device/google/contexthub/firmware/os/inc/
Dgpio.h68 void gpioRelease(struct Gpio* __restrict gpio);
71 void gpioConfigInput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull);
72 void gpioConfigOutput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull…
73 void gpioConfigAlt(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull, e…
74 void gpioConfigAnalog(const struct Gpio* __restrict gpio);
77 void gpioSet(const struct Gpio* __restrict gpio, bool value);
78 bool gpioGet(const struct Gpio* __restrict gpio);
DsyscallDo.h239 static inline void eOsGpioRelease(struct Gpio* __restrict gpio) in eOsGpioRelease() argument
241 …ALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_REL), gpio); in eOsGpioRelease()
244 static inline void eOsGpioConfigInput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum G… in eOsGpioConfigInput() argument
246 …N_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_IN), gpio, gpioSpeed, pull); in eOsGpioConfigInput()
249 static inline void eOsGpioConfigOutput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum … in eOsGpioConfigOutput() argument
251 …S, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_OUT), gpio, gpioSpeed, pull, o… in eOsGpioConfigOutput()
254 static inline void eOsGpioConfigAlt(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum Gpi… in eOsGpioConfigAlt() argument
256 …S, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_ALT), gpio, gpioSpeed, pull, o… in eOsGpioConfigAlt()
259 static inline bool eOsGpioGet(const struct Gpio* __restrict gpio) in eOsGpioGet() argument
261 …ALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_GET), gpio); in eOsGpioGet()
[all …]
/device/google/bonito/
Dinit.edge_sense.sh70 gpio_name=gpio${gpio_num}
95 echo ${gpio_index} > /sys/class/gpio/export
98 echo out > /sys/class/gpio/gpio${gpio_index}/direction
101 echo 1 > /sys/class/gpio/gpio${gpio_index}/value
/device/google/crosshatch/
Dinit.edge_sense.sh80 gpio_name=gpio${gpio_num}
105 echo ${gpio_index} > /sys/class/gpio/export
108 echo out > /sys/class/gpio/gpio${gpio_index}/direction
111 echo 1 > /sys/class/gpio/gpio${gpio_index}/value
/device/google/contexthub/firmware/variant/
DREADME11 - wakeup-gpio has direction from Application Processor (AP) to ContextHub
16 - wakeup-gpio = SH_INT_WAKEUP
17 - irq1-gpio = AP_INT_WAKEUP
18 - irq2-gpio = AP_INT_NONWAKEUP
/device/google/contexthub/util/stm32_flash/
Dflash.c90 int gpio; in main() local
164 gpio = open(gpio_dev, O_WRONLY); in main()
165 if (gpio < 0) { in main()
168 if (write_byte(gpio, '1') < 0) in main()
170 close(gpio); in main()
328 gpio = open(gpio_dev, O_WRONLY); in main()
329 if (gpio < 0) { in main()
332 if (write_byte(gpio, '0') < 0) in main()
334 close(gpio); in main()
/device/google/cuttlefish/tools/
Dcreate_base_image_arm.sh339 echo 146 > /sys/class/gpio/export
340 echo out > /sys/class/gpio/gpio146/direction
341 echo 0 > /sys/class/gpio/gpio146/value
342 echo 150 > /sys/class/gpio/export
343 echo out > /sys/class/gpio/gpio150/direction
344 echo 1 > /sys/class/gpio/gpio150/value
349 echo 0 > /sys/class/gpio/gpio146/value
350 echo 146 > /sys/class/gpio/unexport
351 echo 0 > /sys/class/gpio/gpio150/value
352 echo 150 > /sys/class/gpio/unexport
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/common/
Dparams_setup.c61 memcpy(&param_reset, &gpio_param->gpio, in params_early_setup()
67 memcpy(&param_poweroff, &gpio_param->gpio, in params_early_setup()
78 &gpio_param->gpio, in params_early_setup()
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/poplar/
Dplatform.mk47 drivers/gpio/gpio.c \
59 drivers/gpio/gpio.c \
/device/google/barbet-kernel/.prebuilt_info/kernel-and-modules/
Dprebuilt_info_debug_locking_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "debug_locking/pinctrl-spmi-gpio.ko"
Dprebuilt_info_debug_api_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "debug_api/pinctrl-spmi-gpio.ko"
Dprebuilt_info_kasan_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "kasan/pinctrl-spmi-gpio.ko"
/device/google/redbull-kernel/.prebuilt_info/kernel-and-modules/
Dprebuilt_info_debug_api_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "debug_api/pinctrl-spmi-gpio.ko"
Dprebuilt_info_debug_memory_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "debug_memory/pinctrl-spmi-gpio.ko"
Dprebuilt_info_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "pinctrl-spmi-gpio.ko"
Dprebuilt_info_vintf_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "vintf/pinctrl-spmi-gpio.ko"
Dprebuilt_info_kasan_pinctrl-spmi-gpio_ko.asciipb5 source_file: "pinctrl-spmi-gpio.ko"
7 dest_file: "kasan/pinctrl-spmi-gpio.ko"

123