System memory map

From Openlgtv
Jump to: navigation, search

Saturn6 system memory map

Based on /linux-2.6.26/arch/mips/mips-boards/titania2/board/mmap/mmap_64m_64m.h

MIU_DRAM_LEN:		 	 201326592	 0xc000000

	//Linux kernel space
LINUX_MEM_AVAILABLE:		 0		 0x0
LINUX_MEM_BASE_ADR:		 0		 0x0
LINUX_MEM_GAP_CHK:		 0		 0x0
LINUX_MEM_LEN:  		 12320768	 0xbc0000	// 12MB - 256K

	//for MVD and TSP binary dhjung LGE
BIN_MEM_AVAILABLE:		 12320768	 0xbc0000
BIN_MEM_ADR:    		 12320768	 0xbc0000
BIN_MEM_GAP_CHK:		 0		 0x0
BIN_MEM_LEN:    		 262144		 0x40000

	//must start at nnn0000 - 512k alignment   --[Dean] be careful allocate this big alignment area
MAD_BASE_AVAILABLE:		 12582912	 0xc00000
MAD_BASE_BUFFER_ADR:		 12582912	 0xc00000
MAD_BASE_BUFFER_ADR_GAP_CHK:	 0		 0x0
MAD_BASE_BUFFER_LEN:		 2621440	 0x280000	//2.5M // 3MB -> 2.5MB, samuel, 20081105

	//======================================================================
	// Can not add any buffer here (in between VE_FRAMEBUFFER_ADR and SCALER_DNR_BUF_ADR)
	// Because USB/OAD download use the buffer from VE_FRAMEBUFFER_ADR to the end of SCALER_DNR_BUF_ADR
	//======================================================================
	// For Maximum is 1920x1088x3x2 about 12MB in HDMI and YPbPr
	// Let it overwrite EVENTDB and MHEG5 buffer(These buffers is DTV only)
SCALER_DNR_AVAILABLE:		 15204352	 0xe80000
SCALER_DNR_BUF_ADR:		 15204352	 0xe80000
SCALER_DNR_GAP_CHK:		 0		 0x0
SCALER_DNR_BUF_LEN:		 16777136	 0xffffb0	//16MB-80byte  //0xC00000  //12582912	// 12MB

SCALER_DNR_W_AVAILABLE:		 31981488	 0x1e7ffb0
SCALER_DNR_W_BARRIER_ADR:	 31981488	 0x1e7ffb0
SCALER_DNR_W_GAP_CHK:		 0		 0x0
SCALER_DNR_W_BARRIER_LEN:	 80		 0x50		//16		// DNR submit 2 64-bit data before compare limit
SCALER_DNR_BUF_LEN_EXT:		 557760		 0x882c0	// the output size of VD will be 848 * 581

	// no use in ATSC
RLD_BUF_AVAILABLE:		 31981568	 0x1e80000
RLD_BUF_ADR:			 31981568	 0x1e80000
RLD_BUF_GAP_CHK:		 0		 0x0
RLD_BUF_LEN:			 905216		 0xdd000 

	// TSP buffer, TSP extract from mpool, samuel, 20081105
TSP_BUF_AVAILABLE:		 32886784	 0x1f5d000
TSP_BUF_ADR:			 32886784	 0x1f5d000
TSP_BUF_LEN:			 8388608	 0x800000	//8MB

VE_FRAMEBUFFER_AVAILABLE:	 41275392	 0x275d000
VE_FRAMEBUFFER_ADR:		 41275392	 0x275d000
VE_FRAMEBUFFER_ADR_GAP_CHK:	 0		 0x0
VE_FRAMEBUFFER_LEN:		 1669120	 0x197800	// 720*576*2*2 + 10KByte(ttx insertion)

TTX_BUF_AVAILABLE:		 42944512	 0x28f4800
TTX_BUF_ADR:			 42946560	 0x28f5000
TTX_BUF_GAP_CHK:		 2048		 0x800
TTX_BUF_LEN:			 262144		 0x40000	// 200KB is enough, but MVD co-buf here for callback data, so need 256KB, samuel, 20081105

	// no use in ATSC
MVD_SW_AVAILABLE:		 32886784	 0x1f5d000
MVD_SW_ADR:			 32886784	 0x1f5d000
MVD_SW_ADR_GAP_CHK:		 0		 0x0
MVD_SW_LEN:			 11534336	 0xb00000	//0x900000//0xB00000	//11MB

	// in ATSC, just skip MVD_SW (no need to play movie)
