drv_reserve_mmap_533.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #ifndef _DRV_RESERV_MMAP_533_H_
  2. #define _DRV_RESERV_MMAP_533_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 ) || defined(CONFIG_SUPPORT_64M_DTV) //512L
  5. /* please fill reserve memory size here */
  6. #ifdef CONFIG_DVB_SYSTEM_DVBT2_SUPPORT
  7. #define RMEM_MPEG_START_ADDR 0x01c00000 //Need 2MB align
  8. #else
  9. #define RMEM_MPEG_START_ADDR 0x02200000 //Need 2MB align
  10. #endif
  11. #define RMEM_BLT 0x00190000
  12. #define RMEM_VIP 0x003c0000
  13. #define RMEM_VBV 0x00400000
  14. #define RMEM_MIR 0x00000000
  15. #define RMEM_DIO 0x00100000
  16. #define RMEM_RMRTEST 0x00000000
  17. #ifdef CONFIG_AUDIO_16_BIT_MEMORY
  18. #define RMEM_AUDIO 0x0013e000
  19. #else
  20. #define RMEM_AUDIO 0x001e4000
  21. #endif
  22. #ifdef CONFIG_DTV_NOTSUPPORT_HEVC
  23. #define RMEM_MPEG 0x015C0000
  24. #else
  25. #define RMEM_MPEG 0x01A36000
  26. #endif
  27. #ifdef CONFIG_DVB_SYSTEM_DVBT2_SUPPORT
  28. #define RMEM_DEMOD 0x009D6000
  29. #define RMEM_RUNAV 0x00440000
  30. #define RMEM_POOL 0x00500000
  31. #else
  32. #define RMEM_DEMOD 0x00091000
  33. #define RMEM_RUNAV RMEM_DEMOD
  34. #define RMEM_POOL 0x00000000
  35. #endif
  36. #ifdef CONFIG_SUPPORT_PVR
  37. #define RMEM_PVR 0x00300000
  38. #else
  39. #define RMEM_PVR 0x00000000
  40. #endif
  41. //#endif //CONFIG_DRAMSIZE == 64
  42. #elif (CONFIG_DRAMSIZE == 128 ) //533 512C
  43. /* please fill reserve memory size here */
  44. #if (defined(CONFIG_DVB_SYSTEM_DVBT2_SUPPORT))
  45. #define RMEM_MPEG_START_ADDR 0x05400000 //Need 2MB align
  46. #define RMEM_DEMOD 0x00A00000
  47. #elif (defined(CONFIG_DVB_SYSTEM_SBTVD_SUPPORT))
  48. #define RMEM_MPEG_START_ADDR 0x05800000 //Need 2MB align
  49. #define RMEM_DEMOD 0x00500000
  50. #elif (defined(CONFIG_DVB_SYSTEM_DVBS_SUPPORT))
  51. #define RMEM_MPEG_START_ADDR 0x05c00000 //Need 2MB align
  52. #define RMEM_DEMOD 0x00091000
  53. #else
  54. #define RMEM_MPEG_START_ADDR 0x05c00000 //Need 2MB align
  55. #define RMEM_DEMOD 0x0004F000
  56. #endif
  57. #define RMEM_AUDIO 0x002c4000
  58. #define RMEM_VBV 0x00800000
  59. #define RMEM_MPEG 0x01F40000
  60. #define RMEM_POOL 0x00000000
  61. #define RMEM_PVR 0x00000000
  62. #define RMEM_RUNAV 0x00000000
  63. #define RMEM_DIO 0x00000000
  64. #define RMEM_RMRTEST 0x00000000
  65. #if defined(CONFIG_BLT_SUPPORT_PART_SCALING)
  66. #if defined(CONFIG_USE_PROPRIETARY_MHEG5)
  67. #define RMEM_BLT 0x00704000
  68. #elif defined(CONFIG_SUPPORT_MHEG5_HD)
  69. #define RMEM_BLT 0x006a3000
  70. #else
  71. #define RMEM_BLT 0x0068f000
  72. #endif
  73. #else
  74. #define RMEM_BLT 0x00c1e000
  75. #endif
  76. #if defined(CONFIG_EXTIC_LCDCONVERTER)
  77. #define RMEM_VIP 0x00cb0000 //eDP panel needs to disable frame lock and needs 3 buffers all the time.
  78. #elif defined(CONFIG_VIP_COLOR_FORMAT_Y8BIT)
  79. #define RMEM_VIP 0x00780000 //7.5MB 2015.08.19 If use Y8bit, memory can reserve 1MB.
  80. #else
  81. #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)
  82. #endif
  83. #ifdef CONFIG_ENABLE_MIR
  84. #define RMEM_MIR 0x0022a000 // ceil(656x2,16)x576x16x3 = 2267136 bytes = 2214 k bytes
  85. #else
  86. #define RMEM_MIR 0x00000000
  87. #endif
  88. #ifdef CONFIG_SUPPORT_USB_MCAST
  89. #define RMEM_NETRUNAV 0x00000000
  90. #endif
  91. #endif //CONFIG_DRAMSIZE == 128
  92. #endif // _DRV_RESERV_MMAP_533_H_