Stefano Babic | 1c2b3ac | 2011-01-20 07:49:52 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2011 |
| 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 | 1c2b3ac | 2011-01-20 07:49:52 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _SYS_PROTO_H_ |
| 9 | #define _SYS_PROTO_H_ |
| 10 | |
| 11 | u32 get_cpu_rev(void); |
Stefano Babic | 6ec4b95 | 2012-10-10 21:11:46 +0000 | [diff] [blame] | 12 | void mx3_setup_sdram_bank(u32 start_address, u32 ddr2_config, |
| 13 | u32 row, u32 col, u32 dsize, u32 refresh); |
Stefano Babic | 1c2b3ac | 2011-01-20 07:49:52 +0000 | [diff] [blame] | 14 | #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev) |
Stefano Babic | 1c2b3ac | 2011-01-20 07:49:52 +0000 | [diff] [blame] | 15 | |
| 16 | #endif |