2015-01-15 09:01:51 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014 - 2015 Xilinx, Inc.
|
|
|
|
* Michal Simek <michal.simek@xilinx.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
enum {
|
|
|
|
IDCODE,
|
|
|
|
VERSION,
|
|
|
|
};
|
|
|
|
|
|
|
|
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,
|
|
|
|
};
|
|
|
|
|
2015-07-22 07:27:11 +00:00
|
|
|
int zynq_slcr_get_mio_pin_status(const char *periph);
|
2015-01-15 09:01:51 +00:00
|
|
|
|
|
|
|
unsigned int zynqmp_get_silicon_version(void);
|
|
|
|
|
2015-11-20 12:17:22 +00:00
|
|
|
void psu_init(void);
|
|
|
|
|
2017-01-09 09:05:16 +00:00
|
|
|
void handoff_setup(void);
|
|
|
|
|
2017-02-07 13:32:26 +00:00
|
|
|
void zynqmp_pmufw_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);
|
|
|
|
int invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, u32 arg3,
|
|
|
|
u32 *ret_payload);
|
|
|
|
|
2017-07-13 13:31:09 +00:00
|
|
|
void initialize_tcm(bool mode);
|
|
|
|
|
2017-07-25 06:21:38 +00:00
|
|
|
int chip_id(unsigned char id);
|
|
|
|
|
2015-01-15 09:01:51 +00:00
|
|
|
#endif /* _ASM_ARCH_SYS_PROTO_H */
|