;/*****************************************************************************
;*  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:
; * ---------
; *   scatTINNO52_10A_GEMINI16.txt
; *
; * Project:
; * --------
; *   Maui_Software
; *
; * Description:
; * ------------
; *   defines the memory map for the validation board
; *
; * Author:
; * -------
; *   system auto generator v3.96 -> p3.87 -> p4.06 -> p4.22 -> p4.23
; *
; * Auto Generated Date:
; * -------
; *   2011/11/11
; *
; * Revision History:
; * -------
; * $Log: scatTINNO52_10A_GEMINI16.txt system auto generator v3.96 -> p3.87 -> p4.06 -> p4.22 -> p4.23 $
; * 
; ****************************************************************************/
;
;=========================================================================
; This scatter file is auto-generated and please DO NOT change the content at will
;=========================================================================
;
;--------------------
; SCHEME   : external 1.796875MB flash memory and 4MB SRAM
; PLATFORM : MT6252
; FEATURES : ESBNOR 
;--------------------

ROM 0x08000000 0x00088c00
{
    ROM 0x08000000 0x00000800
    {
         bootarm.obj (C$$code,+First)
         *.obj (LEADING_PART)
    }
    ROM0 0x08000800 FIXED
    {
         *.obj (SECINFO)
    }
    ROMHEAD +0x0 
    {
         *.obj (SECOND_PART)
         *.obj (MAUI_FOTA_HEAD_INFO)
    }
    ROM1 +0x0 0x00088c00
    {
; C++ related input sections
         cpp_initialise.o              (+RO)
         cpp_finalise.o                (+RO)
         *                             (C$$pi_ctorvec)
         *                             (C$$pi_dtorvec)
         *                             (C$$ddtorvec)
         *                             (C$$ctor)
         *                             (C$$dtor)
; for RVCT C++ initialize
         init_aeabi.o                  (+RO)
         *                             (.init_array)
         *                             (.ARM.exidx)
         
         *.o                           (+RO)
         
         Regioninit_ads.obj            (+RO-CODE)
         
         *adaptation.lib               (+RO)
         *bmt.lib                      (+RO)
         *config.lib                   (+RO)
         *drv.lib                      (+RO)
         *drv_display.lib              (+RO)
         *drv_graphics.lib             (+RO)
         *drv_idp.lib                  (+RO)
         *fdm.lib                      (+RO)
         *init.lib                     (+RO)
         *kal.lib                      (+RO)
         *l1_classb_g2.lib             (+RO)
         l1d_data.obj                  (+RO) 
         m11007.obj                    (+RO)
         m12100.obj                    (+RO)
         l1sm.obj                      (+RO) 
         l1csm.obj                     (+RO)
         m12171.obj                    (+RO)
         *l1_classb_umts.lib           (+RO)
         *stacklib.lib                 (+RO)
         *sst.lib                      (+RO)
         *sst_sec.lib                  (+RO)
         *sss.lib                      (+RO)
         *sss_rvct*.lib                (+RO)
         *tst.lib                      (+RO)
         *nucleus.lib                  (+RO)
         *nucleus_int.lib              (+RO)
         *nucleus_debug.lib            (+RO)
         *nucleus_v2.lib               (+RO)
         *nucleus_v2_int.lib           (+RO)
         *nucleus_v2_debug.lib         (+RO)
         *nucleus_v2_ctrl_code.lib     (+RO)
         
;nucleus_ctrl_code.lib
         csc.obj                       (+RO)
         tcc.obj                       (+RO)
         tms.obj                       (+RO)
         evc.obj                       (+RO)
         quc.obj                       (+RO)
         pmc.obj                       (+RO)
         smc.obj                       (+RO)
         
; moved from ITCM
         tct.obj                       (+RO)
         stack_timer.obj               (+RO)
         data_buff_pool.obj            (+RO)
         kal_nucleus_timer.obj         (+RO)
         
; libs must be in primary ROM
         *gdi.lib                      (+RO)
         camera_process_v2.obj         (+RO)
         visualhisr.obj                (+RO)
         visual_comm.obj               (+RO)
         *verno.lib                    (+RO)
         *j2me_hi.lib                  (+RO)
         *j2me_hi_rvct.lib             (+RO)
         *gdi_arm.lib                  (+RO)
         *dsp_ram.lib                  (+RO)
         
         
; specific objects in custom.lib
; directory mcu\custom\system
         custom_emi.obj                (+RO)
         custom_config.obj             (+RO)
         custom_flash.obj              (+RO)
         custom_scatstruct.obj         (+RO)
         custom_jump_tbl.obj           (+RO)
         custom_util.obj               (+RO)
         
; directory mcu\custom\drv\common
         gpio_setting.obj              (+RO)
; directory mcu\custom\drv\misc_drv
         adc_channel.obj               (+RO)
         alerter_tone.obj              (+RO)
         alerterdrv.obj                (+RO)
         auxmain.obj                   (+RO)
         chr_parameter.obj             (+RO)
         custom_drv_init.obj           (+RO)
         custom_equipment.obj          (+RO)
         custom_hw_default.obj         (+RO)
         eint_def.obj                  (+RO)
         exif_custom.obj               (+RO)
         gpio_drv.obj                  (+RO)
         irda_custom.obj               (+RO)
         kbdmain_joystick.obj          (+RO)
         keypad_def.obj                (+RO)
         msdc_custom.obj               (+RO)
         pmic_custom.obj               (+RO)
         pwmdrv.obj                    (+RO)
         touch_panel_custom.obj        (+RO)
         touch_panel_spi.obj           (+RO)
         touchpad.obj                  (+RO)
         touchpad_keydef.obj           (+RO)
         tv_custom.obj                 (+RO)
         uart_def.obj                  (+RO)
         uem_gpio.obj                  (+RO)
         usb_custom.obj                (+RO)
         usb_host_ms_custom.obj        (+RO)
         pmu_custom.obj                (+RO)
         
; directory mcu\custom\drv\misc_drv\BB_folder\codegen
         adc_var.obj                   (+RO)
         eint_var.obj                  (+RO)
         gpio_var.obj                  (+RO)
         uem_drv.obj                   (+RO)
         pmic_drv.obj                  (+RO)
; directory mcu\custom\drv\LCD
         lcd.obj                       (+RO)
; directory mcu\custom\drv\Ext_Charger
         Ext_Charger_*.obj             (+RO)
; directory mcu\custom\drv\Ext_Cable_Detection
         Ext_Cable_*.obj               (+RO)
; directory mcu\custom\drv\sp_fac_det
         cs_fac_det*.obj               (+RO)
         
; specific objects in mmiresource.lib
         custNFBProgressImg.obj        (+RO)
         
         
; specific objects in media_app.lib
         mdi_tv.obj                    (+RO)
         
; specific objects in bcsi.lib ; C++ const data init
         MiscUtils.obj                 (+RO)
         
         ul1dsm.obj                     (+RO)
         
         bl_SC624.obj                  (+RO)
         mmi_create.obj                (+RO)
         mmi_main.obj                  (+RO)
         ws_fs_api.obj                 (+RO)
         ext_drv_assert_hdlr_if.obj    (+RO)
         rc4_engine.obj                (+RO)
         
         *                             (PRIMARY_ROCODE, PRIMARY_RODATA)
         
         *                             (i.stack_query_boot_mode)
         *                             (i.kal_mem_cpy)
         *                             (i.kal_mem_set)
         *                             (i.kal_mem_cmp)
         *                             (i.kal_mem_bwcpy)
         *                             (i.kal_snprintf)
         
; specific objects in che.lib
         md5_engine.obj                (+RO)
         
         
; specific obj/lib for NOR booting
         LzmaDec.obj                   (+RO)
         app_zlib.obj                  (+RO) 
         simple_memory_manager.obj     (+RO)  
         l1_interface.obj              (+RO)
         resource_lang_pack_jtbl.obj   (+RO)
         usbacm_drv.obj                (+RO)
         camera_hw.obj                 (+RO)
         screenrotation.obj            (+RO)
         thememanager.obj              (+RO)
         profilingengine.obj           (+RO)
         image_sensor_*.obj            (+RO)
         *custom.lib                   (+RO)
         *drv_sec.lib                  (+RO)
         *usb.lib                      (+RO)
         
         *as_semaphore_utility.lib     (+RO)
         *event_info.lib               (+RO)
         *nucleus_critical_data.lib    (+RO)
         *c_5.l                        (+RO)
         *h_5.l                        (+RO)
         gpio.obj                      (+RO)
         
         .ANY                          (+RO-CODE)
         .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)
    }
    EXTSRAM 0x00002000 
    {
         * (NONCACHEDRW, NONCACHEDZI)
         *deniro.lib (+RW, +ZI)
         *fs_fig.lib (+RW, +ZI)
    }
    DYNAMIC_CACHEABLE_EXTSRAM_DEFAULT_NONCACHEABLE_ZI +0x2000 
    {
         med_main.obj (LARGEPOOL_ZI)
         * (DYNAMICCACHEABLEZI_NC)
    }
    DYNAMIC_CACHEABLE_EXTSRAM_DEFAULT_NONCACHEABLE_RW +0x0 
    {
         * (DYNAMICCACHEABLERW_NC)
    }
    CACHED_EXTSRAM +0xF0002000
    {
; All RW/ZI are put in CACHED region by default
         * (+RW, +ZI)
         * (CACHED_EXTSRAM_RW, CACHED_EXTSRAM_ZI)
    }
    DYNAMIC_CACHEABLE_EXTSRAM_DEFAULT_CACHEABLE +0x2000 
    {
         * (DYNAMICCACHEABLERW_C, DYNAMICCACHEABLEZI_C)
    }
    CACHED_DUMMY_END 0xf01c0ffc 
    {
         bootarm.obj (DUMMY_POOL)
    }
