# Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.

# SPDX-License-Identifier: MIT

if(CONFIG_SOC_A4 OR CONFIG_SOC_A9 OR CONFIG_SOC_C5)
aml_library_sources_ifdef(
	CONFIG_SPI
	spisg/spicore.c
	spisg/spisg.c
)
aml_library_include_directories_ifdef(
	CONFIG_SPI
	${SDK_BASE}/drivers_aocpu/spi/include/spisg
)
else()
aml_library_sources_ifdef(
	CONFIG_SPI
	spicc/spi.c
	spicc/spicc.c
)
aml_library_include_directories_ifdef(
	CONFIG_SPI
	${SDK_BASE}/drivers_aocpu/spi/include/spicc
)
endif()