#ifndef _DRV_RESERV_MMAP_331_H_ #define _DRV_RESERV_MMAP_331_H_ #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 #if (CONFIG_DRAMSIZE == 64 ) //305 307 8501 8501D /* please fill reserve memory size here */ #define RMEM_MPEG_START_ADDR 0x02200000 //Need 2MB align #define RMEM_BLT 0x00270000 #define RMEM_VIP 0x003c0000 #define RMEM_VBV 0x00400000 #define RMEM_MIR 0x00000000 #define RMEM_DEMOD 0x0004f000 #define RMEM_RUNAV RMEM_DEMOD #define RMEM_POOL RMEM_PVR #define RMEM_DIO 0x00000000 #define RMEM_RMRTEST 0x00000000 #ifdef CONFIG_AUDIO_16_BIT_MEMORY #define RMEM_AUDIO 0x0013e000 #else #define RMEM_AUDIO 0x001a4000 //0x00152000 #endif #ifdef CONFIG_DTV_SUPPORT #define RMEM_MPEG 0x01880000 #ifdef CONFIG_SUPPORT_PVR #define RMEM_PVR 0x00400000 #else #define RMEM_PVR 0x00000000 #endif #else #define RMEM_MPEG 0x01800000 #define RMEM_PVR 0x00000000 #endif #endif #if (CONFIG_DRAMSIZE == 128 ) //506 /* please fill reserve memory size here */ #define RMEM_MPEG_START_ADDR 0x05400000 //Need 2MB align #define RMEM_AUDIO 0x002c4000 #define RMEM_VBV 0x00600000 #define RMEM_MPEG 0x01e00000 #define RMEM_POOL 0x00000000 #define RMEM_PVR 0x00000000 #define RMEM_RUNAV 0x00000000 #define RMEM_DIO 0x00000000 #define RMEM_RMRTEST 0x00000000 #if defined(CONFIG_SUPPORT_MHEG5_HD) #define RMEM_BLT 0x00c62000 #elif defined(CONFIG_BLT_SUPPORT_PART_SCALING) #define RMEM_BLT 0x0068f000 #else #define RMEM_BLT 0x00c1e000 #endif #if defined(CONFIG_EXTIC_LCDCONVERTER) #define RMEM_VIP 0x00cb0000 //eDP panel needs to disable frame lock and needs 3 buffers all the time. #elif defined(CONFIG_VIP_COLOR_FORMAT_Y8BIT) #define RMEM_VIP 0x00780000 //7.5MB 2015.08.19 If use Y8bit, memory can reserve 1MB. #else #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) #endif #ifdef CONFIG_ENABLE_MIR #define RMEM_MIR 0x0022a000 // ceil(656x2,16)x576x16x3 = 2267136 bytes = 2214 k bytes #else #define RMEM_MIR 0x00000000 #endif #if (defined(CONFIG_DVB_SYSTEM_SBTVD_SUPPORT)) #define RMEM_DEMOD 0x00500000 #else #define RMEM_DEMOD 0x0004F000 #endif #endif #endif // _DRV_RESERV_MMAP_331_H_