sys_proto.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * sys_proto.h
  4. *
  5. * System information header
  6. *
  7. * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
  8. */
  9. #ifndef _SYS_PROTO_H_
  10. #define _SYS_PROTO_H_
  11. #include <linux/mtd/omap_gpmc.h>
  12. #include <asm/arch/cpu.h>
  13. u32 get_cpu_rev(void);
  14. u32 get_sysboot_value(void);
  15. extern struct ctrl_stat *cstat;
  16. u32 get_device_type(void);
  17. void save_omap_boot_params(void);
  18. void setup_early_clocks(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. void gpmc_init(void);
  24. void enable_gpmc_cs_config(const u32 *gpmc_config, const struct gpmc_cs *cs, u32 base,
  25. u32 size);
  26. int omap_nand_switch_ecc(uint32_t, uint32_t);
  27. void set_uart_mux_conf(void);
  28. void set_mux_conf_regs(void);
  29. void sdram_init(void);
  30. u32 wait_on_value(u32, u32, void *, u32);
  31. #ifdef CONFIG_NOR_BOOT
  32. void enable_norboot_pin_mux(void);
  33. #endif
  34. void am33xx_spl_board_init(void);
  35. int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev);
  36. int am335x_get_mpu_vdd(int sil_rev, int frequency);
  37. int am335x_get_tps65910_mpu_vdd(int sil_rev, int frequency);
  38. #endif
  39. void enable_usb_clocks(int index);
  40. void disable_usb_clocks(int index);
  41. void do_board_detect(void);
  42. u32 get_sys_clk_index(void);