Jonny Svärd | 44398c8 | 2020-10-06 14:18:28 +0200 | [diff] [blame] | 1 | # |
Jonny Svärd | 3a0d3f2 | 2021-03-18 15:31:50 +0100 | [diff] [blame^] | 2 | # Copyright (c) 2020-2021 Arm Limited. All rights reserved. |
Jonny Svärd | 44398c8 | 2020-10-06 14:18:28 +0200 | [diff] [blame] | 3 | # |
| 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 | |
| 19 | add_library(ethosu_drivers INTERFACE) |
| 20 | |
Jonny Svärd | ff265f9 | 2020-12-15 16:02:41 +0100 | [diff] [blame] | 21 | ############################################################################# |
Jonny Svärd | 44398c8 | 2020-10-06 14:18:28 +0200 | [diff] [blame] | 22 | # Mailbox driver |
Jonny Svärd | ff265f9 | 2020-12-15 16:02:41 +0100 | [diff] [blame] | 23 | ############################################################################# |
Jonny Svärd | 44398c8 | 2020-10-06 14:18:28 +0200 | [diff] [blame] | 24 | add_subdirectory(mailbox) |
Jonny Svärd | 9fc527b | 2020-11-16 16:18:07 +0100 | [diff] [blame] | 25 | target_link_libraries(ethosu_drivers INTERFACE ethosu_mailbox) |
| 26 | |
Jonny Svärd | ff265f9 | 2020-12-15 16:02:41 +0100 | [diff] [blame] | 27 | ############################################################################# |
Jonny Svärd | 9fc527b | 2020-11-16 16:18:07 +0100 | [diff] [blame] | 28 | # MHU drivers |
Jonny Svärd | ff265f9 | 2020-12-15 16:02:41 +0100 | [diff] [blame] | 29 | ############################################################################# |
| 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ärd | 9fc527b | 2020-11-16 16:18:07 +0100 | [diff] [blame] | 33 | add_subdirectory(mhu_v2) |
| 34 | add_subdirectory(mhu_juno) |
| 35 | add_subdirectory(mhu_dummy) |
| 36 | target_link_libraries(ethosu_drivers INTERFACE ethosu_mhu_v2) |
| 37 | target_link_libraries(ethosu_drivers INTERFACE ethosu_mhu_juno) |
| 38 | target_link_libraries(ethosu_drivers INTERFACE ethosu_mhu_dummy) |
| 39 | |
Jonny Svärd | ff265f9 | 2020-12-15 16:02:41 +0100 | [diff] [blame] | 40 | ############################################################################# |
| 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). |
| 45 | add_subdirectory(uart) |
Jonny Svärd | 3a0d3f2 | 2021-03-18 15:31:50 +0100 | [diff] [blame^] | 46 | |
| 47 | ############################################################################# |
| 48 | # Timing adapter driver |
| 49 | ############################################################################# |
| 50 | add_subdirectory(timing_adapter) |
| 51 | target_link_libraries(ethosu_drivers INTERFACE timing_adapter) |