sys_proto.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2004-2008
  4. * Texas Instruments, <www.ti.com>
  5. * Richard Woodruff <r-woodruff2@ti.com>
  6. */
  7. #ifndef _SYS_PROTO_H_
  8. #define _SYS_PROTO_H_
  9. #include <linux/mtd/omap_gpmc.h>
  10. #include <asm/omap_common.h>
  11. typedef struct {
  12. u32 mtype;
  13. char *board_string;
  14. char *nand_string;
  15. } omap3_sysinfo;
  16. struct emu_hal_params {
  17. u32 num_params;
  18. u32 param1;
  19. };
  20. /* Board SDRC timing values */
  21. struct board_sdrc_timings {
  22. u32 sharing;
  23. u32 mcfg;
  24. u32 ctrla;
  25. u32 ctrlb;
  26. u32 rfr_ctrl;
  27. u32 mr;
  28. };
  29. void prcm_init(void);
  30. void per_clocks_enable(void);
  31. void ehci_clocks_enable(void);
  32. void memif_init(void);
  33. void sdrc_init(void);
  34. void do_sdrc_init(u32, u32);
  35. void get_board_mem_timings(struct board_sdrc_timings *timings);
  36. int identify_nand_chip(int *mfr, int *id);
  37. void emif4_init(void);
  38. void gpmc_init(void);
  39. void enable_gpmc_cs_config(const u32 *gpmc_config, const struct gpmc_cs *cs,
  40. u32 base, u32 size);
  41. void set_gpmc_cs0(int flash_type);
  42. void watchdog_init(void);
  43. void set_muxconf_regs(void);
  44. u32 get_cpu_family(void);
  45. u32 get_cpu_rev(void);
  46. u32 get_sku_id(void);
  47. u32 is_gpmc_muxed(void);
  48. u32 get_gpmc0_type(void);
  49. u32 get_gpmc0_width(void);
  50. u32 is_running_in_sdram(void);
  51. u32 is_running_in_sram(void);
  52. u32 is_running_in_flash(void);
  53. u32 get_device_type(void);
  54. void secureworld_exit(void);
  55. void try_unlock_memory(void);
  56. u32 get_boot_type(void);
  57. void invalidate_dcache(u32);
  58. u32 wait_on_value(u32, u32, void *, u32);
  59. void cancel_out(u32 *num, u32 *den, u32 den_limit);
  60. void sdelay(unsigned long);
  61. void make_cs1_contiguous(void);
  62. int omap_nand_switch_ecc(uint32_t, uint32_t);
  63. void power_init_r(void);
  64. void do_omap3_emu_romcode_call(u32 service_id, u32 parameters);
  65. void omap3_set_aux_cr_secure(u32 acr);
  66. u32 warm_reset(void);
  67. void save_omap_boot_params(void);
  68. #endif