; 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)
    }
    ; define an empty section to detect unsafe APIs in link time
    SHOULDBE_EMPTYSECTION +0 0x0
    {
        armlibc_rt.obj (SHOULD_NOT_USED_FUNCTION)
        armlibc_rt_heap.obj (SHOULD_NOT_USED_FUNCTION)
        armlibc_rt_io.obj (SHOULD_NOT_USED_FUNCTION)
    }
    EMIINIT_CODE 0x40008000 OVERLAY
    {
        * (EMIINITCODE, EMIINITCONST, EMIINITZI, EMIINITRW)
    }
    INTSRAM_CODE 0x40008000 OVERLAY 0x2C00
    {
; Please do NOT remove any content below!
         * (INTSRAM_ROCODE)
         * (INTSRAM_ROCODE_*)
         switch8.o (+RO-CODE)
; system-realted CODE , Extra SMALL set
         bootarm.obj (INTERNCODE)
         SST_intrCtrl.obj (INTERNCODE, INTERNCONST)
         cache.obj (INTERNCODE)
; Nucleus-related CODE , Extra SMALL set
         tct.obj (INTERNCODE)
         tmt.obj (+RO)
         kal_nucleus_timer.obj (INTERNCODE)
; THREADX-related CODE , SMALL set
         ; UNDER CONSTRUCTION
         tx_thread_interrupt_disable.obj (+RO)
         tx_thread_interrupt_restore.obj (+RO)
         tx_thread_context_save.obj (+RO)
         tx_thread_context_restore.obj (+RO)
         tx_thread_irq_nesting_start.obj (+RO)
         tx_thread_irq_nesting_end.obj (+RO)
         tx_thread_system_return.obj (+RO)
         tx_thread_schedule.obj (+RO)
         tx_thread_resume.obj (+RO)
         tx_thread_system_resume.obj (+RO)
         tx_timer_interrupt.obj (+RO)
         tx_timer_thread_entry.obj (+RO)
         tx_block_allocate.obj (+RO)
         tx_block_release.obj (+RO)
         tx_event_flags_get.obj (+RO)
         tx_event_flags_set.obj (+RO)
         tx_mutex_get.obj (+RO)
         tx_mutex_put.obj (+RO)
         kal_threadx_tasks.obj (INTERNCODE)
         kal_threadx_buff_mgr.obj (INTERNCODE)
         kal_threadx_itc.obj (INTERNCODE)
         kal_threadx_timer.obj (INTERNCODE)
; common used C library
         memset.o (+RO)
         rt_memclr.o (+RO)
         callvia.o (+RO)
         _sprintf.o (+RO)
         rt_memcpy.o (+RO)
         lludiv10.o (+RO)
         rt_udiv.o (+RO)
         uread4.o (+RO)
         uwrite4.o (+RO)

; Please do NOT remove any content above!
    }
    INTSRAM_DATA 0x4000AC00 0x2000
    {
; Please do NOT remove any content below!
         * (INTSRAM_RODATA, INTSRAM_RW, INTSRAM_ZI)
         * (INTSRAM_RODATA_*, INTSRAM_RW_*, INTSRAM_ZI_*)
; system-realted data
         stack_init.obj (INTERNCONST, INTERNRW, INTERNZI)
         ctrl_buff_pool.obj (INTERNCONST, INTERNRW, INTERNZI)
         stack_ltlcom.obj (INTERNCONST, INTERNRW, INTERNZI)
; Nucleus-related data ; Small set
         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)
