From 92d0f3e15ddfeb3d3a640d9bdd3471553e14ed7e Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Wed, 6 Mar 2019 15:05:37 -0800 Subject: Update BSPs Signed-off-by: Nathaniel Graff --- bsp/freedom-e310-arty/metal.h | 7 +++++++ bsp/freedom-e310-arty/metal.lds | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'bsp/freedom-e310-arty') diff --git a/bsp/freedom-e310-arty/metal.h b/bsp/freedom-e310-arty/metal.h index d0a59b0..f2086b5 100644 --- a/bsp/freedom-e310-arty/metal.h +++ b/bsp/freedom-e310-arty/metal.h @@ -163,6 +163,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 */ @@ -253,6 +254,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"); diff --git a/bsp/freedom-e310-arty/metal.lds b/bsp/freedom-e310-arty/metal.lds index c0556ee..1a1801b 100644 --- a/bsp/freedom-e310-arty/metal.lds +++ b/bsp/freedom-e310-arty/metal.lds @@ -6,7 +6,7 @@ MEMORY { ram (wxa!ri) : ORIGIN = 0x80000000, LENGTH = 0x4000 itim (wx!rai) : ORIGIN = 0x8000000, LENGTH = 0x4000 - flash (rxai!w) : ORIGIN = 0x20400000, LENGTH = 0x20000000 + flash (rxai!w) : ORIGIN = 0x20400000, LENGTH = 0x1fc00000 } PHDRS -- cgit v1.2.3