Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * sys_proto.h |
| 3 | * |
| 4 | * System information header |
| 5 | * |
| 6 | * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | */ |
| 18 | |
| 19 | #ifndef _SYS_PROTO_H_ |
| 20 | #define _SYS_PROTO_H_ |
| 21 | |
| 22 | #define BOARD_REV_ID 0x0 |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 23 | |
| 24 | u32 get_cpu_rev(void); |
| 25 | u32 get_sysboot_value(void); |
| 26 | |
| 27 | #ifdef CONFIG_DISPLAY_CPUINFO |
| 28 | int print_cpuinfo(void); |
| 29 | #endif |
| 30 | |
Satyanarayana, Sandhya | 1178475 | 2012-08-09 18:29:57 +0000 | [diff] [blame] | 31 | extern struct ctrl_stat *cstat; |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 32 | u32 get_device_type(void); |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 33 | void setup_clocks_for_console(void); |
Tom Rini | 034aba7 | 2012-07-03 09:20:06 -0700 | [diff] [blame] | 34 | void ddr_pll_config(unsigned int ddrpll_M); |
Tom Rini | 7a24772 | 2012-07-31 10:50:01 -0700 | [diff] [blame] | 35 | |
Ilya Yanok | 2ebbb86 | 2012-11-06 13:06:30 +0000 | [diff] [blame] | 36 | void sdelay(unsigned long); |
Tom Rini | 8eb48ff | 2013-03-14 11:15:25 +0000 | [diff] [blame] | 37 | |
| 38 | struct gpmc_cs; |
Ilya Yanok | 2ebbb86 | 2012-11-06 13:06:30 +0000 | [diff] [blame] | 39 | void gpmc_init(void); |
Mark Jackson | 7808e1e | 2013-02-18 01:26:29 +0000 | [diff] [blame] | 40 | void enable_gpmc_cs_config(const u32 *gpmc_config, struct gpmc_cs *cs, u32 base, |
| 41 | u32 size); |
Andreas Bießmann | 1e4eccf | 2013-04-04 23:52:50 +0000 | [diff] [blame] | 42 | void omap_nand_switch_ecc(uint32_t, uint32_t); |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 43 | #endif |