blob: 8260616b84c00c0bf881b048682fddfbfc02b1a6 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
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) 2006
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 * custom_SFI.c
41 *
42 * Project:
43 * --------
44 * Maui_Software
45 *
46 * Description:
47 * ------------
48 * This Module defines the SFI (serial flash interface) related setting.
49 *
50 * Author:
51 * -------
52 * -------
53 *
54 * Memory Device database last modified on 2011/7/8
55 *
56 *============================================================================
57 * HISTORY
58 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
59 *------------------------------------------------------------------------------
60 * removed!
61 * removed!
62 * removed!
63 *
64 * removed!
65 * removed!
66 * removed!
67 *
68 * removed!
69 * removed!
70 * removed!
71 * removed!
72 * removed!
73 * removed!
74 * removed!
75 * removed!
76 * removed!
77 * removed!
78 * removed!
79 *
80 * removed!
81 * removed!
82 * removed!
83 *
84 * removed!
85 * removed!
86 * removed!
87 *
88 * removed!
89 * removed!
90 * removed!
91 *
92 * removed!
93 * removed!
94 * removed!
95 *
96 * removed!
97 * removed!
98 * removed!
99 *
100 * removed!
101 * removed!
102 * removed!
103 *
104 * removed!
105 * removed!
106 * removed!
107 *
108 * removed!
109 * removed!
110 * removed!
111 *
112 * removed!
113 * removed!
114 * removed!
115 *
116 * removed!
117 * removed!
118 * removed!
119 *
120 * removed!
121 * removed!
122 * removed!
123 *
124 * removed!
125 * removed!
126 * removed!
127 *
128 * removed!
129 * removed!
130 * removed!
131 *
132 * removed!
133 * removed!
134 * removed!
135 *
136 * removed!
137 * removed!
138 * removed!
139 *
140 * removed!
141 * removed!
142 * removed!
143 *
144 * removed!
145 * removed!
146 * removed!
147 *
148 * removed!
149 * removed!
150 * removed!
151 *
152 * removed!
153 * removed!
154 * removed!
155 *
156 * removed!
157 * removed!
158 * removed!
159 *
160 * removed!
161 * removed!
162 * removed!
163 *
164 * removed!
165 * removed!
166 * removed!
167 *
168 * removed!
169 * removed!
170 * removed!
171 *
172 * removed!
173 * removed!
174 * removed!
175 *
176 * removed!
177 * removed!
178 * removed!
179 *
180 *------------------------------------------------------------------------------
181 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
182 *============================================================================
183 ****************************************************************************/
184
185#if defined(__MTK_TARGET__)
186#define __sf_section_RAM __attribute__ ((section ("SNORCODE")))
187#define __sf_section_SECOND_PART __attribute__ ((section ("SECOND_PART")))
188#define __sf_section_EMIINITCODE __attribute__ ((section ("EMIINITCODE")))
189#define __sf_section_RODATA_EMI __attribute__ ((section ("EMIINITCONST")))
190#define __sf_section_ZIDATA_EMI __attribute__ ((zero_init, section ("EMIINITZI")))
191#define __sf_section_RWDATA_INTSRAM __attribute__ ((section ("INTSRAM_RW")))
192#define __sf_section_RODATA_INTSRAM __attribute__ ((section ("INTSRAM_RODATA")))
193#define __sf_section_ZIDATA_INTSRAM __attribute__ ((zero_init, section ("INTSRAM_ZI")))
194#define __sf_section_INTSRAM __attribute__ ((section ("INTSRAM_ROCODE")))
195#else //defined(__SINGLE_BANK_NOR_FLASH_SUPPORT__) && defined(__MTK_TARGET__)
196 /* Reserve for MoDIS */
197#define __sf_section_RAM
198#define __sf_section_SECOND_PART
199#define __sf_section_EMIINITCODE
200#define __sf_section_RODATA_EMI
201#define __sf_section_ZIDATA_EMI
202#define __sf_section_RWDATA_INTSRAM
203#define __sf_section_RODATA_INTSRAM
204#define __sf_section_ZIDATA_INTSRAM
205#define __sf_section_INTSRAM
206#endif //defined(__SINGLE_BANK_NOR_FLASH_SUPPORT__) && defined(__MTK_TARGET__)
207
208
209
210#include "kal_public_api.h" //MSBB change #include "kal_release.h"
211#include "pll.h"
212
213__sf_section_EMIINITCODE kal_int8 custom_setSFI(void)
214{
215 return 0;
216}
217
218__sf_section_EMIINITCODE kal_int8 custom_setAdvSFI(void)
219{
220 return 0;
221}
222
223__sf_section_RAM int custom_SFIDynamicClockSwitch_Init()
224{
225 return 0;
226}
227
228__sf_section_INTSRAM int custom_SFIDynamicClockSwitch()
229{
230 return 0;
231}
232