commit | f52d6d8b43e51cb2d0dbd60caf7d37150391182f | [log] [tgz] |
---|---|---|
author | Greentime Hu <greentime.hu@sifive.com> | Fri Nov 13 10:33:55 2020 +0800 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Wed Nov 18 09:28:43 2020 +0100 |
tree | 2da2d60178cef09dde13624167bc042493a7a23b | |
parent | 3c6e73e47afc874c231b48157be669efaf768471 [diff] |
gpio: sifive: To get gpio irq offset from device tree data We can get hwirq number of the gpio by its irq_data->hwirq so that we don't need to add more macros for different platforms. This patch is tested in SiFive Unleashed board and SiFive Unmatched board. Signed-off-by: Greentime Hu <greentime.hu@sifive.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>