Andrew Scull | 1883487 | 2018-10-12 11:48:09 +0100 | [diff] [blame^] | 1 | # Copyright 2018 Google LLC |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Andrew Scull | 114096b | 2018-07-31 14:42:16 +0100 | [diff] [blame] | 15 | declare_args() { |
| 16 | # Whether to include the PrimeCell UART (PL011) driver. |
| 17 | arch_aarch64_use_pl011 = false |
| 18 | |
| 19 | # The base address of the PrimeCell UART (PL011) device. |
| 20 | arch_aarch64_pl011_base_address = "" |
| 21 | } |
| 22 | |
Andrew Scull | 265ada9 | 2018-07-30 15:19:01 +0100 | [diff] [blame] | 23 | assert( |
| 24 | !arch_aarch64_use_pl011 || arch_aarch64_pl011_base_address != "", |
| 25 | "Must provide the PL011 base address as \"arch_aarch64_pl011_base_address\".") |