Michal Simek | eb1dfa7 | 2013-02-04 12:38:59 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 Xilinx Inc. |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Michal Simek | eb1dfa7 | 2013-02-04 12:38:59 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _SYS_PROTO_H_ |
| 8 | #define _SYS_PROTO_H_ |
| 9 | |
| 10 | extern void zynq_slcr_lock(void); |
| 11 | extern void zynq_slcr_unlock(void); |
| 12 | extern void zynq_slcr_cpu_reset(void); |
Soren Brinkmann | 4dded98 | 2013-11-21 13:39:01 -0800 | [diff] [blame] | 13 | extern void zynq_slcr_gem_clk_setup(u32 gem_id, unsigned long clk_rate); |
Michal Simek | 15d654c | 2013-04-22 15:43:02 +0200 | [diff] [blame] | 14 | extern void zynq_slcr_devcfg_disable(void); |
| 15 | extern void zynq_slcr_devcfg_enable(void); |
Jagannadha Sutradharudu Teki | 11704c2 | 2014-01-09 01:48:21 +0530 | [diff] [blame] | 16 | extern u32 zynq_slcr_get_boot_mode(void); |
Michal Simek | 15d654c | 2013-04-22 15:43:02 +0200 | [diff] [blame] | 17 | extern u32 zynq_slcr_get_idcode(void); |
Michal Simek | 8d19162 | 2014-04-25 12:21:04 +0200 | [diff] [blame] | 18 | extern int zynq_slcr_get_mio_pin_status(const char *periph); |
Michal Simek | f5ff7bc | 2013-06-17 14:37:01 +0200 | [diff] [blame] | 19 | extern void zynq_ddrc_init(void); |
Siva Durga Prasad Paladugu | e26ef3b | 2013-11-29 19:01:25 +0530 | [diff] [blame] | 20 | extern unsigned int zynq_get_silicon_version(void); |
Michal Simek | eb1dfa7 | 2013-02-04 12:38:59 +0100 | [diff] [blame] | 21 | |
Michal Simek | 0dd222b | 2013-04-22 14:56:49 +0200 | [diff] [blame] | 22 | /* Driver extern functions */ |
Michal Simek | bf4b149 | 2014-08-11 14:01:57 +0200 | [diff] [blame] | 23 | extern void ps7_init(void); |
| 24 | |
Michal Simek | eb1dfa7 | 2013-02-04 12:38:59 +0100 | [diff] [blame] | 25 | #endif /* _SYS_PROTO_H_ */ |