Home
last modified time | relevance | path

Searched refs:pin (Results 1 – 25 of 26) sorted by relevance

12

/rk3399_ARM-atf/plat/mediatek/mt8183/drivers/gpio/
H A Dmtgpio.c34 void mt_set_gpio_dir_chip(uint32_t pin, int dir) in mt_set_gpio_dir_chip() argument
38 assert(pin < MAX_GPIO_PIN); in mt_set_gpio_dir_chip()
41 pos = pin / MAX_GPIO_REG_BITS; in mt_set_gpio_dir_chip()
42 bit = pin % MAX_GPIO_REG_BITS; in mt_set_gpio_dir_chip()
50 int mt_get_gpio_dir_chip(uint32_t pin) in mt_get_gpio_dir_chip() argument
55 assert(pin < MAX_GPIO_PIN); in mt_get_gpio_dir_chip()
57 pos = pin / MAX_GPIO_REG_BITS; in mt_get_gpio_dir_chip()
58 bit = pin % MAX_GPIO_REG_BITS; in mt_get_gpio_dir_chip()
64 void mt_set_gpio_out_chip(uint32_t pin, int output) in mt_set_gpio_out_chip() argument
68 assert(pin < MAX_GPIO_PIN); in mt_set_gpio_out_chip()
[all …]
/rk3399_ARM-atf/plat/mediatek/drivers/gpio/
H A Dmtgpio_common.c29 static void mt_set_gpio_dir_chip(uint32_t pin, int dir) in mt_set_gpio_dir_chip() argument
33 assert(pin < MAX_GPIO_PIN); in mt_set_gpio_dir_chip()
36 pos = pin / MAX_GPIO_REG_BITS; in mt_set_gpio_dir_chip()
37 bit = pin % MAX_GPIO_REG_BITS; in mt_set_gpio_dir_chip()
46 static int mt_get_gpio_dir_chip(uint32_t pin) in mt_get_gpio_dir_chip() argument
51 assert(pin < MAX_GPIO_PIN); in mt_get_gpio_dir_chip()
53 pos = pin / MAX_GPIO_REG_BITS; in mt_get_gpio_dir_chip()
54 bit = pin % MAX_GPIO_REG_BITS; in mt_get_gpio_dir_chip()
60 static void mt_set_gpio_out_chip(uint32_t pin, int output) in mt_set_gpio_out_chip() argument
64 assert(pin < MAX_GPIO_PIN); in mt_set_gpio_out_chip()
[all …]
H A Dmtgpio_common.h108 uintptr_t mt_gpio_find_reg_addr(uint32_t pin);
/rk3399_ARM-atf/drivers/st/gpio/
H A Dstm32_gpio.c28 static void set_gpio(uint32_t bank, uint32_t pin, uint32_t mode, uint32_t type,
103 uint32_t pin; in dt_set_gpio_config() local
116 pin = (pincfg & DT_GPIO_PIN_MASK) >> DT_GPIO_PIN_SHIFT; in dt_set_gpio_config()
170 set_gpio(bank, pin, mode, type, speed, pull, od, alternate, status); in dt_set_gpio_config()
225 static void set_gpio(uint32_t bank, uint32_t pin, uint32_t mode, uint32_t type, in set_gpio() argument
232 assert(pin <= GPIO_PIN_MAX); in set_gpio()
237 (uint32_t)GPIO_MODE_MASK << (pin << 1U), in set_gpio()
238 mode << (pin << 1U)); in set_gpio()
241 (uint32_t)GPIO_TYPE_MASK << pin, in set_gpio()
242 type << pin); in set_gpio()
[all …]
/rk3399_ARM-atf/plat/st/common/include/
H A Dstm32mp_shared_resources.h33 void stm32mp_register_secure_gpio(unsigned int bank, unsigned int pin);
34 void stm32mp_register_non_secure_gpio(unsigned int bank, unsigned int pin);
49 unsigned int pin __unused) in stm32mp_register_secure_gpio()
54 unsigned int pin __unused) in stm32mp_register_non_secure_gpio()
/rk3399_ARM-atf/include/drivers/st/
H A Dstm32_gpio.h60 void set_gpio_secure_cfg(uint32_t bank, uint32_t pin, bool secure);
61 void set_gpio_reset_cfg(uint32_t bank, uint32_t pin);
68 void set_gpio_level(uint32_t bank, uint32_t pin, enum gpio_level level);
69 enum gpio_level get_gpio_level(uint32_t bank, uint32_t pin);
71 void set_gpio_config(uint32_t bank, uint32_t pin, uint32_t config, uint8_t status);
/rk3399_ARM-atf/plat/mediatek/drivers/gpio/mt8188/
H A Dmtgpio.c11 uintptr_t mt_gpio_find_reg_addr(uint32_t pin) in mt_gpio_find_reg_addr() argument
16 assert(pin < MAX_GPIO_PIN); in mt_gpio_find_reg_addr()
18 gpio_info = mt_pin_infos[pin]; in mt_gpio_find_reg_addr()
/rk3399_ARM-atf/plat/mediatek/mt8195/drivers/gpio/
H A Dmtgpio.c11 uintptr_t mt_gpio_find_reg_addr(uint32_t pin) in mt_gpio_find_reg_addr() argument
16 assert(pin < MAX_GPIO_PIN); in mt_gpio_find_reg_addr()
18 gpio_info = mt_pin_infos[pin]; in mt_gpio_find_reg_addr()
/rk3399_ARM-atf/plat/mediatek/mt8186/drivers/gpio/
H A Dmtgpio.c11 uintptr_t mt_gpio_find_reg_addr(uint32_t pin) in mt_gpio_find_reg_addr() argument
16 assert(pin < MAX_GPIO_PIN); in mt_gpio_find_reg_addr()
18 gpio_info = mt_pin_infos[pin]; in mt_gpio_find_reg_addr()
/rk3399_ARM-atf/plat/mediatek/mt8192/drivers/gpio/
H A Dmtgpio.c11 uintptr_t mt_gpio_find_reg_addr(uint32_t pin) in mt_gpio_find_reg_addr() argument
16 assert(pin < MAX_GPIO_PIN); in mt_gpio_find_reg_addr()
18 gpio_info = mt_pin_infos[pin]; in mt_gpio_find_reg_addr()
/rk3399_ARM-atf/plat/allwinner/common/
H A Dsunxi_common.c86 void sunxi_set_gpio_out(char port, int pin, bool level_high) in sunxi_set_gpio_out() argument
99 mmio_setbits_32(port_base + 0x10, BIT(pin)); in sunxi_set_gpio_out()
101 mmio_clrbits_32(port_base + 0x10, BIT(pin)); in sunxi_set_gpio_out()
104 mmio_clrsetbits_32(port_base + (pin / 8) * 4, in sunxi_set_gpio_out()
105 0x7 << ((pin % 8) * 4), in sunxi_set_gpio_out()
106 0x1 << ((pin % 8) * 4)); in sunxi_set_gpio_out()
/rk3399_ARM-atf/plat/mediatek/mt8189/drivers/gpio/
H A Dmtgpio.c24 uintptr_t mt_gpio_find_reg_addr(uint32_t pin) in mt_gpio_find_reg_addr() argument
29 assert(pin < MAX_GPIO_PIN); in mt_gpio_find_reg_addr()
31 gpio_info = mt_pin_infos[pin]; in mt_gpio_find_reg_addr()
/rk3399_ARM-atf/plat/mediatek/mt8196/drivers/gpio/
H A Dmtgpio.c30 uintptr_t mt_gpio_find_reg_addr(uint32_t pin) in mt_gpio_find_reg_addr() argument
35 assert(pin < MAX_GPIO_PIN); in mt_gpio_find_reg_addr()
37 gpio_info = mt_pin_infos[pin]; in mt_gpio_find_reg_addr()
/rk3399_ARM-atf/plat/st/stm32mp1/
H A Dstm32mp1_shared_resources.c313 void stm32mp_register_secure_gpio(unsigned int bank, unsigned int pin) in stm32mp_register_secure_gpio() argument
317 register_periph(STM32MP1_SHRES_GPIOZ(pin), SHRES_SECURE); in stm32mp_register_secure_gpio()
325 void stm32mp_register_non_secure_gpio(unsigned int bank, unsigned int pin) in stm32mp_register_non_secure_gpio() argument
329 register_periph(STM32MP1_SHRES_GPIOZ(pin), SHRES_NON_SECURE); in stm32mp_register_non_secure_gpio()
558 uint32_t pin; in set_gpio_secure_configuration() local
560 for (pin = 0U; pin < get_gpioz_nbpin(); pin++) { in set_gpio_secure_configuration()
561 bool secure_state = periph_is_secure(STM32MP1_SHRES_GPIOZ(pin)); in set_gpio_secure_configuration()
563 set_gpio_secure_cfg(GPIO_BANK_Z, pin, secure_state); in set_gpio_secure_configuration()
H A Dstm32mp1_private.c236 uint32_t pin; member
242 .pin = 3U,
246 .pin = 12U,
250 .pin = 2U,
254 .pin = 5U,
258 .pin = 7U,
262 .pin = 6U,
266 .pin = 0U,
275 set_gpio_reset_cfg(gpio_list[i].bank, gpio_list[i].pin); in stm32mp1_deconfigure_uart_pins()
/rk3399_ARM-atf/drivers/brcm/
H A Diproc_gpio.c33 #define GPIO_BANK(pin) ((pin) / NGPIOS_PER_BANK) argument
35 #define IPROC_GPIO_REG(pin, reg) (GPIO_BANK(pin) * GPIO_BANK_SIZE + (reg)) argument
36 #define IPROC_GPIO_SHIFT(pin) ((pin) % NGPIOS_PER_BANK) argument
/rk3399_ARM-atf/plat/rockchip/rk3399/drivers/gpio/
H A Drk3399_gpio.c54 #define GET_GPIO_PORT(pin) (pin / 32) argument
55 #define GET_GPIO_NUM(pin) (pin % 32) argument
56 #define GET_GPIO_BANK(pin) ((pin % 32) / 8) argument
57 #define GET_GPIO_ID(pin) ((pin % 32) % 8) argument
/rk3399_ARM-atf/docs/plat/st/
H A Dstm32mp2.rst22 The STM32MP21 series is available in 3 different lines which are pin-to-pin compatible:
37 The STM32MP23 series is available in 3 different lines which are pin-to-pin compatible:
52 The STM32MP25 series is available in 4 different lines which are pin-to-pin compatible:
H A Dstm32mp1.rst19 The STM32MP13 series is available in 3 different lines which are pin-to-pin compatible:
34 The STM32MP15 series is available in 3 different lines which are pin-to-pin compatible:
/rk3399_ARM-atf/plat/allwinner/common/include/
H A Dsunxi_private.h49 void sunxi_set_gpio_out(char port, int pin, bool level_high);
/rk3399_ARM-atf/docs/design_documents/
H A Dmeasured_boot_dtpm_poc.rst22 Raspberry Pi communicates with the TPM via a GPIO pin bit-banged SPI interface.
149 the 40-pin GPIO header on the Raspberry Pi board. The 2x5 header of the TPM
235 MESS:00:00:01.286929:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
236 MESS:00:00:01.487295:0: gpioman: gpioman_get_pin_num: pin DISPLAY_DSI_PORT not defined
237 MESS:00:00:01.494853:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
272 MESS:00:00:02.042302:0: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined
/rk3399_ARM-atf/docs/plat/
H A Dimx8ulp.rst18 pin count, enabling small packages and simple system integration. This microprocessor
/rk3399_ARM-atf/plat/xilinx/zynqmp/pm_service/
H A Dpm_api_pinctrl.c2098 enum pm_ret_status pm_api_pinctrl_get_pin_groups(uint32_t pin, in pm_api_pinctrl_get_pin_groups() argument
2106 if (pin >= (uint32_t)MAX_PIN) { in pm_api_pinctrl_get_pin_groups()
2113 grps = *zynqmp_pin_groups[pin].groups; in pm_api_pinctrl_get_pin_groups()
H A Dpm_api_pinctrl.h719 enum pm_ret_status pm_api_pinctrl_get_pin_groups(uint32_t pin,
/rk3399_ARM-atf/docs/plat/marvell/armada/
H A Dporting.rst76 Press reset and keep pressing the button connected to the chosen GPIO pin. A

12