dsp.h 837 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __OMAP_DSP_H__
  2. #define __OMAP_DSP_H__
  3. #include <linux/types.h>
  4. struct omap_dsp_platform_data {
  5. void (*dsp_set_min_opp) (u8 opp_id);
  6. u8 (*dsp_get_opp) (void);
  7. void (*cpu_set_freq) (unsigned long f);
  8. unsigned long (*cpu_get_freq) (void);
  9. unsigned long mpu_speed[6];
  10. /* functions to write and read PRCM registers */
  11. void (*dsp_prm_write)(u32, s16 , u16);
  12. u32 (*dsp_prm_read)(s16 , u16);
  13. u32 (*dsp_prm_rmw_bits)(u32, u32, s16, s16);
  14. void (*dsp_cm_write)(u32, s16 , u16);
  15. u32 (*dsp_cm_read)(s16 , u16);
  16. u32 (*dsp_cm_rmw_bits)(u32, u32, s16, s16);
  17. phys_addr_t phys_mempool_base;
  18. phys_addr_t phys_mempool_size;
  19. };
  20. #if defined(CONFIG_TIDSPBRIDGE) || defined(CONFIG_TIDSPBRIDGE_MODULE)
  21. extern void omap_dsp_reserve_sdram_memblock(void);
  22. #else
  23. static inline void omap_dsp_reserve_sdram_memblock(void) { }
  24. #endif
  25. #endif