bsp: cvitek: fix cv18xx_risc-v IRQ_MAX_NR error num

Analysis: The IRQ_MAX_NR value of cv18xx_risc-v is wrong.
The wrong IRQ_MAX_NR will cause the install of an interrupt
number larger than its value to fail.

Solution: Change IRQ_MAX_NR to the correct value 101 in
the datasheet.

Signed-off-by: Shicheng Chu <1468559561@qq.com>
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
Z8MAN8 2024-07-29 14:09:26 +08:00 committed by Rbb666
parent dc95efe17c
commit bce592e949
3 changed files with 6 additions and 3 deletions

View File

@ -301,6 +301,7 @@ CONFIG_NETDEV_USING_IFCONFIG=y
CONFIG_NETDEV_USING_PING=y CONFIG_NETDEV_USING_PING=y
CONFIG_NETDEV_USING_NETSTAT=y CONFIG_NETDEV_USING_NETSTAT=y
CONFIG_NETDEV_USING_AUTO_DEFAULT=y CONFIG_NETDEV_USING_AUTO_DEFAULT=y
# CONFIG_NETDEV_USING_LINK_STATUS_CALLBACK is not set
# CONFIG_NETDEV_USING_IPV6 is not set # CONFIG_NETDEV_USING_IPV6 is not set
CONFIG_NETDEV_IPV4=1 CONFIG_NETDEV_IPV4=1
CONFIG_NETDEV_IPV6=0 CONFIG_NETDEV_IPV6=0
@ -561,6 +562,7 @@ CONFIG_RT_USING_ADT_REF=y
# CONFIG_PKG_USING_JSMN is not set # CONFIG_PKG_USING_JSMN is not set
# CONFIG_PKG_USING_AGILE_JSMN is not set # CONFIG_PKG_USING_AGILE_JSMN is not set
# CONFIG_PKG_USING_PARSON is not set # CONFIG_PKG_USING_PARSON is not set
# CONFIG_PKG_USING_RYAN_JSON is not set
# end of JSON: JavaScript Object Notation, a lightweight data-interchange format # end of JSON: JavaScript Object Notation, a lightweight data-interchange format
# #
@ -967,6 +969,7 @@ CONFIG_RT_USING_ADT_REF=y
# CONFIG_PKG_USING_SYSTEM_RUN_LED is not set # CONFIG_PKG_USING_SYSTEM_RUN_LED is not set
# CONFIG_PKG_USING_BT_MX01 is not set # CONFIG_PKG_USING_BT_MX01 is not set
# CONFIG_PKG_USING_RGPOWER is not set # CONFIG_PKG_USING_RGPOWER is not set
# CONFIG_PKG_USING_BT_MX02 is not set
# CONFIG_PKG_USING_SPI_TOOLS is not set # CONFIG_PKG_USING_SPI_TOOLS is not set
# end of peripheral libraries and drivers # end of peripheral libraries and drivers
@ -1325,7 +1328,7 @@ CONFIG_UART_IRQ_BASE=44
CONFIG_BSP_USING_CV18XX=y CONFIG_BSP_USING_CV18XX=y
CONFIG_C906_PLIC_PHY_ADDR=0x70000000 CONFIG_C906_PLIC_PHY_ADDR=0x70000000
CONFIG_IRQ_MAX_NR=64 CONFIG_IRQ_MAX_NR=101
CONFIG_TIMER_CLK_FREQ=25000000 CONFIG_TIMER_CLK_FREQ=25000000
CONFIG_GPIO_IRQ_BASE=60 CONFIG_GPIO_IRQ_BASE=60
CONFIG_SYS_GPIO_IRQ_BASE=70 CONFIG_SYS_GPIO_IRQ_BASE=70

View File

@ -29,7 +29,7 @@ config C906_PLIC_PHY_ADDR
config IRQ_MAX_NR config IRQ_MAX_NR
int int
default 64 default 101
config TIMER_CLK_FREQ config TIMER_CLK_FREQ
int int

View File

@ -452,7 +452,7 @@
/* end of General Drivers Configuration */ /* end of General Drivers Configuration */
#define BSP_USING_CV18XX #define BSP_USING_CV18XX
#define C906_PLIC_PHY_ADDR 0x70000000 #define C906_PLIC_PHY_ADDR 0x70000000
#define IRQ_MAX_NR 64 #define IRQ_MAX_NR 101
#define TIMER_CLK_FREQ 25000000 #define TIMER_CLK_FREQ 25000000
#define GPIO_IRQ_BASE 60 #define GPIO_IRQ_BASE 60
#define SYS_GPIO_IRQ_BASE 70 #define SYS_GPIO_IRQ_BASE 70