From e5440a966ef8e7569550c8fe4b9ff3ae08459898 Mon Sep 17 00:00:00 2001
From: Bunnaroath Sou <bsou@sifive.com>
Date: Thu, 31 Jan 2019 14:34:23 -0800
Subject: Update BSP files after unit test e24 clic interrupts

---
 bsp/coreip-e31-arty/mee.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'bsp/coreip-e31-arty')

diff --git a/bsp/coreip-e31-arty/mee.h b/bsp/coreip-e31-arty/mee.h
index 80c7822..cc004cf 100644
--- a/bsp/coreip-e31-arty/mee.h
+++ b/bsp/coreip-e31-arty/mee.h
@@ -3,6 +3,10 @@
 #ifndef COREIP_E31_ARTY__MEE_H
 #define COREIP_E31_ARTY__MEE_H
 
+#ifdef __MEE_MACHINE_MACROS
+#endif
+
+#ifndef __MEE_MACHINE_MACROS
 #define __MEE_CLINT_2000000_INTERRUPTS 		2
 #define MEE_MAX_CLINT_INTERRUPTS	 __MEE_CLINT_2000000_INTERRUPTS
 
@@ -19,7 +23,7 @@
 #define MEE_MAX_GPIO_INTERRUPTS	 __MEE_GPIO_20002000_INTERRUPTS
 
 #define __MEE_SERIAL_20000000_INTERRUPTS 		1
-#define MEE_MAX_UART_INTERRUPTS	 __MEE_SERIAL_20000000_INTERRUPTS
+#define MEE_MAX_UART_INTERRUPTS 		 1
 
 #include <mee/drivers/riscv,cpu.h>
 #include <mee/drivers/riscv,clint0.h>
@@ -464,6 +468,8 @@ struct __mee_driver_sifive_gpio_switch *__mee_switch_table[] = {
 					&__mee_dt_switch_2,
 					&__mee_dt_switch_3};
 
+#endif
+
 #endif /*MEE__MACHINE__COREIP_E31_ARTY__MEE_H*/
 
 #endif/*ASSEMBLY*/
-- 
cgit v1.2.3


From 0fd5ac749341e8b7dd8f91134a1c572ac1cb5e9b Mon Sep 17 00:00:00 2001
From: Bunnaroath Sou <bsou@sifive.com>
Date: Fri, 1 Feb 2019 13:54:02 -0800
Subject: Update BSP files and freedom-mee to reflect their latest update

---
 bsp/coreip-e31-arty/mee.h | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'bsp/coreip-e31-arty')

diff --git a/bsp/coreip-e31-arty/mee.h b/bsp/coreip-e31-arty/mee.h
index cc004cf..a332c2d 100644
--- a/bsp/coreip-e31-arty/mee.h
+++ b/bsp/coreip-e31-arty/mee.h
@@ -4,6 +4,10 @@
 #define COREIP_E31_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
-- 
cgit v1.2.3