;/*****************************************************************************
;*  Copyright Statement:
;*  --------------------
;*  This software is protected by Copyright and the information contained
;*  herein is confidential. The software may not be copied and the information
;*  contained herein may not be used or disclosed except with the written
;*  permission of MediaTek Inc. (C) 2007
;*
;*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
;*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
;*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
;*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
;*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
;*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
;*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
;*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
;*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
;*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
;*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
;*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
;*
;*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
;*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
;*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
;*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
;*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
;*
;*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
;*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
;*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
;*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
;*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
;*
;*****************************************************************************/
;
;/*****************************************************************************
; *
; * Filename:
; * ---------
; *   scatIFLY23D_09A.txt
; *
; * Project:
; * --------
; *   Maui_Software
; *
; * Description:
; * ------------
; *   defines the memory map for the validation board
; *
; * Author:
; * -------
; *   system auto generator v2.33
; *
; * Auto Generated Date:
; * -------
; *   2011/4/1
; *
; * Revision History:
; * -------
; * $Log: scatIFLY23D_09A.txt system auto generator v2.33 $
; * 
; ****************************************************************************/
;
;=========================================================================
; This scatter file is auto-generated and please DO NOT change the content at will
;=========================================================================
;
;--------------------
; SCHEME   : external 7.25MB flash memory and 4MB SRAM
; PLATFORM : MT6223
; FEATURES : ESBNOR 
;--------------------

