Michal Simek | 04b7e62 | 2015-01-15 10:01:51 +0100 | [diff] [blame] | 1 | /* |
| 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 Paladugu | 0e39bd7 | 2017-02-02 01:10:46 +0530 | [diff] [blame] | 11 | #define PAYLOAD_ARG_CNT 5 |
| 12 | |
Michal Simek | f2e373f | 2015-07-22 09:27:11 +0200 | [diff] [blame] | 13 | int zynq_slcr_get_mio_pin_status(const char *periph); |
Michal Simek | 04b7e62 | 2015-01-15 10:01:51 +0100 | [diff] [blame] | 14 | |
| 15 | unsigned int zynqmp_get_silicon_version(void); |
| 16 | |
Michal Simek | 72536fd | 2015-11-20 13:17:22 +0100 | [diff] [blame] | 17 | void psu_init(void); |
| 18 | |
Michal Simek | 456e454 | 2017-01-09 10:05:16 +0100 | [diff] [blame] | 19 | void handoff_setup(void); |
| 20 | |
Michal Simek | 8b35330 | 2017-02-07 14:32:26 +0100 | [diff] [blame] | 21 | void zynqmp_pmufw_version(void); |
Siva Durga Prasad Paladugu | 0e39bd7 | 2017-02-02 01:10:46 +0530 | [diff] [blame] | 22 | int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value); |
| 23 | int zynqmp_mmio_read(const u32 address, u32 *value); |
| 24 | int invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, u32 arg3, |
| 25 | u32 *ret_payload); |
| 26 | |
Michal Simek | 04b7e62 | 2015-01-15 10:01:51 +0100 | [diff] [blame] | 27 | #endif /* _ASM_ARCH_SYS_PROTO_H */ |