blob: 67238e7fbcfd0c619836eb4363d38c13732cdf9f [file] [log] [blame]
Michal Simekeb1dfa72013-02-04 12:38:59 +01001/*
2 * Copyright (c) 2013 Xilinx Inc.
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Michal Simekeb1dfa72013-02-04 12:38:59 +01005 */
6
7#ifndef _SYS_PROTO_H_
8#define _SYS_PROTO_H_
9
10extern void zynq_slcr_lock(void);
11extern void zynq_slcr_unlock(void);
12extern void zynq_slcr_cpu_reset(void);
Michal Simek15d654c2013-04-22 15:43:02 +020013extern void zynq_slcr_devcfg_disable(void);
14extern void zynq_slcr_devcfg_enable(void);
Jagannadha Sutradharudu Teki11704c22014-01-09 01:48:21 +053015extern u32 zynq_slcr_get_boot_mode(void);
Michal Simek15d654c2013-04-22 15:43:02 +020016extern u32 zynq_slcr_get_idcode(void);
Michal Simek8d191622014-04-25 12:21:04 +020017extern int zynq_slcr_get_mio_pin_status(const char *periph);
Michal Simekf5ff7bc2013-06-17 14:37:01 +020018extern void zynq_ddrc_init(void);
Siva Durga Prasad Paladugue26ef3b2013-11-29 19:01:25 +053019extern unsigned int zynq_get_silicon_version(void);
Michal Simekeb1dfa72013-02-04 12:38:59 +010020
Joe Hershberger7f4e5552016-01-26 11:57:03 -060021int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
22
Michal Simek0dd222b2013-04-22 14:56:49 +020023/* Driver extern functions */
Michal Simekbf4b1492014-08-11 14:01:57 +020024extern void ps7_init(void);
25
Michal Simekeb1dfa72013-02-04 12:38:59 +010026#endif /* _SYS_PROTO_H_ */