]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: sifive: add support for DM based gpio driver for FU540-SoC
authorSagar Shrikant Kadam <sagar.kadam@sifive.com>
Tue, 1 Oct 2019 17:00:46 +0000 (10:00 -0700)
committerAndes <uboot@andestech.com>
Fri, 18 Oct 2019 01:04:01 +0000 (09:04 +0800)
commit5e78d7d9ad413667477689b2d8aef9410880496e
treece3ffa5c54b74c28b82343c27968a4e7136e8394
parent07e78549592cedf6364908c6897f1bfe3f832b46
gpio: sifive: add support for DM based gpio driver for FU540-SoC

This patch adds a DM based driver model for gpio controller present in
FU540-C000 SoC on HiFive Unleashed A00 board. This SoC has one GPIO
bank and 16 GPIO lines in total, out of which GPIO0 to GPIO9 and
GPIO15 are routed to the J1 header on the board.

This implementation is ported from linux based gpio driver submitted
for review by Wesley W. Terpstra <wesley@sifive.com> and/or Atish Patra
<atish.patra@wdc.com> (many thanks !!). The linux driver can be referred
here [1]

[1]: https://lkml.org/lkml/2018/10/9/1103

Signed-off-by: Sagar Shrikant Kadam <sagar.kadam@sifive.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/riscv/include/asm/arch-generic/gpio.h [new file with mode: 0644]
arch/riscv/include/asm/gpio.h [new file with mode: 0644]
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/sifive-gpio.c [new file with mode: 0644]