Skip to content

Commit

Permalink
boards: spresense: Add configuration for eMMC power control
Browse files Browse the repository at this point in the history
Update Kconfig to add eMMC power pin selection.
  • Loading branch information
SPRESENSE committed Dec 20, 2022
1 parent 30de35c commit 0dc9724
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions boards/arm/cxd56xx/spresense/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -850,4 +850,19 @@ config CXD56_CAMERA_LATE_INITIALIZE
The camera drivers can be initialized on an application code after system booted up
by enabling this configuration switch.

choice
prompt "eMMC Power Pin selection"
default CXD56_EMMC_POWER_PIN_NONE

config CXD56_EMMC_POWER_PIN_NONE
bool "None"

config CXD56_EMMC_POWER_PIN_I2S0_BCK
bool "Use PIN I2S0_BCK"

config CXD56_EMMC_POWER_PIN_UART2_CTS
bool "Use PIN UART2_CTS"

endchoice

endif
6 changes: 6 additions & 0 deletions boards/arm/cxd56xx/spresense/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,13 @@ enum board_power_device

POWER_BTBLE = PMIC_NONE,
POWER_SENSOR = PMIC_NONE,
#if defined(CONFIG_CXD56_EMMC_POWER_PIN_I2S0_BCK)
POWER_EMMC = CHIP_GPIO(PIN_I2S0_BCK),
#elif defined(CONFIG_CXD56_EMMC_POWER_PIN_UART2_CTS)
POWER_EMMC = CHIP_GPIO(PIN_UART2_CTS),
#else
POWER_EMMC = PMIC_NONE,
#endif
POWER_LTE = PMIC_GPO(2),
};

Expand Down

0 comments on commit 0dc9724

Please sign in to comment.