blob: 10b97cb49fd580d2941e75fe39a6d867f884404a [file] [log] [blame]
Jonny Svärd44398c82020-10-06 14:18:28 +02001#
Jonny Svärd3a0d3f22021-03-18 15:31:50 +01002# Copyright (c) 2020-2021 Arm Limited. All rights reserved.
Jonny Svärd44398c82020-10-06 14:18:28 +02003#
4# SPDX-License-Identifier: Apache-2.0
5#
6# Licensed under the Apache License, Version 2.0 (the License); you may
7# not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an AS IS BASIS, WITHOUT
14# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18
19add_library(ethosu_drivers INTERFACE)
20
Jonny Svärdff265f92020-12-15 16:02:41 +010021#############################################################################
Jonny Svärd44398c82020-10-06 14:18:28 +020022# Mailbox driver
Jonny Svärdff265f92020-12-15 16:02:41 +010023#############################################################################
Jonny Svärd44398c82020-10-06 14:18:28 +020024add_subdirectory(mailbox)
Jonny Svärd9fc527b2020-11-16 16:18:07 +010025target_link_libraries(ethosu_drivers INTERFACE ethosu_mailbox)
26
Jonny Svärdff265f92020-12-15 16:02:41 +010027#############################################################################
Jonny Svärd9fc527b2020-11-16 16:18:07 +010028# MHU drivers
Jonny Svärdff265f92020-12-15 16:02:41 +010029#############################################################################
30# NOTE: These are all built and linked from a CMake perspective. However the
31# application code can instantiate one or more of the drivers. The
32# one(s) not used will later be removed by the linker.
Jonny Svärd9fc527b2020-11-16 16:18:07 +010033add_subdirectory(mhu_v2)
34add_subdirectory(mhu_juno)
35add_subdirectory(mhu_dummy)
36target_link_libraries(ethosu_drivers INTERFACE ethosu_mhu_v2)
37target_link_libraries(ethosu_drivers INTERFACE ethosu_mhu_juno)
38target_link_libraries(ethosu_drivers INTERFACE ethosu_mhu_dummy)
39
Jonny Svärdff265f92020-12-15 16:02:41 +010040#############################################################################
41# UART drivers
42#############################################################################
43# NOTE: All UART drivers are built, however a platform application should
44# link the appropriate driver target (see drivers/uart/CMakeLists.txt).
45add_subdirectory(uart)
Jonny Svärd3a0d3f22021-03-18 15:31:50 +010046
47#############################################################################
48# Timing adapter driver
49#############################################################################
50add_subdirectory(timing_adapter)
51target_link_libraries(ethosu_drivers INTERFACE timing_adapter)