1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2014 - 2015 Xilinx, Inc.
4 * Michal Simek <michal.simek@xilinx.com>
7 #ifndef _ASM_ARCH_SYS_PROTO_H
8 #define _ASM_ARCH_SYS_PROTO_H
10 #define PAYLOAD_ARG_CNT 5
12 #define ZYNQMP_CSU_SILICON_VER_MASK 0xF
13 #define ZYNQMP_SIP_SVC_PM_SECURE_IMG_LOAD 0xC200002D
14 #define KEY_PTR_LEN 32
16 #define ZYNQMP_FPGA_BIT_NS 5
36 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
37 unsigned int zynqmp_get_silicon_version(void);
39 void handoff_setup(void);
41 void zynqmp_pmufw_version(void);
42 int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);
43 int zynqmp_mmio_read(const u32 address, u32 *value);
44 int invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, u32 arg3,
47 void initialize_tcm(bool mode);
48 void mem_map_fill(void);
49 int chip_id(unsigned char id);
51 #endif /* _ASM_ARCH_SYS_PROTO_H */