blob: 53a2d99140bec145a330bbd496f97754d9b56a90 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
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 * sccb.h
41 *
42 * Project:
43 * --------
44 * MT6219
45 *
46 * Description:
47 * ------------
48 * SCCB interface
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 *
98 * removed!
99 * removed!
100 * removed!
101 *
102 * removed!
103 * removed!
104 * removed!
105 *
106 * removed!
107 * removed!
108 * removed!
109 *
110 * removed!
111 * removed!
112 * removed!
113 *
114 * removed!
115 * removed!
116 * removed!
117 *
118 * removed!
119 * removed!
120 * removed!
121 *
122 * removed!
123 * removed!
124 * removed!
125 *
126 * removed!
127 * removed!
128 * removed!
129 *
130 * removed!
131 * removed!
132 * removed!
133 *
134 * removed!
135 * removed!
136 *
137 *
138 * removed!
139 * removed!
140 * removed!
141 *
142 * removed!
143 * removed!
144 *
145 *
146 * removed!
147 * removed!
148 *
149 *
150 * removed!
151 * removed!
152 * removed!
153 * removed!
154 *
155 * removed!
156 *
157 * removed!
158 * removed!
159 *
160 *
161 * removed!
162 * removed!
163 *
164 *
165 * removed!
166 * removed!
167 *
168 *
169 * removed!
170 * removed!
171 *
172 *
173 * removed!
174 * removed!
175 *
176 *
177 * removed!
178 * removed!
179 *
180 *
181 * removed!
182 * removed!
183 *
184 *
185 * removed!
186 * removed!
187 *
188 *
189 * removed!
190 * removed!
191 *
192 *
193 * removed!
194 * removed!
195 *
196 *
197 * removed!
198 * removed!
199 *
200 *
201 * removed!
202 * removed!
203 *
204 *
205 * removed!
206 * removed!
207 *
208 *
209 * removed!
210 * removed!
211 *
212 *
213 * removed!
214 * removed!
215 * removed!
216 *
217 * removed!
218 * removed!
219 *
220 *
221 * removed!
222 * removed!
223 *
224 *
225 * removed!
226 * removed!
227 *
228 *
229 * removed!
230 * removed!
231 *
232 *
233 * removed!
234 * removed!
235 *
236 *
237 * removed!
238 * removed!
239 *
240 *
241 * removed!
242 * removed!
243 *
244 *
245 * removed!
246 * removed!
247 *
248 *
249 * removed!
250 * removed!
251 * removed!
252 *
253 * removed!
254 * removed!
255 *
256 *
257 * removed!
258 * removed!
259 * removed!
260 *
261 * removed!
262 * removed!
263 * removed!
264 *
265 * removed!
266 * removed!
267 *
268 * removed!
269 * removed!
270 *
271 * removed!
272 * removed!
273 *
274 * removed!
275 * removed!
276 *
277 * removed!
278 * removed!
279 * removed!
280 *
281 * removed!
282 * removed!
283 *
284 * removed!
285 * removed!
286 *
287 *------------------------------------------------------------------------------
288 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
289 *============================================================================
290 ****************************************************************************/
291
292
293#ifndef __SCCB_H__
294#define __SCCB_H__
295
296#include "dcl.h"
297
298#include "kal_general_types.h"
299
300#if 0
301#if (defined(MT6219)||defined(MT6228)||defined(MT6226)||defined(MT6226M)||defined(MT6226D)||defined(MT6227)||defined(MT6227D)||defined(MT6229)||defined(MT6230))
302/* under construction !*/
303#endif // #if (defined(MT6219)||defined(MT6228)||defined(MT6226)||defined(MT6226M)||defined(MT6226D)||defined(MT6227)||defined(MT6227D)||defined(MT6229)||defined(MT6230))
304/* under construction !*/
305#if ( defined(MT6219)||defined(MT6228)||defined(MT6226)||defined(MT6226M)||defined(MT6226D)||defined(MT6227)||defined(MT6227D)||defined(MT6229)||defined(MT6230) ||defined(MT6225)||defined(MT6223)||defined(MT6223P)||defined(MT6235B)||defined(MT6238)||defined(MT6239)||defined(MT6268A) ||defined(MT6239)||defined(MT6253T))
306/* under construction !*/
307#endif // SCCB_XXX API supported platforms list
308/* under construction !*/
309#endif
310
311#if 0
312#if defined(__SCCB_MODULE_V1__)
313/* under construction !*/
314/* under construction !*/
315/* under construction !*/
316#if (!defined(MT6219))
317/* under construction !*/
318#endif // #if (!defined(MT6219))
319/* under construction !*/
320/* under construction !*/
321/* under construction !*/
322/* under construction !*/
323/* under construction !*/
324/* under construction !*/
325/* under construction !*/
326/* under construction !*/
327/* under construction !*/
328/* under construction !*/
329/* under construction !*/
330/* under construction !*/
331/* under construction !*/
332/* under construction !*/
333/* under construction !*/
334/* under construction !*/
335/* under construction !*/
336/* under construction !*/
337/* under construction !*/
338/* under construction !*/
339/* under construction !*/
340/* under construction !*/
341/* under construction !*/
342/* under construction !*/
343/* under construction !*/
344/* under construction !*/
345/* under construction !*/
346/* under construction !*/
347/* under construction !*/
348/* under construction !*/
349/* under construction !*/
350/* under construction !*/
351/* under construction !*/
352#if (defined(MT6226)||defined(MT6226M)||defined(MT6226D)||defined(MT6227)||defined(MT6227D)||defined(MT6229)||defined(MT6230)||defined(MT6223)||defined(MT6223P))
353/* under construction !*/
354#endif // #if (defined(MT6226)||defined(MT6226M)||defined(MT6226D)||defined(MT6227)||defined(MT6227D)||defined(MT6229)||defined(MT6230)||defined(MT6223)||defined(MT6223P))
355/* under construction !*/
356/* under construction !*/
357/* under construction !*/
358/* under construction !*/
359/* under construction !*/
360/* under construction !*/
361/* under construction !*/
362/* under construction !*/
363/* under construction !*/
364/* under construction !*/
365/* under construction !*/
366/* under construction !*/
367/* under construction !*/
368/* under construction !*/
369/* under construction !*/
370/* under construction !*/
371/* under construction !*/
372#endif // #if defined(__SCCB_MODULE_V1__)
373#endif
374
375#if 0
376#ifdef __CUST_NEW__
377/* under construction !*/
378/* under construction !*/
379/* under construction !*/
380/* under construction !*/
381/* under construction !*/
382/* under construction !*/
383/* under construction !*/
384/* under construction !*/
385/* under construction !*/
386/* under construction !*/
387/* under construction !*/
388#else // #ifdef __CUST_NEW__
389/* under construction !*/
390/* under construction !*/
391/* under construction !*/
392/* under construction !*/
393/* under construction !*/
394/* under construction !*/
395/* under construction !*/
396/* under construction !*/
397/* under construction !*/
398#endif // #ifdef __CUST_NEW__
399/* under construction !*/
400#endif //#if 0
401
402#if 0
403/* under construction !*/
404/* under construction !*/
405/* under construction !*/
406/* under construction !*/
407/* under construction !*/
408/* under construction !*/
409/* under construction !*/
410/* under construction !*/
411/* under construction !*/
412/* under construction !*/
413/* under construction !*/
414/* under construction !*/
415/* under construction !*/
416/* under construction !*/
417/* under construction !*/
418/* under construction !*/
419/* under construction !*/
420/* under construction !*/
421/* under construction !*/
422/* under construction !*/
423/* under construction !*/
424/* under construction !*/
425/* under construction !*/
426/* under construction !*/
427/* under construction !*/
428/* under construction !*/
429/* under construction !*/
430/* under construction !*/
431/* under construction !*/
432/* under construction !*/
433/* under construction !*/
434/* under construction !*/
435/* under construction !*/
436/* under construction !*/
437/* under construction !*/
438/* under construction !*/
439/* under construction !*/
440/* under construction !*/
441/* under construction !*/
442/* under construction !*/
443/* under construction !*/
444/* under construction !*/
445/* under construction !*/
446/* under construction !*/
447/* under construction !*/
448/* under construction !*/
449/* under construction !*/
450/* under construction !*/
451/* under construction !*/
452/* under construction !*/
453/* under construction !*/
454/* under construction !*/
455/* under construction !*/
456/* under construction !*/
457/* under construction !*/
458/* under construction !*/
459/* under construction !*/
460/* under construction !*/
461/* under construction !*/
462/* under construction !*/
463/* under construction !*/
464/* under construction !*/
465/* under construction !*/
466/* under construction !*/
467/* under construction !*/
468/* under construction !*/
469/* under construction !*/
470/* under construction !*/
471/* under construction !*/
472#endif //#if 0
473
474
475// SCCB PINS definition
476
477
478#ifdef __CUST_NEW__
479//#include "gpio_sw.h"
480extern const char gpio_sccb_serial_clk_pin;
481extern const char gpio_sccb_serial_data_pin;
482#endif // #ifdef __CUST_NEW__
483
484
485#if 0
486/* under construction !*/
487#if (defined(MT6219)||defined(MT6226)||defined(MT6226M)||defined(MT6226D)||defined(MT6227)||defined(MT6227D))
488 #ifdef __CUST_NEW__
489/* under construction !*/
490/* under construction !*/
491 #else // #ifdef __CUST_NEW__
492/* under construction !*/
493/* under construction !*/
494 #endif // #ifdef __CUST_NEW__
495#endif // #if (defined(MT6219)||defined(MT6226)||defined(MT6226M)||defined(MT6226D)||defined(MT6227)||defined(MT6227D))
496/* under construction !*/
497#if (defined(MT6228)||defined(MT6229)||defined(MT6230))
498 #ifdef __CUST_NEW__
499 #if (defined(DVT_TEST))
500/* under construction !*/
501/* under construction !*/
502 #else // #if (defined(DVT_TEST))
503/* under construction !*/
504/* under construction !*/
505 #endif // #if (defined(DVT_TEST))
506 #else // #ifdef __CUST_NEW__
507 #if (defined(DVT_TEST))
508/* under construction !*/
509/* under construction !*/
510 #else // #if (defined(DVT_TEST))
511/* under construction !*/
512/* under construction !*/
513 #endif // #if (defined(DVT_TEST))
514 #endif // #ifdef __CUST_NEW__
515#endif // #if (defined(MT6228)||defined(MT6229)||defined(MT6230))
516/* under construction !*/
517/* under construction !*/
518#if (defined(DRV_GPIO_REG_AS_6223))
519 #ifdef __CUST_NEW__
520/* under construction !*/
521/* under construction !*/
522 #else // #ifdef __CUST_NEW__
523/* under construction !*/
524/* under construction !*/
525 #endif // #ifdef __CUST_NEW__
526/* under construction !*/
527/* under construction !*/
528#endif // #if (defined(DRV_GPIO_REG_AS_6223))
529/* under construction !*/
530/* under construction !*/
531#if (defined(DRV_GPIO_REG_AS_6225))
532 #ifdef __CUST_NEW__
533/* under construction !*/
534/* under construction !*/
535 #else /* __CUST_NEW__ */
536/* under construction !*/
537/* under construction !*/
538 #endif /* __CUST_NEW__ */
539/* under construction !*/
540/* under construction !*/
541#endif // #if (defined(DRV_GPIO_REG_AS_6225))
542/* under construction !*/
543#if (defined(DRV_GPIO_REG_AS_6238))
544 #ifdef __CUST_NEW__
545/* under construction !*/
546/* under construction !*/
547 #else /* __CUST_NEW__ */
548/* under construction !*/
549/* under construction !*/
550 #endif /* __CUST_NEW__ */
551#endif // #if (defined(DRV_GPIO_6238_SERIES))
552/* under construction !*/
553/* under construction !*/
554#if (defined(DRV_GPIO_REG_AS_6235))
555 #ifdef __CUST_NEW__
556 #if defined(EMPTY_MMI)
557/* under construction !*/
558/* under construction !*/
559 #else // #if defined(EMPTY_MMI)
560/* under construction !*/
561/* under construction !*/
562 #endif // #if defined(EMPTY_MMI)
563 #else /* __CUST_NEW__ */
564/* under construction !*/
565/* under construction !*/
566 #endif /* __CUST_NEW__ */
567#endif // #if (defined(DRV_GPIO_6235_SERIES))
568/* under construction !*/
569#if (defined(DRV_GPIO_REG_AS_6268A))
570 #ifdef __CUST_NEW__
571/* under construction !*/
572/* under construction !*/
573 #else /* __CUST_NEW__ */
574/* under construction !*/
575/* under construction !*/
576 #endif /* __CUST_NEW__ */
577#endif // #if (defined(DRV_GPIO_REG_AS_6268A))
578/* under construction !*/
579#if(defined(DRV_GPIO_REG_AS_6268))
580 #ifdef __CUST_NEW__
581/* under construction !*/
582/* under construction !*/
583 #else // #ifdef __CUST_NEW__
584/* under construction !*/
585/* under construction !*/
586 #endif // #ifdef __CUST_NEW__
587/* under construction !*/
588/* under construction !*/
589#endif // #if(defined(DRV_GPIO_REG_AS_6268))
590/* under construction !*/
591#if (defined(DRV_GPIO_REG_AS_6253T))
592 #ifdef __CUST_NEW__
593/* under construction !*/
594/* under construction !*/
595 #else /* __CUST_NEW__ */
596/* under construction !*/
597/* under construction !*/
598 #endif /* __CUST_NEW__ */
599/* under construction !*/
600/* under construction !*/
601#endif // #if (defined(DRV_GPIO_REG_AS_6253T))
602/* under construction !*/
603/* under construction !*/
604/* under construction !*/
605#if (defined(DRV_GPIO_REG_AS_6253E)&&defined(MT6253L))
606 #ifdef __CUST_NEW__
607/* under construction !*/
608/* under construction !*/
609 #else /* __CUST_NEW__ */
610/* under construction !*/
611/* under construction !*/
612 #endif /* __CUST_NEW__ */
613/* under construction !*/
614/* under construction !*/
615#endif
616/* under construction !*/
617#if (defined(DRV_GPIO_REG_AS_6236))
618 #ifdef __CUST_NEW__
619/* under construction !*/
620/* under construction !*/
621 #else /* __CUST_NEW__ */
622/* under construction !*/
623/* under construction !*/
624#endif /*__CUST_NEW__*/
625/* under construction !*/
626/* under construction !*/
627#endif // #if (defined(DRV_GPIO_REG_AS_6236))
628/* under construction !*/
629#endif
630///Bin: added to patch build error
631#ifndef SCCB_SERIAL_CLK_PIN
632 #define SCCB_SERIAL_CLK_PIN gpio_sccb_serial_clk_pin
633#endif
634
635#ifndef SCCB_SERIAL_DATA_PIN
636 #define SCCB_SERIAL_DATA_PIN gpio_sccb_serial_data_pin
637#endif
638
639#if 0
640/* under construction !*/
641/* under construction !*/
642/* under construction !*/
643/* under construction !*/
644/* under construction !*/
645/* under construction !*/
646/* under construction !*/
647/* under construction !*/
648/* under construction !*/
649#if defined(__SCCB_MODULE_V1__)
650/* under construction !*/
651/* under construction !*/
652/* under construction !*/
653/* under construction !*/
654/* under construction !*/
655/* under construction !*/
656/* under construction !*/
657#endif // #if defined(__SCCB_MODULE_V1__)
658#endif //#if 0
659
660#endif // #ifndef __SCCB_H__
661