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/coreip-s51-arty | |
parent | 33dd66135c6bb3e914d402ef2efe3d63d8866aee (diff) |
Update BSPs
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'bsp/coreip-s51-arty')
-rw-r--r-- | bsp/coreip-s51-arty/metal.h | 7 | ||||
-rw-r--r-- | bsp/coreip-s51-arty/metal.lds | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bsp/coreip-s51-arty/metal.h b/bsp/coreip-s51-arty/metal.h index 89f5d76..304f5b0 100644 --- a/bsp/coreip-s51-arty/metal.h +++ b/bsp/coreip-s51-arty/metal.h @@ -244,6 +244,7 @@ struct __metal_driver_sifive_global_external_interrupts0 __metal_dt_global_exter /* From gpio@20002000 */ struct __metal_driver_sifive_gpio0 __metal_dt_gpio_20002000 = { .vtable = &__metal_driver_vtable_sifive_gpio0, + .gpio.vtable = &__metal_driver_vtable_sifive_gpio0.gpio, .base = 536879104UL, .size = 4096UL, /* From interrupt_controller@c000000 */ @@ -477,6 +478,12 @@ struct __metal_driver_cpu *__metal_cpu_table[] = { #define __METAL_DT_GLOBAL_EXTERNAL_INTERRUPTS_HANDLE (&__metal_dt_global_external_interrupts.irc) +#define __MEE_DT_MAX_GPIOS 1 + +asm (".weak __metal_gpio_table"); +struct __metal_driver_sifive_gpio0 *__metal_gpio_table[] = { + &__metal_dt_gpio_20002000}; + #define __METAL_DT_MAX_BUTTONS 4 asm (".weak __metal_button_table"); diff --git a/bsp/coreip-s51-arty/metal.lds b/bsp/coreip-s51-arty/metal.lds index 28a7849..ae57468 100644 --- a/bsp/coreip-s51-arty/metal.lds +++ b/bsp/coreip-s51-arty/metal.lds @@ -6,7 +6,7 @@ MEMORY { ram (wxa!ri) : ORIGIN = 0x80000000, LENGTH = 0x10000 itim (wx!rai) : ORIGIN = 0x8000000, LENGTH = 0x4000 - flash (rxai!w) : ORIGIN = 0x40400000, LENGTH = 0x20000000 + flash (rxai!w) : ORIGIN = 0x40400000, LENGTH = 0x1fc00000 } PHDRS |