diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-03-06 15:05:37 -0800 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-03-07 11:09:11 -0800 |
commit | 92d0f3e15ddfeb3d3a640d9bdd3471553e14ed7e (patch) | |
tree | 5adffe477189c81f1759446ad9efc7ea46f68702 /bsp/sifive-hifive1-revb | |
parent | 33dd66135c6bb3e914d402ef2efe3d63d8866aee (diff) |
Update BSPs
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'bsp/sifive-hifive1-revb')
-rw-r--r-- | bsp/sifive-hifive1-revb/metal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bsp/sifive-hifive1-revb/metal.h b/bsp/sifive-hifive1-revb/metal.h index 4d74b17..8f8c976 100644 --- a/bsp/sifive-hifive1-revb/metal.h +++ b/bsp/sifive-hifive1-revb/metal.h @@ -213,6 +213,7 @@ struct __metal_driver_sifive_local_external_interrupts0 __metal_dt_local_externa /* From gpio@10012000 */ struct __metal_driver_sifive_gpio0 __metal_dt_gpio_10012000 = { .vtable = &__metal_driver_vtable_sifive_gpio0, + .gpio.vtable = &__metal_driver_vtable_sifive_gpio0.gpio, .base = 268509184UL, .size = 4096UL, /* From interrupt_controller@c000000 */ @@ -356,6 +357,12 @@ struct __metal_driver_cpu *__metal_cpu_table[] = { #define __METAL_DT_LOCAL_EXTERNAL_INTERRUPTS_0_HANDLE (&__metal_dt_local_external_interrupts_0.irc) +#define __MEE_DT_MAX_GPIOS 1 + +asm (".weak __metal_gpio_table"); +struct __metal_driver_sifive_gpio0 *__metal_gpio_table[] = { + &__metal_dt_gpio_10012000}; + #define __METAL_DT_MAX_BUTTONS 0 asm (".weak __metal_button_table"); |