Home
last modified time | relevance | path

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

/trusted-firmware-a-3.7.0/plat/mediatek/mt8183/drivers/gpio/
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 …]
/trusted-firmware-a-3.7.0/plat/mediatek/drivers/gpio/
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 …]
Dmtgpio_common.h108 uintptr_t mt_gpio_find_reg_addr(uint32_t pin);
/trusted-firmware-a-3.7.0/drivers/st/gpio/
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 …]
/trusted-firmware-a-3.7.0/plat/st/common/include/
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()
/trusted-firmware-a-3.7.0/plat/mediatek/drivers/gpio/mt8188/
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()
/trusted-firmware-a-3.7.0/plat/mediatek/mt8186/drivers/gpio/
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()
/trusted-firmware-a-3.7.0/plat/mediatek/mt8195/drivers/gpio/
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()
/trusted-firmware-a-3.7.0/plat/mediatek/mt8192/drivers/gpio/
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()
/trusted-firmware-a-3.7.0/plat/allwinner/common/
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()
/trusted-firmware-a-3.7.0/plat/st/stm32mp1/
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()
Dstm32mp1_private.c240 uint32_t pin; member
246 .pin = 3U,
250 .pin = 12U,
254 .pin = 2U,
258 .pin = 5U,
262 .pin = 7U,
266 .pin = 6U,
270 .pin = 0U,
279 set_gpio_reset_cfg(gpio_list[i].bank, gpio_list[i].pin); in stm32mp1_deconfigure_uart_pins()
/trusted-firmware-a-3.7.0/drivers/brcm/
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
/trusted-firmware-a-3.7.0/plat/rockchip/rk3399/drivers/gpio/
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
/trusted-firmware-a-3.7.0/include/drivers/st/
Dstm32_gpio.h59 void set_gpio_secure_cfg(uint32_t bank, uint32_t pin, bool secure);
60 void set_gpio_reset_cfg(uint32_t bank, uint32_t pin);
/trusted-firmware-a-3.7.0/plat/allwinner/common/include/
Dsunxi_private.h49 void sunxi_set_gpio_out(char port, int pin, bool level_high);
/trusted-firmware-a-3.7.0/docs/plat/st/
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:
Dstm32mp2.rst13 The STM32MP25 series is available in 4 different lines which are pin-to-pin compatible:
/trusted-firmware-a-3.7.0/plat/xilinx/zynqmp/pm_service/
Dpm_api_pinctrl.c2086 enum pm_ret_status pm_api_pinctrl_get_pin_groups(uint32_t pin, in pm_api_pinctrl_get_pin_groups() argument
2093 if (pin >= MAX_PIN) { in pm_api_pinctrl_get_pin_groups()
2099 grps = *zynqmp_pin_groups[pin].groups; in pm_api_pinctrl_get_pin_groups()
Dpm_api_pinctrl.h716 enum pm_ret_status pm_api_pinctrl_get_pin_groups(uint32_t pin,
/trusted-firmware-a-3.7.0/docs/plat/marvell/armada/
Dporting.rst76 Press reset and keep pressing the button connected to the chosen GPIO pin. A
/trusted-firmware-a-3.7.0/docs/
Dchange-log.md2632 …- change pin-controller to pinctrl ([44fea93](https://review.trustedfirmware.org/plugins/gitiles/T…
3695 …- add a function to reset a pin ([737ad29](https://review.trustedfirmware.org/plugins/gitiles/TF-A…
6394 EEMI, PLL related PM, clock related PM, pin control related PM, reset
6506 instance, update for FMC2 pin muxing, and reduce MAX_XLAT_TABLES to 4