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.
This commit is contained in:
parent
195412fa46
commit
2b4c7290c4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user