diff options
Diffstat (limited to 'lib/utils/reset/fdt_reset_gpio.c')
-rw-r--r-- | lib/utils/reset/fdt_reset_gpio.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/utils/reset/fdt_reset_gpio.c b/lib/utils/reset/fdt_reset_gpio.c index 7e0eb74..77e308a 100644 --- a/lib/utils/reset/fdt_reset_gpio.c +++ b/lib/utils/reset/fdt_reset_gpio.c @@ -129,8 +129,17 @@ static int gpio_reset_init(void *fdt, int nodeoff, return 0; } -static const struct fdt_match gpio_reset_match[] = { +static const struct fdt_match gpio_poweroff_match[] = { { .compatible = "gpio-poweroff", .data = (void *)FALSE }, + { }, +}; + +struct fdt_reset fdt_poweroff_gpio = { + .match_table = gpio_poweroff_match, + .init = gpio_reset_init, +}; + +static const struct fdt_match gpio_reset_match[] = { { .compatible = "gpio-restart", .data = (void *)TRUE }, { }, }; |