Jonny Svärd | b64628f | 2020-06-02 15:24:54 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
| 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 | #ifndef ETHOSU_CONFIG_H |
| 20 | #define ETHOSU_CONFIG_H |
| 21 | |
| 22 | /* Set default values if not manually overriden */ |
| 23 | |
| 24 | #ifndef NPU_QCONFIG |
| 25 | #define NPU_QCONFIG 2 |
| 26 | #endif |
| 27 | |
| 28 | #ifndef NPU_REGIONCFG_0 |
| 29 | #define NPU_REGIONCFG_0 3 |
| 30 | #endif |
| 31 | |
| 32 | #ifndef NPU_REGIONCFG_1 |
| 33 | #define NPU_REGIONCFG_1 0 |
| 34 | #endif |
| 35 | |
| 36 | #ifndef NPU_REGIONCFG_2 |
| 37 | #define NPU_REGIONCFG_2 1 |
| 38 | #endif |
| 39 | |
| 40 | #ifndef NPU_REGIONCFG_3 |
| 41 | #define NPU_REGIONCFG_3 1 |
| 42 | #endif |
| 43 | |
| 44 | #ifndef NPU_REGIONCFG_4 |
| 45 | #define NPU_REGIONCFG_4 1 |
| 46 | #endif |
| 47 | |
| 48 | #ifndef NPU_REGIONCFG_5 |
| 49 | #define NPU_REGIONCFG_5 1 |
| 50 | #endif |
| 51 | |
| 52 | #ifndef NPU_REGIONCFG_6 |
| 53 | #define NPU_REGIONCFG_6 1 |
| 54 | #endif |
| 55 | |
| 56 | #ifndef NPU_REGIONCFG_7 |
| 57 | #define NPU_REGIONCFG_7 1 |
| 58 | #endif |
| 59 | |
| 60 | #ifndef AXI_LIMIT0_MAX_BEATS_BYTES |
| 61 | #define AXI_LIMIT0_MAX_BEATS_BYTES 0x0 |
| 62 | #endif |
| 63 | #ifndef AXI_LIMIT0_MEM_TYPE |
| 64 | #define AXI_LIMIT0_MEM_TYPE 0x0 |
| 65 | #endif |
| 66 | #ifndef AXI_LIMIT0_MAX_OUTSTANDING_READS |
| 67 | #define AXI_LIMIT0_MAX_OUTSTANDING_READS 32 |
| 68 | #endif |
| 69 | #ifndef AXI_LIMIT0_MAX_OUTSTANDING_WRITES |
| 70 | #define AXI_LIMIT0_MAX_OUTSTANDING_WRITES 16 |
| 71 | #endif |
| 72 | |
| 73 | #ifndef AXI_LIMIT1_MAX_BEATS_BYTES |
| 74 | #define AXI_LIMIT1_MAX_BEATS_BYTES 0x0 |
| 75 | #endif |
| 76 | #ifndef AXI_LIMIT1_MEM_TYPE |
| 77 | #define AXI_LIMIT1_MEM_TYPE 0x0 |
| 78 | #endif |
| 79 | #ifndef AXI_LIMIT1_MAX_OUTSTANDING_READS |
| 80 | #define AXI_LIMIT1_MAX_OUTSTANDING_READS 32 |
| 81 | #endif |
| 82 | #ifndef AXI_LIMIT1_MAX_OUTSTANDING_WRITES |
| 83 | #define AXI_LIMIT1_MAX_OUTSTANDING_WRITES 16 |
| 84 | #endif |
| 85 | |
| 86 | #ifndef AXI_LIMIT2_MAX_BEATS_BYTES |
| 87 | #define AXI_LIMIT2_MAX_BEATS_BYTES 0x0 |
| 88 | #endif |
| 89 | #ifndef AXI_LIMIT2_MEM_TYPE |
| 90 | #define AXI_LIMIT2_MEM_TYPE 0x0 |
| 91 | #endif |
| 92 | #ifndef AXI_LIMIT2_MAX_OUTSTANDING_READS |
| 93 | #define AXI_LIMIT2_MAX_OUTSTANDING_READS 32 |
| 94 | #endif |
| 95 | #ifndef AXI_LIMIT2_MAX_OUTSTANDING_WRITES |
| 96 | #define AXI_LIMIT2_MAX_OUTSTANDING_WRITES 16 |
| 97 | #endif |
| 98 | #ifndef AXI_LIMIT3_MAX_BEATS_BYTES |
| 99 | #define AXI_LIMIT3_MAX_BEATS_BYTES 0x0 |
| 100 | #endif |
| 101 | #ifndef AXI_LIMIT3_MEM_TYPE |
| 102 | #define AXI_LIMIT3_MEM_TYPE 0x0 |
| 103 | #endif |
| 104 | #ifndef AXI_LIMIT3_MAX_OUTSTANDING_READS |
| 105 | #define AXI_LIMIT3_MAX_OUTSTANDING_READS 32 |
| 106 | #endif |
| 107 | #ifndef AXI_LIMIT3_MAX_OUTSTANDING_WRITES |
| 108 | #define AXI_LIMIT3_MAX_OUTSTANDING_WRITES 16 |
| 109 | #endif |
| 110 | |
Kristofer Jonsson | 125429a | 2020-08-20 16:52:23 +0200 | [diff] [blame] | 111 | /* |
| 112 | * Address offset between the CPU and the NPU. The offset is |
| 113 | * applied to the QBASE and BASEP registers. |
| 114 | */ |
| 115 | #ifndef BASE_POINTER_OFFSET |
| 116 | #define BASE_POINTER_OFFSET 0 |
| 117 | #endif |
| 118 | |
Jonny Svärd | b64628f | 2020-06-02 15:24:54 +0200 | [diff] [blame] | 119 | #endif /* #ifndef ETHOSU_CONFIG_H */ |