diff options
author | Green Wan <green.wan@sifive.com> | 2021-07-13 06:23:44 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-07-17 11:26:42 +0300 |
commit | 4c3df2ab96be2ae513b80ee96d1db7b97155d231 (patch) | |
tree | ef5a32ca4dae27da90d187e98ea4c464cf2faa34 /lib/utils/gpio/fdt_gpio.c | |
parent | c14f1fe0dfd96d7be1ed2abba0a873110cdbcc9d (diff) | |
download | opensbi-4c3df2ab96be2ae513b80ee96d1db7b97155d231.tar.xz |
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>
Diffstat (limited to 'lib/utils/gpio/fdt_gpio.c')
-rw-r--r-- | lib/utils/gpio/fdt_gpio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/gpio/fdt_gpio.c b/lib/utils/gpio/fdt_gpio.c index bff391f..297b248 100644 --- a/lib/utils/gpio/fdt_gpio.c +++ b/lib/utils/gpio/fdt_gpio.c @@ -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) |