boards: spresense: Add configuration for eMMC power control
Update Kconfig to add eMMC power pin selection.
This commit is contained in:
parent
b60fbefabe
commit
5b3496fb7b
|
@ -809,4 +809,19 @@ config CXD56_SDCARD_AUTOMOUNT_UDELAY
|
|||
|
||||
endif # CXD56_SDCARD_AUTOMOUNT
|
||||
|
||||
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
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue