1ff9f475dSJason Liu /*
2ff9f475dSJason Liu  * (C) Copyright 2009
3ff9f475dSJason Liu  * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
4ff9f475dSJason Liu  *
5ff9f475dSJason Liu  * See file CREDITS for list of people who contributed to this
6ff9f475dSJason Liu  * project.
7ff9f475dSJason Liu  *
8ff9f475dSJason Liu  * This program is free software; you can redistribute it and/or
9ff9f475dSJason Liu  * modify it under the terms of the GNU General Public License as
10ff9f475dSJason Liu  * published by the Free Software Foundation; either version 2 of
11ff9f475dSJason Liu  * the License, or (at your option) any later version.
12ff9f475dSJason Liu  *
13ff9f475dSJason Liu  * This program is distributed in the hope that it will be useful,
14ff9f475dSJason Liu  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15ff9f475dSJason Liu  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16ff9f475dSJason Liu  * GNU General Public License for more details.
17ff9f475dSJason Liu  *
18ff9f475dSJason Liu  * You should have received a copy of the GNU General Public License
19ff9f475dSJason Liu  * along with this program; if not, write to the Free Software
20ff9f475dSJason Liu  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21ff9f475dSJason Liu  * MA 02111-1307 USA
22ff9f475dSJason Liu  */
23ff9f475dSJason Liu 
24ff9f475dSJason Liu #ifndef _SYS_PROTO_H_
25ff9f475dSJason Liu #define _SYS_PROTO_H_
26ff9f475dSJason Liu 
27ff9f475dSJason Liu u32 get_cpu_rev(void);
28ff9f475dSJason Liu #define is_soc_rev(rev)	((get_cpu_rev() & 0xFF) - rev)
29ff9f475dSJason Liu void sdelay(unsigned long);
30a6e961c2SFabio Estevam void set_chipselect_size(int const);
3177f11a99SFabio Estevam 
3277f11a99SFabio Estevam /*
3377f11a99SFabio Estevam  * Initializes on-chip ethernet controllers.
3477f11a99SFabio Estevam  * to override, implement board_eth_init()
3577f11a99SFabio Estevam  */
3677f11a99SFabio Estevam 
3777f11a99SFabio Estevam int fecmxc_initialize(bd_t *bis);
386a376046SFabio Estevam u32 get_ahb_clk(void);
396a376046SFabio Estevam u32 get_periph_clk(void);
40*1fc56f1cSFabio Estevam char *get_reset_cause(void);
4177f11a99SFabio Estevam 
42ff9f475dSJason Liu #endif
43