yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame^] | 1 | #!/usr/bin/perl |
| 2 | # |
| 3 | # Copyright Statement: |
| 4 | # -------------------- |
| 5 | # This software is protected by Copyright and the information contained |
| 6 | # herein is confidential. The software may not be copied and the information |
| 7 | # contained herein may not be used or disclosed except with the written |
| 8 | # permission of MediaTek Inc. (C) 2006 |
| 9 | # |
| 10 | # BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 11 | # THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 12 | # RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 13 | # AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 14 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 15 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 16 | # NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 17 | # SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 18 | # SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 19 | # THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 20 | # NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 21 | # SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 22 | # |
| 23 | # BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 24 | # LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 25 | # AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 26 | # OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 27 | # MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 28 | # |
| 29 | # THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 30 | # WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 31 | # LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 32 | # RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 33 | # THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 34 | # |
| 35 | #***************************************************************************** |
| 36 | #* |
| 37 | #* Filename: |
| 38 | #* --------- |
| 39 | #* CONSYS_info.pm |
| 40 | #* |
| 41 | #* Project: |
| 42 | #* -------- |
| 43 | #* |
| 44 | #* |
| 45 | #* Description: |
| 46 | #* ------------ |
| 47 | #* This script is used to get linker symbol for setting EMI RMPU |
| 48 | #* |
| 49 | #* |
| 50 | #* Author: |
| 51 | #* ------- |
| 52 | #* Tee-Yuen Chun (mtk10524) |
| 53 | #* |
| 54 | #*------------------------------------------------------------------------------ |
| 55 | #* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 56 | #*============================================================================ |
| 57 | #****************************************************************************/ |
| 58 | |
| 59 | BEGIN { push @INC, './tools/MemoryUtility/' } # add additional library path |
| 60 | use LinkerOutputParser; |
| 61 | use CommonUtility; |
| 62 | use FileInfoParser; |
| 63 | |
| 64 | package CONSYS_info; |
| 65 | |
| 66 | ####################################### |
| 67 | |
| 68 | my $version = "u0.02"; |
| 69 | |
| 70 | sub retrieveCONSYS_Support |
| 71 | { |
| 72 | #my ($isCtrlBuffTurnOn,$isDataBuffTurnOn,$mdVersion) = @_; |
| 73 | my ($prj_fo_hash, $mdVersion) = @_; |
| 74 | |
| 75 | my $totalBuffSize = 0; |
| 76 | |
| 77 | #if( $mdVersion eq "MT6295" ) |
| 78 | #{ |
| 79 | #} |
| 80 | |
| 81 | #(Control Path only) 256KB = 256*1024B = 0x40000 |
| 82 | $totalBuffSize = 0x00040000; |
| 83 | |
| 84 | if( $prj_fo_hash->{'mcif_wifi_support'} eq "TRUE" ) |
| 85 | { |
| 86 | #(Control Path + Data Path for IMS only) 1.5MB = 1536*1024B = 0x180000B |
| 87 | $totalBuffSize = 0x00180000; |
| 88 | } |
| 89 | |
| 90 | if( $prj_fo_hash->{'mddp_wh_support'} eq "TRUE" ) |
| 91 | { |
| 92 | #(Control Path + Data Path for IMS and MDDP-WH) 13.5MB = 1.5MB + 12MB(WH) = 0xD80000B |
| 93 | $totalBuffSize = 0x00D80000; |
| 94 | } |
| 95 | |
| 96 | return($totalBuffSize); |
| 97 | } |
| 98 | |