drv_reserve_mmap_331.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #ifndef _DRV_RESERV_MMAP_331_H_
  2. #define _DRV_RESERV_MMAP_331_H_
  3. #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
  4. #if (CONFIG_DRAMSIZE == 64 ) //305 307 8501 8501D
  5. /* please fill reserve memory size here */
  6. #define RMEM_MPEG_START_ADDR 0x02200000 //Need 2MB align
  7. #define RMEM_BLT 0x00270000
  8. #define RMEM_VIP 0x003c0000
  9. #define RMEM_VBV 0x00400000
  10. #define RMEM_MIR 0x00000000
  11. #define RMEM_DEMOD 0x0004f000
  12. #define RMEM_RUNAV RMEM_DEMOD
  13. #define RMEM_POOL RMEM_PVR
  14. #define RMEM_DIO 0x00000000
  15. #define RMEM_RMRTEST 0x00000000
  16. #ifdef CONFIG_AUDIO_16_BIT_MEMORY
  17. #define RMEM_AUDIO 0x0013e000
  18. #else
  19. #define RMEM_AUDIO 0x001a4000 //0x00152000
  20. #endif
  21. #ifdef CONFIG_DTV_SUPPORT
  22. #define RMEM_MPEG 0x01880000
  23. #ifdef CONFIG_SUPPORT_PVR
  24. #define RMEM_PVR 0x00400000
  25. #else
  26. #define RMEM_PVR 0x00000000
  27. #endif
  28. #else
  29. #define RMEM_MPEG 0x01800000
  30. #define RMEM_PVR 0x00000000
  31. #endif
  32. #endif
  33. #if (CONFIG_DRAMSIZE == 128 ) //506
  34. /* please fill reserve memory size here */
  35. #define RMEM_MPEG_START_ADDR 0x05400000 //Need 2MB align
  36. #define RMEM_AUDIO 0x002c4000
  37. #define RMEM_VBV 0x00600000
  38. #define RMEM_MPEG 0x01e00000
  39. #define RMEM_POOL 0x00000000
  40. #define RMEM_PVR 0x00000000
  41. #define RMEM_RUNAV 0x00000000
  42. #define RMEM_DIO 0x00000000
  43. #define RMEM_RMRTEST 0x00000000
  44. #if defined(CONFIG_SUPPORT_MHEG5_HD)
  45. #define RMEM_BLT 0x00c62000
  46. #elif defined(CONFIG_BLT_SUPPORT_PART_SCALING)
  47. #define RMEM_BLT 0x0068f000
  48. #else
  49. #define RMEM_BLT 0x00c1e000
  50. #endif
  51. #if defined(CONFIG_EXTIC_LCDCONVERTER)
  52. #define RMEM_VIP 0x00cb0000 //eDP panel needs to disable frame lock and needs 3 buffers all the time.
  53. #elif defined(CONFIG_VIP_COLOR_FORMAT_Y8BIT)
  54. #define RMEM_VIP 0x00780000 //7.5MB 2015.08.19 If use Y8bit, memory can reserve 1MB.
  55. #else
  56. #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)
  57. #endif
  58. #ifdef CONFIG_ENABLE_MIR
  59. #define RMEM_MIR 0x0022a000 // ceil(656x2,16)x576x16x3 = 2267136 bytes = 2214 k bytes
  60. #else
  61. #define RMEM_MIR 0x00000000
  62. #endif
  63. #if (defined(CONFIG_DVB_SYSTEM_SBTVD_SUPPORT))
  64. #define RMEM_DEMOD 0x00500000
  65. #else
  66. #define RMEM_DEMOD 0x0004F000
  67. #endif
  68. #endif
  69. #endif // _DRV_RESERV_MMAP_331_H_