; THREADX-related data ; Standard set
         tx_thread_initialize.obj (+RW, +ZI)
         tx_timer_initialize.obj (+RW, +ZI)

; Please do NOT remove any content above!
    }   
    INTSRAM_DATA_PREINIT +0x0 0x2000
    {
; Please do NOT remove any content below!
         uart.obj (INTSRAM_RODATA, INTSRAM_RW, INTSRAM_ZI)
         *system.lib (INTSRAM_RODATA, INTSRAM_RW, INTSRAM_ZI)
         *init.lib (INTSRAM_RODATA, INTSRAM_RW, INTSRAM_ZI)
; system-realted data
         bootarm.obj (STACK_POOL_INTSRAM)
; Please do NOT remove any content above!
    }   
    ScatterAssert((ImageLength(INTSRAM_DATA) + ImageLength(INTSRAM_DATA_PREINIT)) < 0x2000)
}

ZIMAGE +0x400 0x23B000
{
    ZIMAGE 0xf01c1000 0x23B000
    {
        * (ZIMAGE_ROCODE, ZIMAGE_RODATA, ZIMAGE_RWDATA)
        .ANY (+RO-CODE)
        .ANY (+RO-DATA)
        t9relChinese_rvct.o (+RO)
        t9relAlphabetic_rvct.o (+RO)
        kmxime_latin.o (+RO)
    }
}
