sram.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * linux/include/asm-arm/arch-omap/sram.h
  3. *
  4. * Interface for functions that need to be run in internal SRAM
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ARCH_ARM_OMAP_SRAM_H
  11. #define __ARCH_ARM_OMAP_SRAM_H
  12. extern void * omap_sram_push(void * start, unsigned long size);
  13. extern void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl);
  14. extern void omap2_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
  15. u32 base_cs, u32 force_unlock);
  16. extern void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
  17. u32 mem_type);
  18. extern u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass);
  19. extern unsigned long omap_fb_sram_start;
  20. extern unsigned long omap_fb_sram_size;
  21. /* Do not use these */
  22. extern void sram_reprogram_clock(u32 ckctl, u32 dpllctl);
  23. extern unsigned long sram_reprogram_clock_sz;
  24. extern void sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
  25. u32 base_cs, u32 force_unlock);
  26. extern unsigned long sram_ddr_init_sz;
  27. extern u32 sram_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass);
  28. extern unsigned long sram_set_prcm_sz;
  29. extern void sram_reprogram_sdrc(u32 perf_level, u32 dll_val, u32 mem_type);
  30. extern unsigned long sram_reprogram_sdrc_sz;
  31. #endif