Stefano Babic | ac41d4d | 2010-03-05 17:54:37 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Stefano Babic, DENX Software Engineering, sbabic@denx.de. |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Stefano Babic | ac41d4d | 2010-03-05 17:54:37 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _SYS_PROTO_H_ |
| 9 | #define _SYS_PROTO_H_ |
| 10 | |
Fabio Estevam | 87d8733 | 2014-01-26 15:06:40 -0200 | [diff] [blame] | 11 | #include "../arch-imx/cpu.h" |
Troy Kisky | 5839493 | 2012-10-23 10:57:46 +0000 | [diff] [blame] | 12 | |
Stefano Babic | ac41d4d | 2010-03-05 17:54:37 +0100 | [diff] [blame] | 13 | #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev) |
Troy Kisky | 5839493 | 2012-10-23 10:57:46 +0000 | [diff] [blame] | 14 | u32 get_cpu_rev(void); |
Troy Kisky | b3aec6a | 2012-10-23 10:57:48 +0000 | [diff] [blame] | 15 | unsigned imx_ddr_size(void); |
Stefano Babic | dd1d1d5 | 2010-07-26 10:05:05 +0200 | [diff] [blame] | 16 | void sdelay(unsigned long); |
Fabio Estevam | 88a22a2 | 2011-06-07 07:02:52 +0000 | [diff] [blame] | 17 | void set_chipselect_size(int const); |
Fabio Estevam | f231efb | 2011-10-13 05:34:59 +0000 | [diff] [blame] | 18 | |
| 19 | /* |
| 20 | * Initializes on-chip ethernet controllers. |
| 21 | * to override, implement board_eth_init() |
| 22 | */ |
| 23 | |
| 24 | int fecmxc_initialize(bd_t *bis); |
Fabio Estevam | 6479f51 | 2012-04-29 08:11:13 +0000 | [diff] [blame] | 25 | u32 get_ahb_clk(void); |
| 26 | u32 get_periph_clk(void); |
Fabio Estevam | 026c986 | 2012-04-30 08:12:03 +0000 | [diff] [blame] | 27 | char *get_reset_cause(void); |
Fabio Estevam | f231efb | 2011-10-13 05:34:59 +0000 | [diff] [blame] | 28 | |
Stefano Babic | ac41d4d | 2010-03-05 17:54:37 +0100 | [diff] [blame] | 29 | #endif |