瀏覽代碼

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

Z8MAN8 1 年之前
父節點
當前提交
78f3ebfb33
共有 2 個文件被更改,包括 10 次插入0 次删除
  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 */