Skip to content

Commit

Permalink
boards: spresense: Reduce power consumption with LTE board
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SPRESENSE committed Aug 1, 2022
1 parent 9f5ccab commit 33154c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 33154c1

Please sign in to comment.