ROM 0x08000000 0x00740000
{
    ROM 0x08000000 0x00400000
    {
         bootarm.obj (C$$code,+First)
         *.obj (LEADING_PART,+First)
         
         
         
         Regioninit_ads.obj (+RO-CODE)
         *l1_classb_g2.lib (+RO-CODE)
         *l1_g2.lib (+RO-CODE)
         *l1_classb_umts.lib (+RO-CODE)
         *l4_classb.lib (+RO-CODE)
         *l4misc.lib (+RO-CODE)
         *lcmmi.lib (+RO-CODE)
         *mmi_framework.lib (+RO-CODE)
         *mmi_app.lib (+RO-CODE)
         *conn_app.lib (+RO-CODE)
         *inet_app.lib (+RO-CODE)
         
         cpp_initialise.o(+RO)
         cpp_finalise.o(+RO)
         * (C$$pi_ctorvec)
         * (C$$pi_dtorvec)
         * (C$$ddtorvec)
         
         divrt_real.o (+RO-CODE)
         *f_t_p.l (+RO-CODE)
         
; moved from ITCM
         tct.obj (+RO)
    }
    ROM2 +0x0 0x00400000
    {
; WAP family
         *wapadp.lib (+RO-CODE)
         *wap.lib (+RO-CODE)
         *wae.lib (+RO-CODE)
         *jataayu.lib (+RO-CODE)
         *jataayuapp.lib (+RO-CODE)
         *wapapp.lib (+RO-CODE)
         *obigo05aadp.lib (+RO-CODE)
         *obigo05alib.lib (+RO-CODE)
         *obigo03capp.lib (+RO-CODE)
         *obigo03cadp.lib (+RO-CODE)
         *obigo03clib.lib (+RO-CODE)
; J2ME family
         *j2me_11.lib (+RO-CODE)
         *j2me_hi.lib (+RO-CODE)
         *jal.lib (+RO-CODE)
         *ijet_adp.lib (+RO-CODE)
         *jblendia.lib (+RO-CODE)
         j2me_custom_*.obj (+RO-CODE)
    }
    ROM3 +0x0 0x00400000
    {
         .ANY (+RO-CODE)
    }
    ROM4 +0x0 0x00400000
    {
         .ANY (+RO-CODE)
    }
    ROM5 +0x0 
    {
         .ANY (+RO-DATA)
    }
    SINGLE_BANK_CODE 0x00000200
    {
;for single bank support , certain following code need to be called by sleep manager
         bootarm.obj (SNORCODE,+First)
         * (SNORCODE)
         * (SNORCONST)
         uread4.o (+RO)
         uwrite4.o (+RO)
    }
; For __MIIPTS_LOADER__ start
; 要把这个配置放在0x08000000为起始的第一个, 且和app_mem.obj (LARGEPOOL_FIRST_ZI)重叠
    EXTSRAM_MIIPTSPOOL_NORMAL 0x00002000
    {				 
         mb_loader_memory.obj (MIIPTS_POOL_FIRST_ZI)
    }
; For __MIIPTS_LOADER__ end  
	
; For __MIIPTS_LOADER__ 重叠
;     EXTSRAM_LARGEPOOL_NORMAL 0x00002000
    EXTSRAM_LARGEPOOL_NORMAL +0x00
    {
         app_mem.obj (LARGEPOOL_FIRST_ZI)
         ScrMemMgr.obj (LARGEPOOL_ZI)
         j2me_custom_resource.obj (LARGEPOOL_ZI)
         med_main.obj (LARGEPOOL_ZI)
    }
    EXTSRAM +0x00 
    {
         * (+RW, +ZI)
    }
; DSP execution regions cannot be OVERLAY; its size should be specified as 2^N, larger than 4KB, and should align with its start address
    EXTSRAM_DSP_TX 0x003fc000 0x2000
    {
         *.obj (EXTRAM_TXDATA)
    }
    EXTSRAM_DSP_RX 0x003fe000 0x2000
    {
         *.obj (EXTRAM_RXDATA)
    }
    INTSRAM 0x40000000 0x00006580
    {
         * (INTSRAM_ROCODE)
         * (INTSRAM_RODATA, INTSRAM_RW, INTSRAM_ZI)
; system-realted CODE ... for MT6223
         bootarm.obj (INTERNCODE)
         SST_intrCtrl.obj (INTERNCODE,INTERNCONST)
         custom_emi.obj (INTERNCODE)
         idle_task.obj (INTERNCODE)
         ;data_buff_pool.obj (INTERNCODE)
         ;ctrl_buff_pool.obj (INTERNCODE)
         stack_buff_pool.obj (INTERNCODE)
         stack_ltlcom.obj (INTERNCODE)
         ;kal_nucleus_buff_mgr.obj (INTERNCODE)
         kal_nucleus_evshed_buff_mgr.obj (INTERNCODE)
         ;kal_nucleus_itc.obj (INTERNCODE)
         kal_nucleus_timer.obj (INTERNCODE)
         lcd_dll.obj (INTERNCODE)
         event_shed.obj (INTERNCODE)
         stack_timer.obj (INTERNCODE)
         ;tct.obj (INTERNCODE)
         ;tcc.obj (INTERNCODE)
         ;csc.obj (INTERNCODE)
         ;tmt.obj (+RO)
         ;tms.obj (+RO)
         ;smc.obj (+RO)
         ;evc.obj (+RO)
         ;pmc.obj (+RO)
         ;quc.obj (+RO)
; common C library ... for MT6223
         memset.o (+RO)
         rt_memclr.o (+RO)
         callvia.o (+RO)
         ;_sprintf.o (+RO)
         rt_memcpy.o (+RO)
         ;lludiv10.o (+RO)
         rt_udiv.o (+RO) 
; misc CODE ... for MT6223
          m11303.obj (INTERNCODE)
         gpt.obj (INTERNCODE)
         lpwr.obj (INTERNCODE)
         ;wav.obj (INTERNCODE)
         ;wav_codec.obj (INTERNCODE)
         gdi_image_alpha_bmp.obj (INTERNCODE)
         * (SNORCODE_INT)
         * (SNORCONST_INT)

; Please Do Not Remove
         ;m12100.obj (INTERNCODE)
         ;m12110.obj (INTERNCODE)
         m12120.obj (INTERNCODE)
         m12160.obj (INTERNCODE)
         m12170.obj (INTERNCODE)

; system-realted RW/ZI ... for MT6223
         bootarm.obj (STACK_POOL_INTSRAM)
         custom_emi.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;idle_task.obj (INTERNCONST, INTERNRW, INTERNZI)
         stack_init.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;ctrl_buff_pool.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;stack_ltlcom.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;tct.obj (+RW, +ZI)
         ;tcd.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;tmd.obj (+RW, +ZI)
         ;evd.obj (+RW, +ZI)
         ;pmd.obj (+RW, +ZI)
         ;qud.obj (+RW, +ZI)
         smd.obj (+RW, +ZI) 
; misc RW/ZI
; For __MIIPTS_LOADER__ start
         * (MIIPTS_INTERNCODE)
; For __MIIPTS_LOADER__ end	 
         ;tst*.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;m12100.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;m12110.obj (INTERNCONST, INTERNRW, INTERNZI)
         ;m12120.obj (INTERNCONST, INTERNRW, INTERNZI)
    }
SXMOBI_CODE 0x40006580 OVERLAY 0x00003A80
    {
   	    armv5_dq.o
	    	simple_idct_armv5te.o	
	    	* (MPEG4_CODE) 
	    	* (MPEG4_CODE_1)
	    	* (MPEG4_CODE_2)
	    	* (MPEG4_CODE_3)
	    	* (MPEG4_CODE_4)
	   		* (MPEG4_CODE_6)
	    	;* (MPEG4_CODE_5)
    }
;apple please modify to follow this exactly on L98    

SXMOBI_GAME_CODE 0x40006580 OVERLAY 0x00003A80
    {
				* (SXMOBI_GAME2_GCI)
	    	* (SXMOBI_GAME2)
	    	* (SXMOBI_GAME2_ZIP1)
	    	;* (SXMOBI_GAME2_ZIP2)
				;* (SXMOBI_GAME2_ZIP3)
	    	;* (SXMOBI_GAME2_ZIP4)
	    	;* (SXMOBI_GAME2_AC1)
	    	;* (SXMOBI_GAME2_AC2)
	    	;* (SXMOBI_GAME2_SYNC)
	    	;* (SXMOBI_GAME2_1)
    }    
    DYNAMIC_CODEMIIPTS 0x40008D80 OVERLAY 0x1280
    {
         * (MIIPTS_DYNAMIC_CODE, MIIPTS_DYNAMIC_ZI)  
    }
    DYNAMIC_CODE3 0x40008D80 OVERLAY 0x1280
    {
         * (CTM_DYNAMIC_CODE, CTM_DYNAMIC_ZI)
    }
    DYNAMIC_CODE5 0x40008D80 OVERLAY 0x1280
    {
         * (SBC_DYNAMIC_CODE, SBC_DYNAMIC_ZI)
    }
    DYNAMIC_CODE7 0x40008D80 OVERLAY 0x1280
    {
         * (REVERB_DYNAMIC_CODE, REVERB_DYNAMIC_ZI)
    }
    DYNAMIC_CODE8 0x40008D80 OVERLAY 0x1280
    {
         * (RESAMPLE_DYNAMIC_CODE, RESAMPLE_DYNAMIC_ZI)
    }
    DYNAMIC_CODE9 0x40008D80 OVERLAY 0x1280
    {
         * (JPEG_ENC_DYNAMIC_CODE, JPEG_ENC_DYNAMIC_RO, JPEG_ENC_DYNAMIC_RW, JPEG_ENC_DYNAMIC_ZI)
    }
    DYNAMIC_CODE10 0x40008D80 OVERLAY 0x1280
    {
         * (JPEG_DEC_DYNAMIC_CODE, JPEG_DEC_DYNAMIC_RO, JPEG_DEC_DYNAMIC_RW, JPEG_DEC_DYNAMIC_ZI)
    }
}
