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

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

commit d7811c4b6ea68c6ed749a16924af1d98d75a73c2
Author: Ville Juven <ville.ju...@unikie.com>
AuthorDate: Tue Feb 25 15:49:26 2025 +0200

    arch/mcx-nxxx: Enable GPIO clocks.
    
    For the I/O pins to work, the clock gate needs to be opened.
---
 arch/arm/src/mcx-nxxx/nxxx_clockconfig.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/src/mcx-nxxx/nxxx_clockconfig.c 
b/arch/arm/src/mcx-nxxx/nxxx_clockconfig.c
index 5a6c06ed7c..568a7ca5ee 100644
--- a/arch/arm/src/mcx-nxxx/nxxx_clockconfig.c
+++ b/arch/arm/src/mcx-nxxx/nxxx_clockconfig.c
@@ -338,6 +338,14 @@ void nxxx_clockconfig(void)
   nxxx_set_clock_gate(CLOCK_GATE_PORT2, true);
   nxxx_set_clock_gate(CLOCK_GATE_PORT3, true);
   nxxx_set_clock_gate(CLOCK_GATE_PORT4, true);
+
+  /* Enable GPIO clocks */
+
+  nxxx_set_clock_gate(CLOCK_GATE_GPIO0, true);
+  nxxx_set_clock_gate(CLOCK_GATE_GPIO1, true);
+  nxxx_set_clock_gate(CLOCK_GATE_GPIO2, true);
+  nxxx_set_clock_gate(CLOCK_GATE_GPIO3, true);
+  nxxx_set_clock_gate(CLOCK_GATE_GPIO4, true);
 }
 
 /****************************************************************************

Reply via email to