sys_proto.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * sys_proto.h
  3. *
  4. * System information header
  5. *
  6. * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. */
  10. #ifndef _SYS_PROTO_H_
  11. #define _SYS_PROTO_H_
  12. #include <asm/arch/cpu.h>
  13. #define BOARD_REV_ID 0x0
  14. u32 get_cpu_rev(void);
  15. u32 get_sysboot_value(void);
  16. extern struct ctrl_stat *cstat;
  17. u32 get_device_type(void);
  18. void save_omap_boot_params(void);
  19. void setup_clocks_for_console(void);
  20. void mpu_pll_config_val(int mpull_m);
  21. void ddr_pll_config(unsigned int ddrpll_M);
  22. void sdelay(unsigned long);
  23. struct gpmc_cs;
  24. void gpmc_init(void);
  25. void enable_gpmc_cs_config(const u32 *gpmc_config, struct gpmc_cs *cs, u32 base,
  26. u32 size);
  27. void omap_nand_switch_ecc(uint32_t, uint32_t);
  28. void set_uart_mux_conf(void);
  29. void set_mux_conf_regs(void);
  30. void sdram_init(void);
  31. u32 wait_on_value(u32, u32, void *, u32);
  32. #ifdef CONFIG_NOR_BOOT
  33. void enable_norboot_pin_mux(void);
  34. #endif
  35. void am33xx_spl_board_init(void);
  36. int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev);
  37. int am335x_get_tps65910_mpu_vdd(int sil_rev, int frequency);
  38. #endif