1#
2# Copyright (c) 2021, Telink
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7zephyr_include_directories(common)
8zephyr_include_directories(drivers/B91/compatibility_pack)
9zephyr_include_directories(drivers/B91/reg_include)
10zephyr_include_directories(drivers/B91)
11
12# soc.c referance sources
13zephyr_sources(drivers/B91/sys.c)
14zephyr_sources(drivers/B91/pm.c)
15zephyr_sources(drivers/B91/clock.c)
16zephyr_sources(drivers/B91/analog.c)
17
18# Flash driver reference sources
19zephyr_sources_ifdef(CONFIG_SOC_FLASH_TELINK_B91 drivers/B91/flash.c)
20zephyr_sources_ifdef(CONFIG_SOC_FLASH_TELINK_B91 drivers/B91/plic.c)
21zephyr_sources_ifdef(CONFIG_SOC_FLASH_TELINK_B91 drivers/B91/stimer.c)
22
23# PWM driver reference sources
24zephyr_sources_ifdef(CONFIG_PWM_TELINK_B91 drivers/B91/pwm.c)
25
26# SPI driver reference sources
27zephyr_sources_ifdef(CONFIG_SPI_TELINK_B91 drivers/B91/gpio.c)
28
29# I2C driver reference sources
30zephyr_sources_ifdef(CONFIG_I2C_TELINK_B91 drivers/B91/i2c.c)
31
32# RF driver reference sources
33zephyr_sources_ifdef(CONFIG_IEEE802154_TELINK_B91 drivers/B91/stimer.c)
34zephyr_sources_ifdef(CONFIG_IEEE802154_TELINK_B91 drivers/B91/rf.c)
35
36# Entropy driver reference sources
37zephyr_sources_ifdef(CONFIG_ENTROPY_TELINK_B91_TRNG drivers/B91/trng.c)
38