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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _SYS_PROTO_H_ |
| 12 | #define _SYS_PROTO_H_ |
pekon gupta | 5bbb099 | 2013-11-22 16:53:29 +0530 | [diff] [blame] | 13 | #include <linux/mtd/omap_gpmc.h> |
Tom Rini | 5243707 | 2013-08-30 16:28:46 -0400 | [diff] [blame] | 14 | #include <asm/arch/cpu.h> |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 15 | |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 16 | u32 get_cpu_rev(void); |
| 17 | u32 get_sysboot_value(void); |
| 18 | |
Satyanarayana, Sandhya | 1178475 | 2012-08-09 18:29:57 +0000 | [diff] [blame] | 19 | extern struct ctrl_stat *cstat; |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 20 | u32 get_device_type(void); |
Tom Rini | 51df26c | 2013-05-31 12:31:59 -0400 | [diff] [blame] | 21 | void save_omap_boot_params(void); |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 22 | void setup_clocks_for_console(void); |
Heiko Schocher | 0ef0817 | 2013-06-04 11:01:06 +0200 | [diff] [blame] | 23 | void mpu_pll_config_val(int mpull_m); |
Tom Rini | 034aba7 | 2012-07-03 09:20:06 -0700 | [diff] [blame] | 24 | void ddr_pll_config(unsigned int ddrpll_M); |
Tom Rini | 7a24772 | 2012-07-31 10:50:01 -0700 | [diff] [blame] | 25 | |
Ilya Yanok | 2ebbb86 | 2012-11-06 13:06:30 +0000 | [diff] [blame] | 26 | void sdelay(unsigned long); |
Tom Rini | 8eb48ff | 2013-03-14 11:15:25 +0000 | [diff] [blame] | 27 | |
Ilya Yanok | 2ebbb86 | 2012-11-06 13:06:30 +0000 | [diff] [blame] | 28 | void gpmc_init(void); |
Ladislav Michl | d5b1c27 | 2016-07-12 20:28:16 +0200 | [diff] [blame] | 29 | void enable_gpmc_cs_config(const u32 *gpmc_config, const struct gpmc_cs *cs, u32 base, |
Mark Jackson | 7808e1e | 2013-02-18 01:26:29 +0000 | [diff] [blame] | 30 | u32 size); |
Andreas Bießmann | 1e4eccf | 2013-04-04 23:52:50 +0000 | [diff] [blame] | 31 | void omap_nand_switch_ecc(uint32_t, uint32_t); |
Heiko Schocher | 8aa1da9 | 2013-06-05 07:47:56 +0200 | [diff] [blame] | 32 | |
Heiko Schocher | b21f2ac | 2013-07-30 10:48:54 +0530 | [diff] [blame] | 33 | void set_uart_mux_conf(void); |
| 34 | void set_mux_conf_regs(void); |
| 35 | void sdram_init(void); |
Lokesh Vutla | 89a83bf | 2013-07-30 10:48:52 +0530 | [diff] [blame] | 36 | u32 wait_on_value(u32, u32, void *, u32); |
Heiko Schocher | b21f2ac | 2013-07-30 10:48:54 +0530 | [diff] [blame] | 37 | #ifdef CONFIG_NOR_BOOT |
| 38 | void enable_norboot_pin_mux(void); |
| 39 | #endif |
Tom Rini | ac8fdf9 | 2013-08-30 16:28:44 -0400 | [diff] [blame] | 40 | void am33xx_spl_board_init(void); |
Tom Rini | 5243707 | 2013-08-30 16:28:46 -0400 | [diff] [blame] | 41 | int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev); |
| 42 | int am335x_get_tps65910_mpu_vdd(int sil_rev, int frequency); |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 43 | #endif |
Kishon Vijay Abraham I | 3dacf66 | 2015-08-19 16:16:26 +0530 | [diff] [blame] | 44 | |
| 45 | void enable_usb_clocks(int index); |
| 46 | void disable_usb_clocks(int index); |