/optee_os-3.20.0/core/drivers/ |
A D | versal_gpio.c | 74 uint32_t *bank, uint32_t *pin) in versal_gpio_get_pin() argument 88 *bank = bnk; in versal_gpio_get_pin() 101 uint32_t bank = 0; in gpio_get_value() local 104 versal_gpio_get_pin(chip, gpio, &bank, &pin); in gpio_get_value() 112 uint32_t bank = 0; in gpio_set_value() local 118 if (bank >= VERSAL_GPIO_MID_PIN) { in gpio_set_value() 119 bank -= VERSAL_GPIO_MID_PIN; in gpio_set_value() 120 off = DATA_MSW_OFFSET(bank); in gpio_set_value() 122 off = DATA_LSW_OFFSET(bank); in gpio_set_value() 139 uint32_t bank = 0; in gpio_set_direction() local [all …]
|
A D | stm32_gpio.c | 56 vaddr_t base = stm32_get_gpio_bank_base(bank); in get_gpio_cfg() 57 struct clk *clk = stm32_get_gpio_bank_clk(bank); in get_gpio_cfg() 95 vaddr_t base = stm32_get_gpio_bank_base(bank); in set_gpio_cfg() 143 set_gpio_cfg(pinctrl[n].bank, pinctrl[n].pin, in stm32_pinctrl_load_active_cfg() 152 set_gpio_cfg(pinctrl[n].bank, pinctrl[n].pin, in stm32_pinctrl_load_standby_cfg() 161 get_gpio_cfg(pinctrl[n].bank, pinctrl[n].pin, in stm32_pinctrl_store_standby_cfg() 231 uint32_t bank = 0; in get_pinctrl_from_fdt() local 281 ckeck_gpio_bank(fdt, bank, pinctrl_node); in get_pinctrl_from_fdt() 286 ref->bank = (uint8_t)bank; in get_pinctrl_from_fdt() 399 assert(valid_gpio_config(bank, pin, true)); in stm32_gpio_get_input_level() [all …]
|
A D | imx_ocotp.c | 83 TEE_Result imx_ocotp_read(unsigned int bank, unsigned int word, uint32_t *val) in imx_ocotp_read() argument 90 if (bank > g_ocotp->nb_banks || word > g_ocotp->nb_words) in imx_ocotp_read() 110 *val = io_read32(g_base_addr + OCOTP_SHADOW_OFFSET(bank, word)); in imx_ocotp_read() 112 DMSG("OCOTP Bank %d Word %d Fuse 0x%" PRIx32, bank, word, *val); in imx_ocotp_read()
|
A D | stm32_bsec.c | 197 uint32_t bank = otp_bank_offset(otp_id); in check_no_error() local 199 if (io_read32(bsec_base() + BSEC_ERROR_OFF + bank) & bit) in check_no_error() 203 io_read32(bsec_base() + BSEC_DISTURBED_OFF + bank) & bit) in check_no_error() 505 uint32_t bank = otp_bank_offset(otp_id); in set_bsec_lock() local 507 vaddr_t lock_addr = bsec_base() + bank + lock_offset; in set_bsec_lock() 543 uint32_t bank = otp_bank_offset(otp_id); in read_bsec_lock() local 545 vaddr_t lock_addr = bsec_base() + bank + lock_offset; in read_bsec_lock()
|
A D | stm32_uart.c | 118 stm32mp_register_secure_gpio(pd->pinctrl[n].bank, in register_secure_uart() 128 stm32mp_register_non_secure_gpio(pd->pinctrl[n].bank, in register_non_secure_uart()
|
A D | stm32_i2c.c | 838 stm32_gpio_set_secure_cfg(hi2c->pinctrl->bank, in stm32_i2c_init() 1540 stm32_gpio_set_secure_cfg(hi2c->pinctrl->bank, in stm32_i2c_resume()
|
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/ |
A D | stm32_util.h | 45 vaddr_t stm32_get_gpio_bank_base(unsigned int bank); 46 unsigned int stm32_get_gpio_bank_offset(unsigned int bank); 47 unsigned int stm32_get_gpio_bank_clock(unsigned int bank); 48 struct clk *stm32_get_gpio_bank_clk(unsigned int bank); 248 void stm32mp_register_secure_gpio(unsigned int bank, unsigned int pin); 255 void stm32mp_register_non_secure_gpio(unsigned int bank, unsigned int pin); 261 bool stm32mp_gpio_bank_is_secure(unsigned int bank); 264 bool stm32mp_gpio_bank_is_shared(unsigned int bank); 267 bool stm32mp_gpio_bank_is_non_secure(unsigned int bank); 308 static inline bool stm32mp_gpio_bank_is_secure(unsigned int bank __unused) in stm32mp_gpio_bank_is_secure() [all …]
|
A D | main.c | 271 unsigned int bank = 0; in set_all_gpios_non_secure() local 275 for (bank = 0; bank <= GPIO_BANK_I; bank++) { in set_all_gpios_non_secure() 276 switch (bank) { in set_all_gpios_non_secure() 422 return bank == GPIO_BANK_Z || bank <= GPIO_BANK_K; in bank_is_valid() 425 return bank <= GPIO_BANK_I; in bank_is_valid() 435 assert(bank_is_valid(bank)); in stm32_get_gpio_bank_base() 441 if (bank == GPIO_BANK_Z) in stm32_get_gpio_bank_base() 459 assert(bank_is_valid(bank)); in stm32_get_gpio_bank_offset() 461 if (bank == GPIO_BANK_Z) in stm32_get_gpio_bank_offset() 472 if (bank == GPIO_BANK_Z) in stm32_get_gpio_bank_clock() [all …]
|
A D | shared_resources.c | 355 void stm32mp_register_secure_gpio(unsigned int bank, unsigned int pin) in stm32mp_register_secure_gpio() argument 357 switch (bank) { in stm32mp_register_secure_gpio() 363 EMSG("GPIO bank %u cannot be secured", bank); in stm32mp_register_secure_gpio() 368 void stm32mp_register_non_secure_gpio(unsigned int bank, unsigned int pin) in stm32mp_register_non_secure_gpio() argument 370 switch (bank) { in stm32mp_register_non_secure_gpio() 392 bool stm32mp_gpio_bank_is_shared(unsigned int bank) in stm32mp_gpio_bank_is_shared() argument 399 if (bank != GPIO_BANK_Z) in stm32mp_gpio_bank_is_shared() 409 bool stm32mp_gpio_bank_is_non_secure(unsigned int bank) in stm32mp_gpio_bank_is_non_secure() argument 416 if (bank != GPIO_BANK_Z) in stm32mp_gpio_bank_is_non_secure() 426 bool stm32mp_gpio_bank_is_secure(unsigned int bank) in stm32mp_gpio_bank_is_secure() argument [all …]
|
/optee_os-3.20.0/core/include/drivers/ |
A D | stm32_gpio.h | 70 uint8_t bank; member 121 void stm32_gpio_set_output_level(unsigned int bank, unsigned int pin, int high); 132 stm32_gpio_set_output_level(pinctrl->bank, pinctrl->pin, high); in stm32_pinctrl_set_gpio_level() 142 int stm32_gpio_get_input_level(unsigned int bank, unsigned int pin); 152 return stm32_gpio_get_input_level(pinctrl->bank, pinctrl->pin); in stm32_pinctrl_get_gpio_level() 163 void stm32_gpio_set_secure_cfg(unsigned int bank, unsigned int pin, 166 static inline void stm32_gpio_set_secure_cfg(unsigned int bank __unused, in stm32_gpio_set_secure_cfg() 182 int stm32_get_gpio_count(void *fdt, int pinctrl_node, unsigned int bank);
|
A D | imx_ocotp.h | 21 TEE_Result imx_ocotp_read(unsigned int bank, unsigned int word, uint32_t *val);
|
/optee_os-3.20.0/core/arch/arm/dts/ |
A D | stm32mp131.dtsi | 266 st,bank-name = "GPIOA"; 278 st,bank-name = "GPIOB"; 290 st,bank-name = "GPIOC"; 302 st,bank-name = "GPIOD"; 314 st,bank-name = "GPIOE"; 326 st,bank-name = "GPIOF"; 338 st,bank-name = "GPIOG"; 350 st,bank-name = "GPIOH"; 362 st,bank-name = "GPIOI";
|
A D | stm32mp151.dtsi | 1690 st,bank-name = "GPIOA"; 1701 st,bank-name = "GPIOB"; 1712 st,bank-name = "GPIOC"; 1723 st,bank-name = "GPIOD"; 1734 st,bank-name = "GPIOE"; 1745 st,bank-name = "GPIOF"; 1756 st,bank-name = "GPIOG"; 1767 st,bank-name = "GPIOH"; 1778 st,bank-name = "GPIOI"; 1789 st,bank-name = "GPIOJ"; [all …]
|
A D | stm32mp15xx-dhcom-som.dtsi | 161 bank-width = <2>;
|
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/drivers/ |
A D | stm32mp1_pmic.c | 596 stm32mp_register_non_secure_gpio(i2c_handle.pinctrl[n].bank, in register_non_secure_pmic() 607 stm32mp_register_secure_gpio(i2c_handle.pinctrl[n].bank, in register_secure_pmic()
|