;/*****************************************************************************
;*  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:
; * ---------
; *   scatA7510_07A.txt
; *
; * Project:
; * --------
; *   Maui_Software
; *
; * Description:
; * ------------
; *   defines the memory map for the validation board
; *
; * Author:
; * -------
; *   system auto generator v0.60
; *
; * Auto Generated Date:
; * -------
; *   2007/9/28
; *
; * Revision History:
; * -------
; * $Log: scatA7510_07A.txt system auto generator v0.60 $
; * 
; ****************************************************************************/
;
;--------------------
; SCHEME   : external NAND flash and 32MB LPSDRAM
; PLATFORM : MT6229
;
;--------------------

ROM 0x00 0x800000
{
    ROM 0x00 FIXED 0x3E8000
    {
         bootarm.obj (C$$code,+First)
         *.obj (LEADING_PART,+First)
         *.l                           (+RO)
         *bmt.lib                      (+RO)
         *adaptation.lib               (+RO)
         *config.lib                   (+RO)
         *drv.lib                      (+RO)
         *fdm.lib                      (+RO)
         *init.lib                     (+RO)
         *kal.lib                      (+RO)
         *l1_classb.lib                (+RO)
         *stacklib.lib                 (+RO)
         *sst.lib                      (+RO)
         *tst.lib                      (+RO)
         *mtkapp.lib                   (+RO)
         *usb.lib                      (+RO)
         *j2me_hi.lib                  (+RO)
         *nucleus.lib                  (+RO)
         *nucleus_int.lib              (+RO)
         *nucleus_debug.lib            (+RO)
         *threadx.lib                  (+RO)
         *threadx_ctrl_data.lib        (+RO)
         *threadx_debug.lib            (+RO)

; libs to balance primary & secondary ROM
         *nvram.lib                    (+RO)
         *nvram_sec.lib                (+RO)
         *ft.lib                       (+RO)
         *irda.lib                     (+RO)
         *fs.lib                       (+RO)
         *media.lib                    (+RO)
         *media_sec.lib                (+RO)
         *dsp_ram.lib                  (+RO)
         *l1audio.lib                  (+RO)
         *l1audio32.lib                (+RO)
         *dp_engine.lib                (+RO)

; specific objects in custom.lib
; directory mcu\custom\system
         custom_emi.obj                (+RO)
         custom_config.obj             (+RO)
         custom_switchclock.obj        (+RO)
         custom_scatstruct.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)
; 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)
; directory mcu\custom\drv\LCD
         lcd.obj                       (+RO)

; specific objects in plutommi.lib
         ScreenRotation.obj            (+RO)
         wingui.obj                    (+RO)
         wgui_categories.obj           (+RO)
         
; specific objects in media.lib
         png_decoder_sw.obj            (PRIMARY_CODE)
                   
