#ifndef _DRV_RESERV_MMAP_533_H_ #define _DRV_RESERV_MMAP_533_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 ) || defined(CONFIG_SUPPORT_64M_DTV) //512L /* please fill reserve memory size here */ #ifdef CONFIG_DVB_SYSTEM_DVBT2_SUPPORT #define RMEM_MPEG_START_ADDR 0x01c00000 //Need 2MB align #else #define RMEM_MPEG_START_ADDR 0x02200000 //Need 2MB align #endif #define RMEM_BLT 0x00190000 #define RMEM_VIP 0x003c0000 #define RMEM_VBV 0x00400000 #define RMEM_MIR 0x00000000 #define RMEM_DIO 0x00100000 #define RMEM_RMRTEST 0x00000000 #ifdef CONFIG_AUDIO_16_BIT_MEMORY #define RMEM_AUDIO 0x0013e000 #else #define RMEM_AUDIO 0x001e4000 #endif #ifdef CONFIG_DTV_NOTSUPPORT_HEVC #define RMEM_MPEG 0x015C0000 #else #define RMEM_MPEG 0x01A36000 #endif #ifdef CONFIG_DVB_SYSTEM_DVBT2_SUPPORT #define RMEM_DEMOD 0x009D6000 #define RMEM_RUNAV 0x00440000 #define RMEM_POOL 0x00500000 #else #define RMEM_DEMOD 0x00091000 #define RMEM_RUNAV RMEM_DEMOD #define RMEM_POOL 0x00000000 #endif #ifdef CONFIG_SUPPORT_PVR #define RMEM_PVR 0x00300000 #else #define RMEM_PVR 0x00000000 #endif //#endif //CONFIG_DRAMSIZE == 64 #elif (CONFIG_DRAMSIZE == 128 ) //533 512C /* please fill reserve memory size here */ #if (defined(CONFIG_DVB_SYSTEM_DVBT2_SUPPORT)) #define RMEM_MPEG_START_ADDR 0x05400000 //Need 2MB align #define RMEM_DEMOD 0x00A00000 #elif (defined(CONFIG_DVB_SYSTEM_SBTVD_SUPPORT)) #define RMEM_MPEG_START_ADDR 0x05800000 //Need 2MB align #define RMEM_DEMOD 0x00500000 #elif (defined(CONFIG_DVB_SYSTEM_DVBS_SUPPORT)) #define RMEM_MPEG_START_ADDR 0x05c00000 //Need 2MB align #define RMEM_DEMOD 0x00091000 #else #define RMEM_MPEG_START_ADDR 0x05c00000 //Need 2MB align #define RMEM_DEMOD 0x0004F000 #endif #define RMEM_AUDIO 0x002c4000 #define RMEM_VBV 0x00800000 #define RMEM_MPEG 0x01F40000 #define RMEM_POOL 0x00000000 #define RMEM_PVR 0x00000000 #define RMEM_RUNAV 0x00000000 #define RMEM_DIO 0x00000000 #define RMEM_RMRTEST 0x00000000 #if defined(CONFIG_BLT_SUPPORT_PART_SCALING) #if defined(CONFIG_USE_PROPRIETARY_MHEG5) #define RMEM_BLT 0x00704000 #elif defined(CONFIG_SUPPORT_MHEG5_HD) #define RMEM_BLT 0x006a3000 #else #define RMEM_BLT 0x0068f000 #endif #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 #ifdef CONFIG_SUPPORT_USB_MCAST #define RMEM_NETRUNAV 0x00000000 #endif #endif //CONFIG_DRAMSIZE == 128 #endif // _DRV_RESERV_MMAP_533_H_