2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2015-01-15 09:01:51 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014 - 2015 Xilinx, Inc.
|
|
|
|
* Michal Simek <michal.simek@xilinx.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_ARCH_SYS_PROTO_H
|
|
|
|
#define _ASM_ARCH_SYS_PROTO_H
|
|
|
|
|
2017-02-01 19:40:46 +00:00
|
|
|
#define PAYLOAD_ARG_CNT 5
|
|
|
|
|
2017-07-25 06:21:36 +00:00
|
|
|
#define ZYNQMP_CSU_SILICON_VER_MASK 0xF
|
2018-02-28 07:56:53 +00:00
|
|
|
#define KEY_PTR_LEN 32
|
2017-07-25 06:21:36 +00:00
|
|
|
|
2018-05-31 09:40:23 +00:00
|
|
|
#define ZYNQMP_FPGA_BIT_AUTH_DDR 1
|
|
|
|
#define ZYNQMP_FPGA_BIT_AUTH_OCM 2
|
|
|
|
#define ZYNQMP_FPGA_BIT_ENC_USR_KEY 3
|
|
|
|
#define ZYNQMP_FPGA_BIT_ENC_DEV_KEY 4
|
2018-03-01 12:14:47 +00:00
|
|
|
#define ZYNQMP_FPGA_BIT_NS 5
|
|
|
|
|
2018-05-31 09:40:23 +00:00
|
|
|
#define ZYNQMP_FPGA_AUTH_DDR 1
|
|
|
|
|
2017-07-25 06:21:36 +00:00
|
|
|
enum {
|
|
|
|
IDCODE,
|
|
|
|
VERSION,
|
2017-08-22 12:58:53 +00:00
|
|
|
IDCODE2,
|
2017-07-25 06:21:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
ZYNQMP_SILICON_V1,
|
|
|
|
ZYNQMP_SILICON_V2,
|
|
|
|
ZYNQMP_SILICON_V3,
|
|
|
|
ZYNQMP_SILICON_V4,
|
|
|
|
};
|
|
|
|
|
2017-07-13 13:31:09 +00:00
|
|
|
enum {
|
|
|
|
TCM_LOCK,
|
|
|
|
TCM_SPLIT,
|
|
|
|
};
|
|
|
|
|
2019-09-27 10:36:56 +00:00
|
|
|
struct zynqmp_ipi_msg {
|
|
|
|
size_t len;
|
|
|
|
u32 *buf;
|
|
|
|
};
|
|
|
|
|
2017-07-31 08:37:09 +00:00
|
|
|
int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
|
2015-01-15 09:01:51 +00:00
|
|
|
unsigned int zynqmp_get_silicon_version(void);
|
|
|
|
|
2017-02-01 19:40:46 +00:00
|
|
|
int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);
|
|
|
|
int zynqmp_mmio_read(const u32 address, u32 *value);
|
|
|
|
|
2017-07-13 13:31:09 +00:00
|
|
|
void initialize_tcm(bool mode);
|
2018-04-20 07:00:40 +00:00
|
|
|
void mem_map_fill(void);
|
2017-07-25 06:21:38 +00:00
|
|
|
int chip_id(unsigned char id);
|
2018-10-05 09:39:05 +00:00
|
|
|
#if defined(CONFIG_SYS_MEM_RSVD_FOR_MMU) || defined(CONFIG_DEFINE_TCM_OCM_MMAP)
|
|
|
|
void tcm_init(u8 mode);
|
|
|
|
#endif
|
2017-07-25 06:21:38 +00:00
|
|
|
|
2015-01-15 09:01:51 +00:00
|
|
|
#endif /* _ASM_ARCH_SYS_PROTO_H */
|