1 /*
2  * (C) Copyright 2009
3  * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #ifndef _SYS_PROTO_H_
9 #define _SYS_PROTO_H_
10 
11 #include "../arch-imx/cpu.h"
12 
13 #define is_soc_rev(rev)	((get_cpu_rev() & 0xFF) - rev)
14 u32 get_cpu_rev(void);
15 unsigned imx_ddr_size(void);
16 void sdelay(unsigned long);
17 void set_chipselect_size(int const);
18 
19 /*
20  * Initializes on-chip ethernet controllers.
21  * to override, implement board_eth_init()
22  */
23 
24 int fecmxc_initialize(bd_t *bis);
25 u32 get_ahb_clk(void);
26 u32 get_periph_clk(void);
27 char *get_reset_cause(void);
28 
29 #endif
30