]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl/nomadik: allow to support several ranges per GPIO bank
authorPatrice Chotard <patrice.chotard@stericsson.com>
Mon, 8 Oct 2012 14:50:24 +0000 (16:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 07:09:48 +0000 (09:09 +0200)
commitbc0a89b2a0ab88cc407c4357eea93f453abf82a1
treec98dc21e2ea0d53518a77260da62c5cb34bb3c81
parentbd4493d468201f3682464c9b511bba36a5261d08
pinctrl/nomadik: allow to support several ranges per GPIO bank

With DB8500 the number of GPIO chips = number GPIO bank =
number of GPIO ranges.

With DB8540, a new GPIO range configuration is used, some GPIO
banks can have several GPIO ranges.

For example, DB8540 GPIO bank0 (GPIO0 to GPIO32) have 2 GPIO
ranges:
    - GPIO0 to GPIO17  : routed
    - GPIO18 to GPIO21 : hole
    - GPIO22 to GPIO28 : routed
    - GPIO29 to GPIO32 : hole

Previously, during nmk_pinctrl_probe(), all GPIO ranges were
parsed, as GPIO ranges are larger than the number of GPIO chips,
a warning occurs. This commit allows each bank to have several
GPIO ranges.

Signed-off-by: Patrice Chotard <patrice.chotard@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-nomadik.c