2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2011-10-14 02:58:24 +00:00
|
|
|
/*
|
|
|
|
* sys_proto.h
|
|
|
|
*
|
|
|
|
* System information header
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_PROTO_H_
|
|
|
|
#define _SYS_PROTO_H_
|
2013-11-22 11:23:29 +00:00
|
|
|
#include <linux/mtd/omap_gpmc.h>
|
2013-08-30 20:28:46 +00:00
|
|
|
#include <asm/arch/cpu.h>
|
2011-10-14 02:58:24 +00:00
|
|
|
|
|
|
|
u32 get_cpu_rev(void);
|
|
|
|
u32 get_sysboot_value(void);
|
|
|
|
|
2012-08-09 18:29:57 +00:00
|
|
|
extern struct ctrl_stat *cstat;
|
2011-10-14 02:58:24 +00:00
|
|
|
u32 get_device_type(void);
|
2013-05-31 16:31:59 +00:00
|
|
|
void save_omap_boot_params(void);
|
2016-10-14 05:05:24 +00:00
|
|
|
void setup_early_clocks(void);
|
2012-01-09 20:38:59 +00:00
|
|
|
void setup_clocks_for_console(void);
|
2013-06-04 09:01:06 +00:00
|
|
|
void mpu_pll_config_val(int mpull_m);
|
2012-07-03 16:20:06 +00:00
|
|
|
void ddr_pll_config(unsigned int ddrpll_M);
|
2012-07-31 17:50:01 +00:00
|
|
|
|
2012-11-06 13:06:30 +00:00
|
|
|
void sdelay(unsigned long);
|
2013-03-14 11:15:25 +00:00
|
|
|
|
2012-11-06 13:06:30 +00:00
|
|
|
void gpmc_init(void);
|
2016-07-12 18:28:16 +00:00
|
|
|
void enable_gpmc_cs_config(const u32 *gpmc_config, const struct gpmc_cs *cs, u32 base,
|
2013-02-18 01:26:29 +00:00
|
|
|
u32 size);
|
2017-03-06 12:54:30 +00:00
|
|
|
int omap_nand_switch_ecc(uint32_t, uint32_t);
|
2013-06-05 05:47:56 +00:00
|
|
|
|
2013-07-30 05:18:54 +00:00
|
|
|
void set_uart_mux_conf(void);
|
|
|
|
void set_mux_conf_regs(void);
|
|
|
|
void sdram_init(void);
|
2013-07-30 05:18:52 +00:00
|
|
|
u32 wait_on_value(u32, u32, void *, u32);
|
2013-07-30 05:18:54 +00:00
|
|
|
#ifdef CONFIG_NOR_BOOT
|
|
|
|
void enable_norboot_pin_mux(void);
|
|
|
|
#endif
|
2013-08-30 20:28:44 +00:00
|
|
|
void am33xx_spl_board_init(void);
|
2013-08-30 20:28:46 +00:00
|
|
|
int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev);
|
2017-10-11 16:42:23 +00:00
|
|
|
int am335x_get_mpu_vdd(int sil_rev, int frequency);
|
2013-08-30 20:28:46 +00:00
|
|
|
int am335x_get_tps65910_mpu_vdd(int sil_rev, int frequency);
|
2011-10-14 02:58:24 +00:00
|
|
|
#endif
|
2015-08-19 10:46:26 +00:00
|
|
|
|
|
|
|
void enable_usb_clocks(int index);
|
|
|
|
void disable_usb_clocks(int index);
|
2016-10-14 05:05:25 +00:00
|
|
|
void do_board_detect(void);
|
2017-05-05 07:29:10 +00:00
|
|
|
u32 get_sys_clk_index(void);
|