Added support for SPI in 4-wire and 3-wire configurations to the Infineon AIROC WiFi driver (drivers/wifi/infineon). Review changes: Move DT_DRV_COMPAT to common header file Correct board-specific preprocessor lines Removed AIROC_MAP_COUNTRY_CODE Move Pico W configuration details to devicetree Use pinctrl to manage shared data/interrupt GPIO Clean up bus selection in Kconfig.airoc Make SDIO and SPI bus struct independent Replace LOG_DBG with LOG_ERR Remove functionally duplicate operation Remove spurious Kconfig option Minor cleanup in CMakeLists.txt Signed-off-by: Steve Boylan <stephen.boylan@beechwoods.com>
17 lines
643 B
CMake
17 lines
643 B
CMake
# Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company) or
|
|
# an affiliate of Cypress Semiconductor Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_include_directories(./)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_WIFI_AIROC
|
|
airoc_wifi.c
|
|
airoc_whd_hal_common.c
|
|
)
|
|
zephyr_library_sources_ifdef(CONFIG_AIROC_WIFI_BUS_SDIO airoc_whd_hal_sdio.c)
|
|
zephyr_library_sources_ifdef(CONFIG_AIROC_WIFI_BUS_SPI airoc_whd_hal_spi.c)
|
|
|
|
zephyr_compile_definitions(CYBSP_WIFI_CAPABLE)
|
|
zephyr_compile_definitions(CY_RTOS_AWARE)
|
|
zephyr_compile_definitions(WHD_USE_CUSTOM_MALLOC_IMPL)
|
|
zephyr_compile_definitions(WHD_USE_CUSTOM_HAL_IMPL)
|