Michal Simek | 4b066a1 | 2018-08-22 14:55:27 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2016 - 2018 Xilinx, Inc. |
| 4 | */ |
| 5 | |
Michal Simek | 141cbfd | 2022-08-25 06:59:02 -0600 | [diff] [blame] | 6 | #include <linux/build_bug.h> |
| 7 | |
Siva Durga Prasad Paladugu | 775aa95 | 2019-01-08 21:47:26 +0530 | [diff] [blame] | 8 | enum { |
| 9 | TCM_LOCK, |
| 10 | TCM_SPLIT, |
| 11 | }; |
| 12 | |
| 13 | void tcm_init(u8 mode); |
Michal Simek | 21eb5cc | 2019-04-29 09:39:09 -0700 | [diff] [blame] | 14 | void mem_map_fill(void); |
Michal Simek | 141cbfd | 2022-08-25 06:59:02 -0600 | [diff] [blame] | 15 | |
| 16 | static inline int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value) |
| 17 | { |
| 18 | BUILD_BUG(); |
| 19 | return -EINVAL; |
| 20 | } |