gbmc /
linux /
825c305a9a87ea19a6bddce8cc45a2f26c0b2d4f 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.
OpenBMC-Staging-Count: 1
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
1 file changed