fix(intr): fixed intr threshhold min level on C5

This commit is contained in:
Marius Vikhammer 2024-06-03 11:54:48 +08:00
parent 7ac98d33e3
commit 61f1975882
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
extern "C" { extern "C" {
#endif #endif
#define NLBITS 3 #define NLBITS 4
#define CLIC_EXT_INTR_NUM_OFFSET 16 #define CLIC_EXT_INTR_NUM_OFFSET 16
#define DUALCORE_CLIC_CTRL_OFF 0x10000 #define DUALCORE_CLIC_CTRL_OFF 0x10000

View File

@ -10,7 +10,7 @@
extern "C" { extern "C" {
#endif #endif
#define NLBITS 3 #define NLBITS 4
#define CLIC_EXT_INTR_NUM_OFFSET 16 #define CLIC_EXT_INTR_NUM_OFFSET 16
#define DR_REG_CLIC_BASE (0x20800000) #define DR_REG_CLIC_BASE (0x20800000)
@ -144,7 +144,7 @@ extern "C" {
#define BYTE_CLIC_INT_CTL_REG(i) (DR_REG_CLIC_CTRL_BASE + 3 + (i)*4) #define BYTE_CLIC_INT_CTL_REG(i) (DR_REG_CLIC_CTRL_BASE + 3 + (i)*4)
/* BYTE_CLIC_INT_ATTR_MODE: R/W ; bitpos:[7:5] ;default: 3'd0 ; */ /* BYTE_CLIC_INT_ATTR_MODE: R/W ; bitpos:[7:5] ;default: 3'd0 ; */
/*description: interrupt pririty */ /*description: interrupt priority */
#define BYTE_CLIC_INT_CTL 0x00000007 #define BYTE_CLIC_INT_CTL 0x00000007
#define BYTE_CLIC_INT_CTL_M ((BYTE_CLIC_INT_CTL_V) << (BYTE_CLIC_INT_CTL_S)) #define BYTE_CLIC_INT_CTL_M ((BYTE_CLIC_INT_CTL_V) << (BYTE_CLIC_INT_CTL_S))
#define BYTE_CLIC_INT_CTL_V 0x7 #define BYTE_CLIC_INT_CTL_V 0x7