Skip to content

Commit dec8a04

Browse files
MagpieEmbeddedcfriedt
authored andcommitted
modules: hal: infineon: Add Kconfig option for pullups in Wifi Host Driver
This option allows board configurations to specify how to set the SDIO pull ups when the SPI bus goes to sleep, using the Infineon WHD. This is a board specific value. Signed-off-by: Magpie Embedded <[email protected]>
1 parent e9fee35 commit dec8a04

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

drivers/wifi/infineon/Kconfig.airoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ config WHD_WIFI_COUNTRY
5959
Sets the country, this will operate in for wifi initialization
6060
parameters. See the wifi-host-driver's whd_country_code_t for legal options.
6161

62+
config WHD_DISABLE_SDIO_PULLUP_DURING_SPI_SLEEP
63+
bool "Disable SDIO pullups during SPI sleep"
64+
help
65+
Clears SDIO pullups when the SPI bus is configured for sleep.
66+
By default, this option is set to n, so SDIO pullups will be enabled.
67+
6268
config AIROC_WIFI_CUSTOM
6369
bool "Custom CYW43xx device/module"
6470
help

modules/hal_infineon/wifi-host-driver/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ endif()
2727

2828
zephyr_compile_definitions(CY_WIFI_COUNTRY=$<UPPER_CASE:${CONFIG_WHD_WIFI_COUNTRY}>)
2929

30+
if(CONFIG_WHD_DISABLE_SDIO_PULLUP_DURING_SPI_SLEEP)
31+
zephyr_compile_definitions(WHD_DISABLE_SDIO_PULLUP_DURING_SPI_SLEEP)
32+
endif()
33+
3034
# Add WHD includes
3135
zephyr_include_directories(${hal_wifi_dir})
3236
zephyr_include_directories(${hal_wifi_dir}/WHD/${whd_wifi_ver}/inc)

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ manifest:
185185
groups:
186186
- hal
187187
- name: hal_infineon
188-
revision: 1030915af885cffc8cedc49a62291dd279a9e81e
188+
revision: f78b8f8202db0115dc41aedda6f77dee8985254f
189189
path: modules/hal/infineon
190190
groups:
191191
- hal

0 commit comments

Comments
 (0)