]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/include/asm/arch-am33xx/sys_proto.h
arm: OMAP2+: nandecc: propagate error to command return status
[people/ms/u-boot.git] / arch / arm / include / asm / arch-am33xx / sys_proto.h
CommitLineData
62d7fe7c
CN
1/*
2 * sys_proto.h
3 *
4 * System information header
5 *
6 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
7 *
1a459660 8 * SPDX-License-Identifier: GPL-2.0+
62d7fe7c
CN
9 */
10
11#ifndef _SYS_PROTO_H_
12#define _SYS_PROTO_H_
6aff0509 13#include <linux/mtd/omap_gpmc.h>
9721027a 14#include <asm/arch/cpu.h>
62d7fe7c 15
62d7fe7c
CN
16u32 get_cpu_rev(void);
17u32 get_sysboot_value(void);
18
6995a289 19extern struct ctrl_stat *cstat;
62d7fe7c 20u32 get_device_type(void);
4596dcc1 21void save_omap_boot_params(void);
b64a7cb9 22void setup_early_clocks(void);
8a8f084e 23void setup_clocks_for_console(void);
7b9c5d0b 24void mpu_pll_config_val(int mpull_m);
b971dfad 25void ddr_pll_config(unsigned int ddrpll_M);
db7dd810 26
8eb16b7f 27void sdelay(unsigned long);
98f92001 28
8eb16b7f 29void gpmc_init(void);
0568dd06 30void enable_gpmc_cs_config(const u32 *gpmc_config, const struct gpmc_cs *cs, u32 base,
6b3dcc45 31 u32 size);
50075153 32int omap_nand_switch_ecc(uint32_t, uint32_t);
49f78365 33
0660481a
HS
34void set_uart_mux_conf(void);
35void set_mux_conf_regs(void);
36void sdram_init(void);
94d77fb6 37u32 wait_on_value(u32, u32, void *, u32);
0660481a
HS
38#ifdef CONFIG_NOR_BOOT
39void enable_norboot_pin_mux(void);
40#endif
6a0d803c 41void am33xx_spl_board_init(void);
9721027a
TR
42int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev);
43int am335x_get_tps65910_mpu_vdd(int sil_rev, int frequency);
62d7fe7c 44#endif
09cc14f4
KVA
45
46void enable_usb_clocks(int index);
47void disable_usb_clocks(int index);
140d76a9 48void do_board_detect(void);