zephyr/drivers/wifi/infineon/cybsp.h
Steve Boylan 37e39dee58 drivers: wifi: infineon: Add SPI support to AIROC driver
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>
2024-12-10 16:23:36 +01:00

19 lines
633 B
C

/*
* Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company) or
* an affiliate of Cypress Semiconductor Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/* required by whd_* header files. */
/* See cybsp_types.h, which is usually required by this file, but not available */
/* here unless we pull in board-specific headers from the upstream driver. */
#define CYBSP_SDIO_INTERFACE (0)
#define CYBSP_SPI_INTERFACE (1)
#ifdef CONFIG_AIROC_WIFI_BUS_SDIO
#define CYBSP_WIFI_INTERFACE_TYPE CYBSP_SDIO_INTERFACE
#elif CONFIG_AIROC_WIFI_BUS_SPI
#define CYBSP_WIFI_INTERFACE_TYPE CYBSP_SPI_INTERFACE
#endif