2010-03-05 16:54:37 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2009
|
|
|
|
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2010-03-05 16:54:37 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_PROTO_H_
|
|
|
|
#define _SYS_PROTO_H_
|
|
|
|
|
2012-10-23 10:57:46 +00:00
|
|
|
#define MXC_CPU_MX51 0x51
|
|
|
|
#define MXC_CPU_MX53 0x53
|
|
|
|
#define MXC_CPU_MX6SL 0x60
|
|
|
|
#define MXC_CPU_MX6DL 0x61
|
|
|
|
#define MXC_CPU_MX6SOLO 0x62
|
|
|
|
#define MXC_CPU_MX6Q 0x63
|
|
|
|
|
2010-03-05 16:54:37 +00:00
|
|
|
#define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
|
2012-10-23 10:57:46 +00:00
|
|
|
u32 get_cpu_rev(void);
|
2012-10-23 10:57:48 +00:00
|
|
|
unsigned imx_ddr_size(void);
|
2010-07-26 08:05:05 +00:00
|
|
|
void sdelay(unsigned long);
|
2011-06-07 07:02:52 +00:00
|
|
|
void set_chipselect_size(int const);
|
2011-10-13 05:34:59 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Initializes on-chip ethernet controllers.
|
|
|
|
* to override, implement board_eth_init()
|
|
|
|
*/
|
|
|
|
|
|
|
|
int fecmxc_initialize(bd_t *bis);
|
2012-04-29 08:11:13 +00:00
|
|
|
u32 get_ahb_clk(void);
|
|
|
|
u32 get_periph_clk(void);
|
2012-04-30 08:12:03 +00:00
|
|
|
char *get_reset_cause(void);
|
2011-10-13 05:34:59 +00:00
|
|
|
|
2010-03-05 16:54:37 +00:00
|
|
|
#endif
|