2010-03-06 01:54:37 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2009
|
|
|
|
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
|
|
|
|
*
|
2013-07-08 16:37:19 +09:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2010-03-06 01:54:37 +09:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_PROTO_H_
|
|
|
|
#define _SYS_PROTO_H_
|
|
|
|
|
2014-01-27 02:06:40 +09:00
|
|
|
#include "../arch-imx/cpu.h"
|
2012-10-23 19:57:46 +09:00
|
|
|
|
2010-03-06 01:54:37 +09:00
|
|
|
#define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
|
2012-10-23 19:57:46 +09:00
|
|
|
u32 get_cpu_rev(void);
|
2012-10-23 19:57:48 +09:00
|
|
|
unsigned imx_ddr_size(void);
|
2010-07-26 17:05:05 +09:00
|
|
|
void sdelay(unsigned long);
|
2011-06-07 16:02:52 +09:00
|
|
|
void set_chipselect_size(int const);
|
2011-10-13 14:34:59 +09:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Initializes on-chip ethernet controllers.
|
|
|
|
* to override, implement board_eth_init()
|
|
|
|
*/
|
|
|
|
|
|
|
|
int fecmxc_initialize(bd_t *bis);
|
2012-04-29 17:11:13 +09:00
|
|
|
u32 get_ahb_clk(void);
|
|
|
|
u32 get_periph_clk(void);
|
2011-10-13 14:34:59 +09:00
|
|
|
|
2010-03-06 01:54:37 +09:00
|
|
|
#endif
|