zephyr/drivers/i2c/Kconfig.ambiq
Hao Luo d1eea369b1 drivers: ambiq: Add dependencies to avoid showing to non-ambiq platforms
Fixed the Kconfig.ambiq under i2c and spi so that they don't litter.

Signed-off-by: Hao Luo <hluo@ambiq.com>
2024-06-27 08:59:40 -04:00

31 lines
560 B
Plaintext

# Ambiq SDK I2C
#
# Copyright (c) 2023 Antmicro <www.antmicro.com>
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig I2C_AMBIQ
bool "AMBIQ I2C driver"
default y
depends on DT_HAS_AMBIQ_I2C_ENABLED
select AMBIQ_HAL
select AMBIQ_HAL_USE_I2C
help
Enable driver for Ambiq I2C.
if I2C_AMBIQ
config I2C_AMBIQ_DMA
bool "AMBIQ APOLLO I2C DMA Support"
help
Enable DMA for Ambiq I2C.
config I2C_DMA_TCB_BUFFER_SIZE
int "DMA Transfer Control Buffer size in words."
default 1024
help
DMA Transfer Control Buffer size in words
endif # I2C_AMBIQ