2013-02-04 11:38:59 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Xilinx Inc.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2013-02-04 11:38:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_PROTO_H_
|
|
|
|
#define _SYS_PROTO_H_
|
|
|
|
|
|
|
|
extern void zynq_slcr_lock(void);
|
|
|
|
extern void zynq_slcr_unlock(void);
|
|
|
|
extern void zynq_slcr_cpu_reset(void);
|
2013-11-21 21:39:01 +00:00
|
|
|
extern void zynq_slcr_gem_clk_setup(u32 gem_id, unsigned long clk_rate);
|
2013-04-22 13:43:02 +00:00
|
|
|
extern void zynq_slcr_devcfg_disable(void);
|
|
|
|
extern void zynq_slcr_devcfg_enable(void);
|
2014-01-08 20:18:21 +00:00
|
|
|
extern u32 zynq_slcr_get_boot_mode(void);
|
2013-04-22 13:43:02 +00:00
|
|
|
extern u32 zynq_slcr_get_idcode(void);
|
2014-04-25 10:21:04 +00:00
|
|
|
extern int zynq_slcr_get_mio_pin_status(const char *periph);
|
2013-06-17 12:37:01 +00:00
|
|
|
extern void zynq_ddrc_init(void);
|
2013-11-29 13:31:25 +00:00
|
|
|
extern unsigned int zynq_get_silicon_version(void);
|
2013-02-04 11:38:59 +00:00
|
|
|
|
2013-04-22 12:56:49 +00:00
|
|
|
/* Driver extern functions */
|
2015-01-14 15:11:47 +00:00
|
|
|
extern int zynq_sdhci_init(phys_addr_t regbase);
|
2014-02-24 10:16:31 +00:00
|
|
|
extern int zynq_sdhci_of_init(const void *blob);
|
2013-04-22 12:56:49 +00:00
|
|
|
|
2014-08-11 12:01:57 +00:00
|
|
|
extern void ps7_init(void);
|
|
|
|
|
2013-02-04 11:38:59 +00:00
|
|
|
#endif /* _SYS_PROTO_H_ */
|