| # Ambiq SDK SPI |
| # |
| # Copyright (c) 2023 Antmicro <www.antmicro.com> |
| # Copyright (c) 2024 Ambiq Micro Inc. <www.ambiq.com> |
| # |
| # SPDX-License-Identifier: Apache-2.0 |
| # |
| |
| menuconfig SPI_AMBIQ_SPIC |
| bool "AMBIQ SPI Controller driver" |
| default y |
| depends on DT_HAS_AMBIQ_SPI_ENABLED |
| select GPIO |
| select AMBIQ_HAL |
| select AMBIQ_HAL_USE_SPIC |
| help |
| Enable driver for Ambiq SPI in Controller mode. |
| |
| if SPI_AMBIQ_SPIC |
| |
| config SPI_AMBIQ_DMA |
| bool "AMBIQ APOLLO SPI DMA Support" |
| depends on SPI_AMBIQ_SPIC |
| help |
| Enable DMA for Ambiq SPI. |
| |
| config SPI_DMA_TCB_BUFFER_SIZE |
| int "DMA Transfer Control Buffer size in words." |
| default 1024 |
| depends on SPI_AMBIQ_DMA |
| help |
| DMA Transfer Control Buffer size in words |
| |
| endif # SPI_AMBIQ_SPIC |
| |
| config SPI_AMBIQ_SPID |
| bool "AMBIQ SPI Device driver" |
| default y |
| depends on DT_HAS_AMBIQ_SPID_ENABLED |
| select GPIO |
| select AMBIQ_HAL |
| select AMBIQ_HAL_USE_SPID |
| help |
| Enable driver for Ambiq SPI in Device mode. |
| |
| config SPI_AMBIQ_BLEIF |
| bool "AMBIQ SPI-BLEIF driver" |
| default y |
| depends on DT_HAS_AMBIQ_SPI_BLEIF_ENABLED |
| select AMBIQ_HAL |
| select AMBIQ_HAL_USE_BLEIF |
| help |
| Enable driver for Ambiq Apollox Blue SOC (e.g. Apollo3 Blue) |
| which uses internal designed BLEIF module (different from the |
| general IOM module) for SPI transceiver. It is always used for |
| the Bluetooth HCI communication. |
| |
| if SPI_AMBIQ_BLEIF |
| |
| config SPI_AMBIQ_BLEIF_TIMING_TRACE |
| bool "Ambiq SPI-BLEIF timing trace" |
| help |
| The pins for the SPI transceiver are not exposed from the chips |
| and no need for user to confiugre them. But the chips design the |
| configurable BLEIF timing observation functions on other exposed |
| pins. The user can enable it to configure the pins for timing |
| trace purpose. |
| |
| endif # SPI_AMBIQ_BLEIF |