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:14 UTC

(nuttx) branch master updated (9798674f27 -> 169dd50a08)

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


    from 9798674f27 libc: add support for reallocarray
     new 09a6c400f6 imx9_boot.c: Add initialization of pin interrupts
     new 169dd50a08 imx9_gpioirq: Fix testing of ICR field from pinset

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/arm64/src/imx9/imx9_boot.c    | 8 ++++++++
 arch/arm64/src/imx9/imx9_gpioirq.c | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)


(nuttx) 02/02: imx9_gpioirq: Fix testing of ICR field from pinset

Posted by xi...@apache.org.
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 169dd50a08e5b68d9ed84b917ae9d19f60c24a3e
Author: Ville Juven <vi...@unikie.com>
AuthorDate: Wed Apr 17 13:16:46 2024 +0300

    imx9_gpioirq: Fix testing of ICR field from pinset
    
    icr is tested below with macros like GPIO_INT_LOWLEVEL et al. Those macros
    are shifted left by GPIO_INTCFG_SHIFT, so the temporary icr variable
    should not be shifted right.
---
 arch/arm64/src/imx9/imx9_gpioirq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/src/imx9/imx9_gpioirq.c b/arch/arm64/src/imx9/imx9_gpioirq.c
index 3d75e90798..7290ff6852 100644
--- a/arch/arm64/src/imx9/imx9_gpioirq.c
+++ b/arch/arm64/src/imx9/imx9_gpioirq.c
@@ -236,8 +236,8 @@ int imx9_gpioirq_enable(gpio_pinset_t pinset)
 {
   uint32_t  port = (pinset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
   uint32_t  pin  = (pinset & GPIO_PIN_MASK) >> GPIO_PIN_SHIFT;
-  uint32_t  icr  = (pinset & GPIO_INTCFG_MASK) >> GPIO_INTCFG_SHIFT;
   uint32_t  both = (pinset & GPIO_INTBOTHCFG_MASK) >> GPIO_INTBOTHCFG_SHIFT;
+  uint32_t  icr  = (pinset & GPIO_INTCFG_MASK);
   uint32_t  regval;
   uintptr_t regaddr;
 


(nuttx) 01/02: imx9_boot.c: Add initialization of pin interrupts

Posted by xi...@apache.org.
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.
    */