drv_reserve_mmap_default.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #ifndef _DRV_RESERV_MMAP_default_H_
  2. #define _DRV_RESERV_MMAP_default_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 )
  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_MPEG 0x01a96000
  12. #define RMEM_DEMOD 0x00000000
  13. #define RMEM_PVR 0x00000000
  14. #define RMEM_POOL 0x00000000
  15. #define RMEM_RUNAV 0x00000000
  16. #define RMEM_DIO 0x00000000
  17. #define RMEM_RMRTEST 0x00000000
  18. #ifdef CONFIG_AUDIO_16_BIT_MEMORY
  19. #define RMEM_AUDIO 0x0013e000
  20. #else
  21. #define RMEM_AUDIO 0x001a4000 //0x00152000
  22. #endif
  23. #endif
  24. #if (CONFIG_DRAMSIZE == 128 )
  25. #define RMEM_MPEG_START_ADDR 0x05400000 //Need 2MB align
  26. #define RMEM_AUDIO 0x002c4000
  27. #define RMEM_VBV 0x00800000
  28. #define RMEM_MPEG 0x01F40000
  29. #define RMEM_POOL 0x00000000
  30. #define RMEM_PVR 0x00000000
  31. #define RMEM_RUNAV 0x00000000
  32. #define RMEM_DIO 0x00000000
  33. #if defined(CONFIG_SUPPORT_MHEG5_HD)
  34. #define RMEM_BLT 0x00704000
  35. #elif defined(CONFIG_BLT_SUPPORT_PART_SCALING)
  36. #define RMEM_BLT 0x0068f000
  37. #else
  38. #define RMEM_BLT 0x00c1e000
  39. #endif
  40. #if defined(CONFIG_EXTIC_LCDCONVERTER)
  41. #define RMEM_VIP 0x00cb0000 //eDP panel needs to disable frame lock and needs 3 buffers all the time.
  42. #elif defined(CONFIG_VIP_COLOR_FORMAT_Y8BIT)
  43. #define RMEM_VIP 0x00780000 //7.5MB 2015.08.19 If use Y8bit, memory can reserve 1MB.
  44. #else
  45. #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)
  46. #endif
  47. #ifdef CONFIG_ENABLE_MIR
  48. #define RMEM_MIR 0x0022a000 // ceil(656x2,16)x576x16x3 = 2267136 bytes = 2214 k bytes
  49. #else
  50. #define RMEM_MIR 0x00000000
  51. #endif
  52. #if (defined(CONFIG_DVB_SYSTEM_DVBT2_SUPPORT))
  53. #define RMEM_DEMOD 0x00A00000
  54. #elif (defined(CONFIG_DVB_SYSTEM_SBTVD_SUPPORT))
  55. #define RMEM_DEMOD 0x00500000
  56. #elif (defined(CONFIG_DVB_SYSTEM_DVBS_SUPPORT))
  57. #define RMEM_DEMOD 0x00091000
  58. #else
  59. #define RMEM_DEMOD 0x0004F000
  60. #endif
  61. #endif
  62. #if (CONFIG_DRAMSIZE == 256 )
  63. /* please fill reserve memory size here */
  64. #define RMEM_MPEG_START_ADDR 0x0d400000 //Need 2MB align
  65. #define RMEM_START_ADDR RMEM_MPEG_START_ADDR-RMEM_DTV_VBV-RMEM_DTV_VIP-RMEM_DTV_BLT-RMEM_DTV_OSDLIB-RMEM_DTV_AUDIO-RMEM_DTV_TCON
  66. #define RMEM_AUDIO 0x002c4000
  67. #define RMEM_VBV 0x00800000
  68. #define RMEM_MPEG 0x01F40000
  69. #define RMEM_POOL 0x00000000
  70. #define RMEM_PVR 0x00000000
  71. #define RMEM_DIO 0x00000000
  72. #if defined(CONFIG_SUPPORT_MHEG5_HD)
  73. #define RMEM_BLT 0x00704000
  74. #elif defined(CONFIG_BLT_SUPPORT_PART_SCALING)
  75. #define RMEM_BLT 0x0068f000
  76. #else
  77. #define RMEM_BLT 0x00c1e000
  78. #endif
  79. #if defined(CONFIG_EXTIC_LCDCONVERTER)
  80. #define RMEM_VIP 0x00cb0000 //eDP panel needs to disable frame lock and needs 3 buffers all the time.
  81. #elif defined(CONFIG_VIP_COLOR_FORMAT_Y8BIT)
  82. #define RMEM_VIP 0x00780000 //7.5MB 2015.08.19 If use Y8bit, memory can reserve 1MB.
  83. #else
  84. #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)
  85. #endif
  86. #ifdef CONFIG_ENABLE_MIR
  87. #define RMEM_MIR 0x0022a000 // ceil(656x2,16)x576x16x3 = 2267136 bytes = 2214 k bytes
  88. #else
  89. #define RMEM_MIR 0x00000000
  90. #endif
  91. #if (defined(CONFIG_DVB_SYSTEM_DVBT2_SUPPORT))
  92. #define RMEM_DEMOD 0x00A00000
  93. #elif (defined(CONFIG_DVB_SYSTEM_SBTVD_SUPPORT))
  94. #define RMEM_DEMOD 0x00500000
  95. #elif (defined(CONFIG_DVB_SYSTEM_DVBS_SUPPORT))
  96. #define RMEM_DEMOD 0x00091000
  97. #else
  98. #define RMEM_DEMOD 0x0004F000
  99. #endif
  100. #endif
  101. #endif // _DRV_RESERV_MMAP_default_H_