forked from Mirrors/opensbi
lib: utils/gpio: Add minimal SiFive GPIO driver
We add a minimal SiFive GPIO driver so that we can do GPIO based system power-off and reset. Signed-off-by: Green Wan <green.wan@sifive.com> Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -12,7 +12,10 @@
|
||||
#include <sbi_utils/fdt/fdt_helper.h>
|
||||
#include <sbi_utils/gpio/fdt_gpio.h>
|
||||
|
||||
extern struct fdt_gpio fdt_gpio_sifive;
|
||||
|
||||
static struct fdt_gpio *gpio_drivers[] = {
|
||||
&fdt_gpio_sifive
|
||||
};
|
||||
|
||||
static struct fdt_gpio *fdt_gpio_driver(struct gpio_chip *chip)
|
||||
|
Reference in New Issue
Block a user