You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/04/17 16:40:15 UTC
(nuttx) 01/02: imx9_boot.c: Add initialization of pin interrupts
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 09a6c400f64f34318eb2e63ea2f93ccc9a6c17d3
Author: Ville Juven <vi...@unikie.com>
AuthorDate: Wed Apr 17 13:13:30 2024 +0300
imx9_boot.c: Add initialization of pin interrupts
Initialize the pin interrupt support during boot
---
arch/arm64/src/imx9/imx9_boot.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/src/imx9/imx9_boot.c b/arch/arm64/src/imx9/imx9_boot.c
index 260e679974..aaef4e8606 100644
--- a/arch/arm64/src/imx9/imx9_boot.c
+++ b/arch/arm64/src/imx9/imx9_boot.c
@@ -37,8 +37,10 @@
#include "arm64_arch.h"
#include "arm64_internal.h"
#include "arm64_mmu.h"
+
#include "imx9_boot.h"
#include "imx9_serial.h"
+#include "imx9_gpio.h"
#include "imx9_lowputc.h"
/****************************************************************************
@@ -103,6 +105,12 @@ void arm64_chip_boot(void)
imx9_lowsetup();
#endif
+ /* Initialize pin interrupt support */
+
+#ifdef CONFIG_IMX9_GPIO_IRQ
+ imx9_gpioirq_initialize();
+#endif
+
/* Perform board-specific device initialization. This would include
* configuration of board specific resources such as GPIOs, LEDs, etc.
*/