Lines Matching refs:bank
28 static void set_gpio(uint32_t bank, uint32_t pin, uint32_t mode, uint32_t type,
36 static int ckeck_gpio_bank(void *fdt, uint32_t bank, int pinctrl_node) in ckeck_gpio_bank() argument
39 uint32_t bank_offset = stm32_get_gpio_bank_offset(bank); in ckeck_gpio_bank()
102 uint32_t bank; in dt_set_gpio_config() local
114 bank = (pincfg & DT_GPIO_BANK_MASK) >> DT_GPIO_BANK_SHIFT; in dt_set_gpio_config()
156 bank_node = ckeck_gpio_bank(fdt, bank, pinctrl_node); in dt_set_gpio_config()
168 assert((unsigned long)clk == stm32_get_gpio_bank_clock(bank)); 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
229 uintptr_t base = stm32_get_gpio_bank_base(bank); in set_gpio()
230 unsigned long clock = stm32_get_gpio_bank_clock(bank); in set_gpio()
268 VERBOSE("GPIO %u mode set to 0x%x\n", bank, in set_gpio()
270 VERBOSE("GPIO %u type set to 0x%x\n", bank, in set_gpio()
272 VERBOSE("GPIO %u speed set to 0x%x\n", bank, in set_gpio()
274 VERBOSE("GPIO %u mode pull to 0x%x\n", bank, in set_gpio()
276 VERBOSE("GPIO %u mode alternate low to 0x%x\n", bank, in set_gpio()
278 VERBOSE("GPIO %u mode alternate high to 0x%x\n", bank, in set_gpio()
280 VERBOSE("GPIO %u output data set to 0x%x\n", bank, in set_gpio()
286 stm32mp_register_secure_gpio(bank, pin); in set_gpio()
288 set_gpio_secure_cfg(bank, pin, true); in set_gpio()
292 stm32mp_register_non_secure_gpio(bank, pin); in set_gpio()
294 set_gpio_secure_cfg(bank, pin, false); in set_gpio()
299 void set_gpio_secure_cfg(uint32_t bank, uint32_t pin, bool secure) in set_gpio_secure_cfg() argument
301 uintptr_t base = stm32_get_gpio_bank_base(bank); in set_gpio_secure_cfg()
302 unsigned long clock = stm32_get_gpio_bank_clock(bank); in set_gpio_secure_cfg()
317 void set_gpio_reset_cfg(uint32_t bank, uint32_t pin) in set_gpio_reset_cfg() argument
319 set_gpio(bank, pin, GPIO_MODE_ANALOG, GPIO_TYPE_PUSH_PULL, in set_gpio_reset_cfg()
322 set_gpio_secure_cfg(bank, pin, stm32_gpio_is_secure_at_reset(bank)); in set_gpio_reset_cfg()