blob: d91d98a1196c16643761e615b2ad5f7ef647886d [file] [log] [blame]
Michal Simek04b7e622015-01-15 10:01:51 +01001/*
2 * (C) Copyright 2014 - 2015 Xilinx, Inc.
3 * Michal Simek <michal.simek@xilinx.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef _ASM_ARCH_SYS_PROTO_H
9#define _ASM_ARCH_SYS_PROTO_H
10
Siva Durga Prasad Paladugu0e39bd72017-02-02 01:10:46 +053011#define PAYLOAD_ARG_CNT 5
12
Michal Simekf2e373f2015-07-22 09:27:11 +020013int zynq_slcr_get_mio_pin_status(const char *periph);
Michal Simek04b7e622015-01-15 10:01:51 +010014
15unsigned int zynqmp_get_silicon_version(void);
16
Michal Simek72536fd2015-11-20 13:17:22 +010017void psu_init(void);
18
Michal Simek456e4542017-01-09 10:05:16 +010019void handoff_setup(void);
20
Michal Simek8b353302017-02-07 14:32:26 +010021void zynqmp_pmufw_version(void);
Siva Durga Prasad Paladugu0e39bd72017-02-02 01:10:46 +053022int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);
23int zynqmp_mmio_read(const u32 address, u32 *value);
24int invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, u32 arg3,
25 u32 *ret_payload);
26
Michal Simek04b7e622015-01-15 10:01:51 +010027#endif /* _ASM_ARCH_SYS_PROTO_H */