Skip to content

Commit

Permalink
boards: spresense: Add reset control on BLE1507 Add-on board
Browse files Browse the repository at this point in the history
Add reset pin selection on BLE1507 Add-on board.
  • Loading branch information
SPRESENSE committed Feb 27, 2024
1 parent 1719859 commit d645e33
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 @@ -838,6 +838,21 @@ config CXD56_EMMC_POWER_PIN_UART2_CTS

endchoice

choice
prompt "BLE1507 Add-on board Reset Pin selection"
default CXD56_BLE1507_RESET_PIN_NONE

config CXD56_BLE1507_RESET_PIN_NONE
bool "None"

config CXD56_BLE1507_RESET_PIN_I2S0_DATA_IN
bool "Use PIN I2S0_DATA_IN"

config CXD56_BLE1507_RESET_PIN_EMMC_DATA2
bool "Use PIN EMMC_DATA2"

endchoice

config CXD56_GNSS_ADDON
bool "CXD5610 GNSS Add-on board"
default n
Expand Down
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_AUDIO_MUTE = PMIC_GPO(6),
POWER_IMAGE_SENSOR = PMIC_GPO(4),

#if defined(CONFIG_CXD56_BLE1507_RESET_PIN_I2S0_DATA_IN)
POWER_BTBLE = CHIP_GPIO(PIN_I2S0_DATA_IN),
#elif defined(CONFIG_CXD56_BLE1507_RESET_PIN_EMMC_DATA2)
POWER_BTBLE = CHIP_GPIO(PIN_EMMC_DATA2),
#else
POWER_BTBLE = PMIC_NONE,
#endif
POWER_SENSOR = PMIC_NONE,
#if defined(CONFIG_CXD56_EMMC_POWER_PIN_I2S0_BCK)
POWER_EMMC = CHIP_GPIO(PIN_I2S0_BCK),
Expand Down

0 comments on commit d645e33

Please sign in to comment.