drv_reserve_mmap_531.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _DRV_RESERV_MMAP_531_H_
  2. #define _DRV_RESERV_MMAP_531_H_
  3. #if (CONFIG_DRAMSIZE == 128 ) //531 512
  4. /* please fill reserve memory size here */
  5. #define RMEM_START_ADDR RMEM_MPEG_START_ADDR-RMEM_DTV_VBV-RMEM_DTV_VIP-RMEM_BLT-ADD_OSD_COMPRESS_SIZE-RMEM_DTV_OSDLIB-RMEM_DTV_AUDIO
  6. #define RMEM_MPEG_START_ADDR 0x05400000 //Need 2MB align
  7. #define RMEM_AUDIO 0x002c4000
  8. #define RMEM_VBV 0x00600000
  9. #define RMEM_MPEG 0x01e00000
  10. #define RMEM_POOL 0x00000000
  11. #define RMEM_PVR 0x00000000
  12. #define RMEM_RUNAV 0x00000000
  13. #define RMEM_DIO 0x00000000
  14. #define RMEM_RMRTEST 0x00000000
  15. #if defined(CONFIG_SUPPORT_MHEG5_HD)
  16. #define RMEM_BLT 0x00c62000
  17. #elif defined(CONFIG_BLT_SUPPORT_PART_SCALING)
  18. #define RMEM_BLT 0x0068f000
  19. #else
  20. #define RMEM_BLT 0x00c1e000
  21. #endif
  22. #if defined(CONFIG_EXTIC_LCDCONVERTER)
  23. #define RMEM_VIP 0x00cb0000 //eDP panel needs to disable frame lock and needs 3 buffers all the time.
  24. #elif defined(CONFIG_VIP_COLOR_FORMAT_Y8BIT)
  25. #define RMEM_VIP 0x00780000 //7.5MB 2015.08.19 If use Y8bit, memory can reserve 1MB.
  26. #else
  27. #define RMEM_VIP 0x00880000 //8.5MB, 2014.07.16 jengyun, Y10, C420 and Half-motion are standard procedure of VIP in DTV src, the VIP reserved is 8.5MB instead of 11.75MB. (save 3.25MB)
  28. #endif
  29. #ifdef CONFIG_ENABLE_MIR
  30. #define RMEM_MIR 0x0022a000 // ceil(656x2,16)x576x16x3 = 2267136 bytes = 2214 k bytes
  31. #else
  32. #define RMEM_MIR 0x00000000
  33. #endif
  34. #if (defined(CONFIG_DVB_SYSTEM_DVBT2_SUPPORT))
  35. #define RMEM_DEMOD 0x00A00000
  36. #elif (defined(CONFIG_DVB_SYSTEM_SBTVD_SUPPORT))
  37. #define RMEM_DEMOD 0x00500000
  38. #elif (defined(CONFIG_DVB_SYSTEM_DVBS_SUPPORT))
  39. #define RMEM_DEMOD 0x00091000
  40. #else
  41. #define RMEM_DEMOD 0x0004F000
  42. #endif
  43. #endif
  44. #endif // _DRV_RESERV_MMAP_531_H_