19b9c6516SMasahiro Yamada /* 29b9c6516SMasahiro Yamada * Copyright (c) 2013 Xilinx Inc. 39b9c6516SMasahiro Yamada * 49b9c6516SMasahiro Yamada * SPDX-License-Identifier: GPL-2.0+ 59b9c6516SMasahiro Yamada */ 69b9c6516SMasahiro Yamada 79b9c6516SMasahiro Yamada #ifndef _SYS_PROTO_H_ 89b9c6516SMasahiro Yamada #define _SYS_PROTO_H_ 99b9c6516SMasahiro Yamada 109b9c6516SMasahiro Yamada extern void zynq_slcr_lock(void); 119b9c6516SMasahiro Yamada extern void zynq_slcr_unlock(void); 129b9c6516SMasahiro Yamada extern void zynq_slcr_cpu_reset(void); 139b9c6516SMasahiro Yamada extern void zynq_slcr_gem_clk_setup(u32 gem_id, unsigned long clk_rate); 149b9c6516SMasahiro Yamada extern void zynq_slcr_devcfg_disable(void); 159b9c6516SMasahiro Yamada extern void zynq_slcr_devcfg_enable(void); 169b9c6516SMasahiro Yamada extern u32 zynq_slcr_get_boot_mode(void); 179b9c6516SMasahiro Yamada extern u32 zynq_slcr_get_idcode(void); 189b9c6516SMasahiro Yamada extern int zynq_slcr_get_mio_pin_status(const char *periph); 199b9c6516SMasahiro Yamada extern void zynq_ddrc_init(void); 209b9c6516SMasahiro Yamada extern unsigned int zynq_get_silicon_version(void); 219b9c6516SMasahiro Yamada 22*a509a1d4SJoe Hershberger int zynq_board_read_rom_ethaddr(unsigned char *ethaddr); 23*a509a1d4SJoe Hershberger 249b9c6516SMasahiro Yamada /* Driver extern functions */ 259b9c6516SMasahiro Yamada extern void ps7_init(void); 269b9c6516SMasahiro Yamada 279b9c6516SMasahiro Yamada #endif /* _SYS_PROTO_H_ */ 28