Explorar o código

[bsp][cvitek] 修复 cv18xx_aarch64 gpio 驱动相关宏配置

Z8MAN8 hai 1 ano
pai
achega
78f3ebfb33
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  1. 8 0
      bsp/cvitek/cv18xx_aarch64/Kconfig
  2. 2 0
      bsp/cvitek/cv18xx_aarch64/rtconfig.h

+ 8 - 0
bsp/cvitek/cv18xx_aarch64/Kconfig

@@ -22,6 +22,14 @@ config SOC_CV18XX_AARCH64
     select ARCH_MM_MMU
     default y
 
+config GPIO_IRQ_BASE
+    int
+    default 76
+
+config SYS_GPIO_IRQ_BASE
+    int
+    default 86
+
 choice
     prompt "Board Type"
     default BOARD_TYPE_MILKV_DUO256M

+ 2 - 0
bsp/cvitek/cv18xx_aarch64/rtconfig.h

@@ -329,6 +329,8 @@
 /* Uncategorized */
 
 #define SOC_CV18XX_AARCH64
+#define GPIO_IRQ_BASE 76
+#define SYS_GPIO_IRQ_BASE 86
 #define BOARD_TYPE_MILKV_DUO256M
 
 /* General Drivers Configuration */