; specific objects in mmiresource.lib
         custNFBProgressImg.obj        (+RO)
         gui_wrapper.obj               (+RO)
    }
    DYNAMIC_CODE2 0xa0018800 OVERLAY 0x2800
    {
         * (G3D_DYNAMIC_CODE, G3D_DYNAMIC_ZI)
    }
    DYNAMIC_CODE1 0xa001b000 OVERLAY 0x5000
    {
         * (AMR515_DYNAMIC_CODE, AMR515_DYNAMIC_ZI)
    }
    DYNAMIC_CODE3 0xa001b000 OVERLAY 0x5000
    {
         * (CTM_DYNAMIC_CODE, CTM_DYNAMIC_ZI)
    }
    DYNAMIC_CODE4 0xa001b000 OVERLAY 0x5000
    {
         * (G729_DYNAMIC_CODE, G729_DYNAMIC_ZI)
    }
    DYNAMIC_CODE5 0xa001b000 OVERLAY 0x5000
    {
         * (SBC_DYNAMIC_CODE, SBC_DYNAMIC_ZI)
    }
    DYNAMIC_CODE7 0xa001b000 OVERLAY 0x5000
    {
         * (REVERB_DYNAMIC_CODE, REVERB_DYNAMIC_ZI)
    }
    DYNAMIC_CODE8 0xa001b000 OVERLAY 0x5000
    {
         * (RESAMPLE_DYNAMIC_CODE, RESAMPLE_DYNAMIC_ZI)
    }
    PRIMARY_EXTSRAM 0x00400000 FIXED 0x00400000
    {
         *.l                           (+RW)
         *bmt.lib                      (+RW)
         *adaptation.lib               (+RW)
         *config.lib                   (+RW)
         *drv.lib                      (+RW)
         *fdm.lib                      (+RW)
         *init.lib                     (+RW)
         *kal.lib                      (+RW)
         *l1_classb.lib                (+RW)
         *stacklib.lib                 (+RW)
         *sst.lib                      (+RW)
         *tst.lib                      (+RW)
         *mtkapp.lib                   (+RW)
         *usb.lib                      (+RW)
         *j2me_hi.lib                  (+RW)
         *nucleus.lib                  (+RW)
         *nucleus_int.lib              (+RW)
         *nucleus_debug.lib            (+RW)
         *threadx.lib                  (+RW)
         *threadx_debug.lib            (+RW)
         
; libs to balance primary & secondary ROM
         *nvram.lib                    (+RW)
         *nvram_sec.lib                (+RW)
         *ft.lib                       (+RW)
         *irda.lib                     (+RW)
         *fs.lib                       (+RW)
         *media.lib                    (+RW)
         *media_sec.lib                (+RW)
         *dsp_ram.lib                  (+RW)
         *l1audio.lib                  (+RW)
         *l1audio32.lib                (+RW)
         *dp_engine.lib                (+RW)
         
; all objects in custom.lib
         *custom.lib                   (+RW)
         
; specific objects in plutommi.lib
         ScreenRotation.obj            (+RW)
         wingui.obj                    (+RW)
         wgui_categories.obj           (+RW)
         
; specific objects in mmiresource.lib
         custNFBProgressImg.obj        (+RW)
         gui_wrapper.obj               (+RW)  
         
; ZI chunk
         *                             (+ZI)
    }
    INTSRAM_CODE 0xA0000000 0x00010400
    {
; system-realted CODE , STANDARD set
         bootarm.obj (INTERNCODE)
         init.obj (SNORCODE)
         custom_emi.obj (INTERNCODE)
         isrentry.obj (INTERNCODE)
         data_buff_pool.obj (INTERNCODE)
         ctrl_buff_pool.obj (INTERNCODE)
         stack_buff_pool.obj (INTERNCODE)
         stack_ltlcom.obj (INTERNCODE)
         stack_timer.obj (INTERNCODE)
         lcd_dll.obj (INTERNCODE)
         event_shed.obj (INTERNCODE)
         SST_intrCtrl.obj (INTERNCODE, INTERNCONST)
         custom_switchclock.obj (INTERNCODE)
         idle_task.obj (INTERNCODE)
         cache.obj (INTERNCODE)
; Nucleus-related CODE , NFB set
         *nucleus_ctrl_code.lib (+RO)
         kal_nucleus_buff_mgr.obj (INTERNCODE)
         kal_nucleus_evshed_buff_mgr.obj (INTERNCODE)
         kal_nucleus_itc.obj (INTERNCODE)
         kal_nucleus_timer.obj (INTERNCODE)
; THREADX-related CODE , NFB set
         *threadx_ctrl_code.lib (+RO)
         kal_threadx_tasks.obj (INTERNCODE)
         kal_threadx_buff_mgr.obj (INTERNCODE)
         kal_threadx_itc.obj (INTERNCODE)
         kal_threadx_timer.obj (INTERNCODE)
; INTSRAM_CODE_OBJ_others_6228
         mpal_gprs_common_func.obj (INTERNCODE)
         mpal_gprs_dl_msg_hdlr.obj (INTERNCODE)
         m11194.obj (INTERNCODE)
         m11191.obj (INTERNCODE)
         l1d_data.obj (INTERNCODE)
         l1d_internal_data.obj (INTERNCODE)
         m12100.obj (INTERNCODE)         
         m12110.obj (INTERNCODE)
         m12120.obj (INTERNCODE)
         m12160.obj (INTERNCODE)
         m12167.obj (INTERNCODE)
         m12170.obj (INTERNCODE)
         m12168.obj (INTERNCODE)
         m12180.obj (INTERNCODE)
         m11303.obj (INTERNCODE)
         m11305.obj (INTERNCODE)
         m12194.obj (INTERNCODE)
         cam_module.obj (INTERNCODE)
         ;divider.obj (+RO)
         L1Trc.obj (INTERNCODE)
         uart.obj (INTERNCODE)
         gdi_image_gif.obj (INTERNCODE)
         gdi_bytestream.obj (INTERNCODE)
         gdi_image_direct_gif.obj (INTERNCODE)
         gdi_mutex.obj (INTERNCODE)
         file62.o (INTERNCODE)
         file12.o (INTERNCODE)
         file71.o (INTERNCODE)
         jvm_runtime.obj (INTERNCODE)
    }
    INTSRAM_DATA 0xA0010400 0x00008400
    {
; system-realted data
         bootarm.obj (STACK_POOL_INTSRAM)
         isrentry.obj (INTERNCONST, INTERNRW, INTERNZI)
         stack_init.obj (INTERNCONST, INTERNRW, INTERNZI)
         ctrl_buff_pool.obj (INTERNCONST, INTERNRW, INTERNZI)
         stack_ltlcom.obj (INTERNCONST, INTERNRW, INTERNZI)
         custom_switchclock.obj (INTERNCONST, INTERNRW, INTERNZI)
         idle_task.obj (INTERNCONST, INTERNRW, INTERNZI)
; Nucleus-related data ; Standard set on NFB
         *nucleus_critical_data.lib (+RW, +ZI)
         *nucleus_ctrl_code.lib (+RW, +ZI)
; THREADX-related data ; Standard set on NFB
         *threadx_ctrl_data.lib (+RW, +ZI)
; INTSRAM_DATA_OBJ_others_6228
         mpal_gprs_common_func.obj (INTERNCONST, INTERNRW, INTERNZI)
         mpal_gprs_dl_msg_hdlr.obj (INTERNCONST, INTERNRW, INTERNZI)
         m11194.obj (INTERNCONST, INTERNRW, INTERNZI)
         m11191.obj (INTERNCONST, INTERNRW, INTERNZI)
         l1d_data.obj (INTERNCONST, INTERNRW, INTERNZI)
         l1d_internal_data.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12100.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12110.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12120.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12160.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12167.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12170.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12168.obj (INTERNCONST, INTERNRW, INTERNZI)
         m12180.obj (INTERNCONST, INTERNRW, INTERNZI)                  
         m11303.obj (INTERNCONST, INTERNRW, INTERNZI)
         m11305.obj (INTERNCONST, INTERNRW, INTERNZI)         
         m12194.obj (INTERNCONST, INTERNRW, INTERNZI)                  
         L1Trc.obj (INTERNCONST, INTERNRW, INTERNZI)
         gdi_image.obj (INTERNCONST, INTERNRW, INTERNZI)
         gdi_bytestream.obj (INTERNCONST, INTERNRW, INTERNZI)
         gdi.obj (INTERNZI)         
         interpret.obj (INTERNZI)
         file71.o (INTERNCONST, INTERNRW, INTERNZI)
    }
}

