1# Ambiq SDK SPI 2# 3# Copyright (c) 2023 Antmicro <www.antmicro.com> 4# Copyright (c) 2024 Ambiq Micro Inc. <www.ambiq.com> 5# 6# SPDX-License-Identifier: Apache-2.0 7# 8 9menuconfig SPI_AMBIQ_SPIC 10 bool "AMBIQ SPI Controller driver" 11 default y 12 depends on DT_HAS_AMBIQ_SPI_ENABLED 13 select GPIO 14 select AMBIQ_HAL 15 select AMBIQ_HAL_USE_SPIC 16 help 17 Enable driver for Ambiq SPI in Controller mode. 18 19if SPI_AMBIQ_SPIC 20 21config SPI_AMBIQ_DMA 22 bool "AMBIQ APOLLO SPI DMA Support" 23 depends on SPI_AMBIQ_SPIC 24 help 25 Enable DMA for Ambiq SPI. 26 27config SPI_DMA_TCB_BUFFER_SIZE 28 int "DMA Transfer Control Buffer size in words." 29 default 1024 30 depends on SPI_AMBIQ_DMA 31 help 32 DMA Transfer Control Buffer size in words 33 34endif # SPI_AMBIQ_SPIC 35 36config SPI_AMBIQ_SPID 37 bool "AMBIQ SPI Device driver" 38 default y 39 depends on DT_HAS_AMBIQ_SPID_ENABLED 40 select GPIO 41 select AMBIQ_HAL 42 select AMBIQ_HAL_USE_SPID 43 help 44 Enable driver for Ambiq SPI in Device mode. 45 46config SPI_AMBIQ_BLEIF 47 bool "AMBIQ SPI-BLEIF driver" 48 default y 49 depends on DT_HAS_AMBIQ_SPI_BLEIF_ENABLED 50 select AMBIQ_HAL 51 select AMBIQ_HAL_USE_BLEIF 52 help 53 Enable driver for Ambiq Apollox Blue SOC (e.g. Apollo3 Blue) 54 which uses internal designed BLEIF module (different from the 55 general IOM module) for SPI transceiver. It is always used for 56 the Bluetooth HCI communication. 57 58if SPI_AMBIQ_BLEIF 59 60config SPI_AMBIQ_BLEIF_TIMING_TRACE 61 bool "Ambiq SPI-BLEIF timing trace" 62 help 63 The pins for the SPI transceiver are not exposed from the chips 64 and no need for user to confiugre them. But the chips design the 65 configurable BLEIF timing observation functions on other exposed 66 pins. The user can enable it to configure the pins for timing 67 trace purpose. 68 69endif # SPI_AMBIQ_BLEIF 70