Skip to content

Commit 242530a

Browse files
committed
ls1b: fix the count of GPIO IRQ and improvement the IRQ of UARTS.
from 1b manunal we know it have 64 GPIO IRQ and 12 UARTS
1 parent d874ab1 commit 242530a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

libcpu/mips/gs232/ls1b.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
#define LS1B_UART1_IRQ 3
2020
#define LS1B_UART2_IRQ 4
2121
#define LS1B_UART3_IRQ 5
22+
#define LS1B_UART4_IRQ 29
23+
#define LS1B_UART5_IRQ 30
24+
#define LS1B_UART6_IRQ 2 //共享LS1B_UART0_IRQ
25+
#define LS1B_UART7_IRQ 2
26+
#define LS1B_UART8_IRQ 2
27+
#define LS1B_UART9_IRQ 3 //共享LS1B_UART1_IRQ
28+
#define LS1B_UART10_IRQ 3
29+
#define LS1B_UART11_IRQ 3
30+
2231
#define LS1B_CAN0_IRQ 6
2332
#define LS1B_CAN1_IRQ 7
2433
#define LS1B_SPI0_IRQ 8
@@ -49,7 +58,7 @@
4958

5059
#define LS1B_GPIO_IRQ 64
5160
#define LS1B_GPIO_FIRST_IRQ 64
52-
#define LS1B_GPIO_IRQ_COUNT 96
61+
#define LS1B_GPIO_IRQ_COUNT 64
5362
#define LS1B_GPIO_LAST_IRQ (LS1B_GPIO_FIRST_IRQ + LS1B_GPIO_IRQ_COUNT-1)
5463

5564
#define INT_PCI_INTA (1<<6)

0 commit comments

Comments
 (0)