mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
gpio: stm32f7_gpio: handle node ngpios
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
d876eaf2be
commit
f11c308ac2
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ static int gpio_stm32_probe(struct udevice *dev)
|
|||
if (!name)
|
||||
return -EINVAL;
|
||||
uc_priv->bank_name = name;
|
||||
uc_priv->gpio_count = STM32_GPIOS_PER_BANK;
|
||||
uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios",
|
||||
STM32_GPIOS_PER_BANK);
|
||||
debug("%s, addr = 0x%p, bank_name = %s\n", __func__, (u32 *)priv->regs,
|
||||
uc_priv->bank_name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue