xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-am33xx/sys_proto.h (revision fbd6295da4d69ea32eaa477700d00ac8577a8212)
162d7fe7cSChandan Nath /*
262d7fe7cSChandan Nath  * sys_proto.h
362d7fe7cSChandan Nath  *
462d7fe7cSChandan Nath  * System information header
562d7fe7cSChandan Nath  *
662d7fe7cSChandan Nath  * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
762d7fe7cSChandan Nath  *
81a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
962d7fe7cSChandan Nath  */
1062d7fe7cSChandan Nath 
1162d7fe7cSChandan Nath #ifndef _SYS_PROTO_H_
1262d7fe7cSChandan Nath #define _SYS_PROTO_H_
136aff0509Spekon gupta #include <linux/mtd/omap_gpmc.h>
149721027aSTom Rini #include <asm/arch/cpu.h>
1562d7fe7cSChandan Nath 
1662d7fe7cSChandan Nath u32 get_cpu_rev(void);
1762d7fe7cSChandan Nath u32 get_sysboot_value(void);
1862d7fe7cSChandan Nath 
196995a289SSatyanarayana, Sandhya extern struct ctrl_stat *cstat;
2062d7fe7cSChandan Nath u32 get_device_type(void);
214596dcc1STom Rini void save_omap_boot_params(void);
22b64a7cb9SLokesh Vutla void setup_early_clocks(void);
238a8f084eSChandan Nath void setup_clocks_for_console(void);
247b9c5d0bSHeiko Schocher void mpu_pll_config_val(int mpull_m);
25b971dfadSTom Rini void ddr_pll_config(unsigned int ddrpll_M);
26db7dd810STom Rini 
278eb16b7fSIlya Yanok void sdelay(unsigned long);
2898f92001STom Rini 
298eb16b7fSIlya Yanok void gpmc_init(void);
300568dd06SLadislav Michl void enable_gpmc_cs_config(const u32 *gpmc_config, const struct gpmc_cs *cs, u32 base,
316b3dcc45SMark Jackson 			u32 size);
3250075153SLadislav Michl int omap_nand_switch_ecc(uint32_t, uint32_t);
3349f78365SHeiko Schocher 
340660481aSHeiko Schocher void set_uart_mux_conf(void);
350660481aSHeiko Schocher void set_mux_conf_regs(void);
360660481aSHeiko Schocher void sdram_init(void);
3794d77fb6SLokesh Vutla u32 wait_on_value(u32, u32, void *, u32);
380660481aSHeiko Schocher #ifdef CONFIG_NOR_BOOT
390660481aSHeiko Schocher void enable_norboot_pin_mux(void);
400660481aSHeiko Schocher #endif
416a0d803cSTom Rini void am33xx_spl_board_init(void);
429721027aSTom Rini int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev);
439721027aSTom Rini int am335x_get_tps65910_mpu_vdd(int sil_rev, int frequency);
4462d7fe7cSChandan Nath #endif
4509cc14f4SKishon Vijay Abraham I 
4609cc14f4SKishon Vijay Abraham I void enable_usb_clocks(int index);
4709cc14f4SKishon Vijay Abraham I void disable_usb_clocks(int index);
48140d76a9SLokesh Vutla void do_board_detect(void);
49*fbd6295dSLokesh Vutla u32 get_sys_clk_index(void);
50