summaryrefslogtreecommitdiff
path: root/bsp/freedom-e310-arty
diff options
context:
space:
mode:
authorBunnaroath Sou <35707615+bsousi5@users.noreply.github.com>2019-02-01 13:55:58 -0800
committerGitHub <noreply@github.com>2019-02-01 13:55:58 -0800
commitd9a6c0abd5e98697aae8273342961895512890bf (patch)
tree62035b849ea878ea67eb239c2d94c3ed72462be0 /bsp/freedom-e310-arty
parentd730034120ff78f1cb06d49b6a2e7470b6f43993 (diff)
parent0fd5ac749341e8b7dd8f91134a1c572ac1cb5e9b (diff)
Merge pull request #168 from sifive/e24-arty
E24 arty support
Diffstat (limited to 'bsp/freedom-e310-arty')
-rw-r--r--bsp/freedom-e310-arty/mee.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/bsp/freedom-e310-arty/mee.h b/bsp/freedom-e310-arty/mee.h
index c9f4220..39278ea 100644
--- a/bsp/freedom-e310-arty/mee.h
+++ b/bsp/freedom-e310-arty/mee.h
@@ -3,6 +3,14 @@
#ifndef FREEDOM_E310_ARTY__MEE_H
#define FREEDOM_E310_ARTY__MEE_H
+#ifdef __MEE_MACHINE_MACROS
+/* To Satisfy libmetal build */
+#ifndef __MEE_CLIC_SUBINTERRUPTS
+#define __MEE_CLIC_SUBINTERRUPTS 0
+#endif
+#endif
+
+#ifndef __MEE_MACHINE_MACROS
#define __MEE_CLINT_2000000_INTERRUPTS 2
#define MEE_MAX_CLINT_INTERRUPTS __MEE_CLINT_2000000_INTERRUPTS
@@ -16,7 +24,7 @@
#define MEE_MAX_GPIO_INTERRUPTS __MEE_GPIO_10012000_INTERRUPTS
#define __MEE_SERIAL_10013000_INTERRUPTS 1
-#define MEE_MAX_UART_INTERRUPTS __MEE_SERIAL_10013000_INTERRUPTS
+#define MEE_MAX_UART_INTERRUPTS 1
#include <mee/drivers/riscv,cpu.h>
#include <mee/drivers/riscv,clint0.h>
@@ -231,6 +239,8 @@ struct __mee_driver_sifive_gpio_button *__mee_button_table[] = {
asm (".weak __mee_switch_table");
struct __mee_driver_sifive_gpio_switch *__mee_switch_table[] = {
NULL };
+#endif
+
#endif /*MEE__MACHINE__FREEDOM_E310_ARTY__MEE_H*/
#endif/*ASSEMBLY*/