blob: ac7705b3b099dd28ad7639670ad3d78df668987d [file] [log] [blame]
Stefano Babicac41d4d2010-03-05 17:54:37 +01001/*
2 * (C) Copyright 2009
3 * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Stefano Babicac41d4d2010-03-05 17:54:37 +01006 */
7
8#ifndef _SYS_PROTO_H_
9#define _SYS_PROTO_H_
10
Fabio Estevam87d87332014-01-26 15:06:40 -020011#include "../arch-imx/cpu.h"
Troy Kisky58394932012-10-23 10:57:46 +000012
Stefano Babicac41d4d2010-03-05 17:54:37 +010013#define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
Troy Kisky58394932012-10-23 10:57:46 +000014u32 get_cpu_rev(void);
Troy Kiskyb3aec6a2012-10-23 10:57:48 +000015unsigned imx_ddr_size(void);
Stefano Babicdd1d1d52010-07-26 10:05:05 +020016void sdelay(unsigned long);
Fabio Estevam88a22a22011-06-07 07:02:52 +000017void set_chipselect_size(int const);
Fabio Estevamf231efb2011-10-13 05:34:59 +000018
19/*
20 * Initializes on-chip ethernet controllers.
21 * to override, implement board_eth_init()
22 */
23
24int fecmxc_initialize(bd_t *bis);
Fabio Estevam6479f512012-04-29 08:11:13 +000025u32 get_ahb_clk(void);
26u32 get_periph_clk(void);
Fabio Estevam026c9862012-04-30 08:12:03 +000027char *get_reset_cause(void);
Fabio Estevamf231efb2011-10-13 05:34:59 +000028
Stefano Babicac41d4d2010-03-05 17:54:37 +010029#endif