yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2005 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | /***************************************************************************** |
| 37 | * |
| 38 | * Filename: |
| 39 | * --------- |
| 40 | * bootarm.inc |
| 41 | * |
| 42 | * Project: |
| 43 | * -------- |
| 44 | * Maui_Software |
| 45 | * |
| 46 | * Description: |
| 47 | * ------------ |
| 48 | * This Module defines the platform dependent setting for boot sequence of asm level. |
| 49 | * |
| 50 | * Author: |
| 51 | * ------- |
| 52 | * ------- |
| 53 | * |
| 54 | *============================================================================ |
| 55 | * HISTORY |
| 56 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 57 | *------------------------------------------------------------------------------ |
| 58 | * removed! |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * |
| 62 | * removed! |
| 63 | * removed! |
| 64 | * removed! |
| 65 | * |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * removed! |
| 69 | * |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * |
| 74 | * removed! |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * |
| 78 | * removed! |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * |
| 82 | * removed! |
| 83 | * removed! |
| 84 | * removed! |
| 85 | * |
| 86 | * removed! |
| 87 | * removed! |
| 88 | * removed! |
| 89 | * |
| 90 | * removed! |
| 91 | * removed! |
| 92 | * removed! |
| 93 | * |
| 94 | * removed! |
| 95 | * removed! |
| 96 | * removed! |
| 97 | * removed! |
| 98 | * removed! |
| 99 | * |
| 100 | * removed! |
| 101 | * removed! |
| 102 | * removed! |
| 103 | * removed! |
| 104 | * removed! |
| 105 | * removed! |
| 106 | * |
| 107 | * removed! |
| 108 | * removed! |
| 109 | * removed! |
| 110 | * removed! |
| 111 | * removed! |
| 112 | * removed! |
| 113 | * removed! |
| 114 | * |
| 115 | * removed! |
| 116 | * removed! |
| 117 | * removed! |
| 118 | * |
| 119 | * removed! |
| 120 | * removed! |
| 121 | * |
| 122 | * removed! |
| 123 | * removed! |
| 124 | * removed! |
| 125 | * |
| 126 | * removed! |
| 127 | * removed! |
| 128 | * removed! |
| 129 | * |
| 130 | *****************************************************************************/ |
| 131 | |
| 132 | #ifndef __BOOTARM_H__ |
| 133 | #define __BOOTARM_H__ |
| 134 | |
| 135 | |
| 136 | #define PC_INITIALIZE_VAL 0xE59FF018 |
| 137 | #define DUMMY_END_VAL 0x454E4400 |
| 138 | |
| 139 | |
| 140 | /* Define init boot-up trace label before HS1 */ |
| 141 | #define INIT_MAGIC 0x30305F49 //I_00 |
| 142 | #define LABEL_POLLING_BUS_READY 0x0000 |
| 143 | #define LABEL_PREINIT_PDAMON 0x0001 |
| 144 | #define LABEL_PREINIT_BUSMON 0x0002 |
| 145 | #define LABEL_PREINIT_FRC 0x0003 |
| 146 | #define LABEL_START_INIT 0x0004 |
| 147 | #define LABEL_START_P1 0x0005 |
| 148 | #define LABEL_RESTART_WDT 0x0006 |
| 149 | #define LABEL_SAVE_RASP 0x0007 |
| 150 | #define LABEL_RESET_EXC_SP_ARRAY 0x0008 |
| 151 | #define LABEL_SET_C0_COFIG5_K 0x0009 |
| 152 | #define LABEL_CLR_C0_STATUS_BEV_ERL 0x000A |
| 153 | #define LABEL_INTERRUPT_PREINIT 0x000B |
| 154 | #define LABEL_CM_L2_INIT 0x000C |
| 155 | #define LABEL_CM_INIT 0x000D |
| 156 | #define LABEL_PLL_INIT 0x000E |
| 157 | #define LABEL_L1_CACHE_INIT 0x000F |
| 158 | #define LABEL_L2_CACHE_INIT 0x0010 |
| 159 | #define LABEL_SET_CM_WT 0x0011 |
| 160 | #define LABEL_INIT_OTHER_CORES 0x0012 |
| 161 | #define LABEL_SET_BOOTSLAVE 0x0013 |
| 162 | #define LABEL_JOIN_CH_DOMAIN 0x0014 |
| 163 | #define LABEL_ABN_RST_CHECK 0x0015 |
| 164 | #define LABEL_SETUP_CDMMBASE 0x0016 |
| 165 | #define LABEL_MPU_INIT 0x0017 |
| 166 | #define LABEL_START_P2 0x0018 |
| 167 | #define LABEL_REGION_INIT 0x0019 |
| 168 | #define LABEL_REGION_INIT_DONE 0x001A |
| 169 | #define LABEL_INIT_GPR 0x001B |
| 170 | #define LABEL_INIT_EX_STACK 0x001C |
| 171 | #define LABEL_SET_C0_EBASE 0x001D |
| 172 | #define LABEL_DISPATCH_SP 0x001E |
| 173 | #define LABEL_STACK_INIT 0x001F |
| 174 | #define LABEL_INIT_VPE1 0x0020 |
| 175 | #define LABEL_INIT_ASM_DONE 0x0021 |
| 176 | |
| 177 | #define LABEL_CLIB_BASE_INIT 0x0101 |
| 178 | #define LABEL_DUMMY_REF 0x0102 |
| 179 | #define LABEL_WDT_VAR_INIT 0x0103 |
| 180 | #define LABEL_CCCI_HW_INIT 0x0104 |
| 181 | #define LABEL_CCCI_HS1 0x0105 |
| 182 | #define LABEL_EMM_INIT 0x0106 |
| 183 | |
| 184 | #define LABEL_CCCI_START 0x0200 |
| 185 | #define LABEL_CCCI_LIMIT 0x02FF |
| 186 | |
| 187 | /* |
| 188 | #define LABEL_APP_INIT 0x0100 |
| 189 | #define LABEL_PCM_START 0x0101 |
| 190 | #define LABEL_SYSSTACK_PROT 0x0102 |
| 191 | #define LABEL_CLIB_BASE_INIT 0x0103 |
| 192 | #define LABEL_WDT_VAR_INIT 0x0104 |
| 193 | #define LABEL_BOOT_MODE_POLLING 0x0105 |
| 194 | #define LABEL_SHARE_MEM_MPU 0x0106 |
| 195 | #define LABEL_EMM_INIT 0x0108 |
| 196 | */ |
| 197 | #endif /* __BOOTARM_H__ */ |