blob: 433f9ba07c7791414f77246d1c28bc90b8fe3894 [file] [log] [blame]
Michal Simek4b066a12018-08-22 14:55:27 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2016 - 2018 Xilinx, Inc.
4 */
5
Michal Simek141cbfd2022-08-25 06:59:02 -06006#include <linux/build_bug.h>
7
Siva Durga Prasad Paladugu775aa952019-01-08 21:47:26 +05308enum {
9 TCM_LOCK,
10 TCM_SPLIT,
11};
12
Algapally Santosh Sagarf68ab7b2023-06-09 03:05:30 -060013void initialize_tcm(bool mode);
Siva Durga Prasad Paladugu775aa952019-01-08 21:47:26 +053014void tcm_init(u8 mode);
Michal Simek21eb5cc2019-04-29 09:39:09 -070015void mem_map_fill(void);
Michal Simek141cbfd2022-08-25 06:59:02 -060016
Algapally Santosh Sagar58f731a2023-03-01 03:33:33 -070017int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);