MPOOL_AVAILABLE:		 44421120	 0x2a5d000
MPOOL_ADR:			 44421120	 0x2a5d000
MPOOL_GAP_CHK:			 0		 0x0
MPOOL_LEN:			 24784896	 0x17a3000	/*released from POSD0*/

	// dhjung LGE
LINUX_2ND_MEM_AVAILABLE:	 69206016	 0x4200000
LINUX_2ND_MEM_ADDR:		 69206016	 0x4200000
LINUX_2ND_MEM_LEN:		 65011712	 0x3e00000

	//----------------------------------------------------------------------
	// MIU 1
	//----------------------------------------------------------------------
SVD_CPU_AVAILABLE:		 134217728	 0x8000000
SVD_CPU_ADR:			 134217728	 0x8000000
SVD_CPU_ADR_GAP_CHK:		 0		 0x0
SVD_CPU_LEN:			 1048576	 0x100000	//1024KB

	// VD_3DCOMB (co-buf with MVD_FRAMEBUFFER ), move to miu1, samuel, 20081105
VD_3DCOMB_AVAILABLE:		 135266304	 0x8100000
VD_3DCOMB_BASE_ADR:		 135266304	 0x8100000
VD_3DCOMB_GAP_CHK:		 0		 0x0
VD_3DCOMB_LEN:			 4194304	 0x400000	//4MB

	// need 512 byte alignment SD
MVD_FRAMEBUFFER_AVAILABLE:	 135266304	 0x8100000
MVD_FRAMEBUFFER_ADR:		 135266304	 0x8100000
MVD_FRAMEBUFFER_ADR_GAP_CHK:	 0		 0x0
MVD_FRAMEBUFFER_LEN:		 28311552	 0x1b00000	//27MB: Dean

	// need 8 byte alignment
MVD_BITSTREAM_AVAILABLE:	 163577856	 0x9c00000
MVD_BITSTREAM_ADR:		 163577856	 0x9c00000
MVD_BITSTREAM_ADR_GAP_CHK:	 0		 0x0
MVD_BITSTREAM_LEN:		 4194304	 0x400000	//6MB->4MB     20081028 samuel

JPD_OUTPUT_AVAILABLE:		 167772160	 0xa000000
JPD_OUTPUT_ADR:			 167772160	 0xa000000
JPD_OUTPUT_ADR_GAP_CHK:		 0		 0x0
JPD_OUTPUT_LEN:			 2097152	 0x200000	// not used -> 0x200000    20081028 samuel

AUDIO_CLIP_AVAILABLE:		 169869312	 0xa200000
AUDIO_CLIP_ADR:			 169869312	 0xa200000
AUDIO_CLIP_ADR_GAP_CHK:		 0		 0x0
AUDIO_CLIP_LEN:			 10485760	 0xa00000	// 10MB

MAILBOX_AVAILABLE:		 180355072	 0xac00000
MAILBOX_ADR:			 180355072	 0xac00000
MAILBOX_GAP_CHK:		 0		 0x0
MAILBOX_LEN:			 40960		 0xa000		// 32 KB

POSD0_AVAILABLE:		 180396032	 0xac0a000
POSD0_ADR:			 180396032	 0xac0a000
POSD0_ADR_GAP_CHK:		 0		 0x0
POSD0_LEN:			 4259840	 0x410000	

POSD1_AVAILABLE:		 184655872	 0xb01a000
POSD1_ADR:			 184655872	 0xb01a000
POSD1_ADR_GAP_CHK:		 0		 0x0
POSD1_LEN:			 0		 0x0		// not used

	//	BT_POOL added(dreamer@lge.com 2009,01,12)
	//	(It's the private memory of BT module(BT POOL))
BT_POOL_AVAILABLE:		 184655872	 0xb01a000
BT_POOL_ADR:			 184655872	 0xb01a000
BT_POOL_ADR_GAP_CHK:		 0		 0x0
BT_POOL_LEN:			 8388608	 0x800000	// 8MB 

MIU1_DUMMY_AVAILABLE:		 193044480	 0xb81a000
MIU1_DUMMY_ADR:			 193044480	 0xb81a000
MIU1_DUMMY_ADR_GAP_CHK:		 0		 0x0
MIU1_DUMMY_LEN:			 8282112	 0x7e6000	

((MIU1_DUMMY_ADR+MIU1_DUMMY_LEN)>MIU_DRAM_LEN):		 0		 0x0