SECONDARY_ROM 0x800000 0x1400000
    {
    SECONDARY_ROM 0x00800000 0x400000
    {
         .ANY (+RO-CODE)
    }
    ROM2 +0x0 0x400000
    {
         .ANY (+RO-CODE)
    }
    ROM3 +0x0 0x400000
    {
         .ANY (+RO-DATA)
    }
    ROM4 +0x0 0x400000
    {
         .ANY (+RO-DATA)
    }
    ROM5 +0x0 0x400000
    {
         .ANY (+RO-DATA)
    }
    ROM6 +0x0 0x400000
    {
         .ANY (+RO-DATA)
    }
    SECONDARY_EXTSRAM_LARGEPOOL_NORMAL 0x0190D000
    {
; For MT6228, MT6229 projects, app-based ASM always at first due to Java FBBR
         app_mem.obj (LARGEPOOL_FIRST_ZI)
         j2me_custom_resource.obj (LARGEPOOL_ZI)
         med_main.obj (LARGEPOOL_ZI)
         ScrMemMgr.obj (LARGEPOOL_ZI)
         ResMemMgr.obj (LARGEPOOL_ZI)
    }
    jblend_ram +0x0 
    {
         *jblend_*.o (+RW, +ZI)
    }
    SECONDARY_EXTSRAM +0x00 
    {
         *            (+RW)
         *media.lib   (+ZI)
         *custom.lib  (+ZI)
    }
    CODE_PATCH_CODE 0x01fbf000 0x1000 ; 4KB
    {
         * (CODE_PATCH_REGION)
    }
    SECONDARY_EXTSRAM_DSP_TX 0x01fc0000 0x20000
    {
         dps_misc.obj (EXTRAM_TXDATA)
         rr_create.obj (EXTRAM_TXDATA)
         rlc_main.obj (EXTRAM_TXDATA)
         mpal_main.obj (EXTRAM_TXDATA)
         v110.obj (EXTRAM_TXDATA)
         m12161.obj (EXTRAM_TXDATA)
         m12150.obj (EXTRAM_TXDATA)
         dps_rlc_func.obj (EXTRAM_TXDATA)
         csd_ra.obj (EXTRAM_TXDATA)
    }
    SECONDARY_EXTSRAM_DSP_RX 0x01fe0000 0x20000
    {
         m11006.obj (EXTRAM_RXDATA)
         v110.obj (EXTRAM_RXDATA)
         m12161.obj (EXTRAM_RXDATA)
         irdbg_drv.obj (EXTRAM_RXDATA)
    }
    INTSRAM_MULTIMEDIA 0x40000000 0x00020000
    {
         ae.obj (INTERNRW1, INTERNZI1) 
         isp_comm.obj (INTERNRW1, INTERNZI1) 
         med_main.obj (INTERNRW1, INTERNZI1) 
    }
}

THIRD_ROM +0x0
{
    THIRD_ROM 0x02000004
    {
         * (NFB3RDROM_HEADER_HINT)
    }
}
