diff options
| author | Rashmica Gupta <[email protected]> | 2019-09-06 06:27:26 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2019-09-11 10:11:16 +0000 |
| commit | be2a7e2d5d98d288f00af4e9e2ba829aab1ebaef (patch) | |
| tree | 6c6881c532116d11ee08cba8057d73669ff96e02 /drivers/gpio/gpiolib-of.h | |
| parent | gpio: aspeed: Setup irqchip dynamically (diff) | |
| download | kernel-be2a7e2d5d98d288f00af4e9e2ba829aab1ebaef.tar.gz kernel-be2a7e2d5d98d288f00af4e9e2ba829aab1ebaef.zip | |
gpio: aspeed: Use ngpio property from device tree if available
Use the ngpio property from the device tree if it exists. If it doesn't
then fallback to the hardcoded value in the config.
This is in preparation for adding ast2600 support. The ast2600 SoC has
two GPIO controllers and so requires two instances of the GPIO driver.
We use the ngpio property to different between them as they have
different numbers of GPIOs.
Signed-off-by: Rashmica Gupta <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Joel Stanley <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib-of.h')
0 files changed, 0 insertions, 0 deletions
