You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2022/08/03 06:31:54 UTC

[incubator-nuttx] branch master updated: boards: spresense: Reduce power consumption with LTE board

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 2b4c7290c4 boards: spresense: Reduce power consumption with LTE board
2b4c7290c4 is described below

commit 2b4c7290c417fb52539f4b66c2dc151894b1a7a8
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Wed Aug 3 12:12:09 2022 +0900

    boards: spresense: Reduce power consumption with LTE board
    
    The SPI2_CS_X and SPI2_SCK pins are used for connection to the LTE modem.
    These pins are the special pins for the host interface that are set
    automatically by latching the SYSTEM0/1 pins. So, it causes a problem
    with increased current consumption when the modem is in power off state.
    To prevent it, set these pins to GPIO HiZ during board initialization.
---
 boards/arm/cxd56xx/spresense/src/cxd56_bringup.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
index a736fa3c74..0c5d25c22a 100644
--- a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
+++ b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
@@ -248,6 +248,12 @@ int cxd56_bringup(void)
 #endif
 
 #ifndef CONFIG_CXD56_SUBCORE
+  /* Set the special pins for the host interface to GPIO mode because
+   * their mode is automatically changed by latching the SYSTEM0/1 pins.
+   */
+
+  CXD56_PIN_CONFIGS(PINCONFS_SPI2A_GPIO);
+
   /* Initialize CPU clock to max frequency */
 
   board_clock_initialize();