blob: e542fc249aaa831664820f57bc1460f698d91195 [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_v2.h
41 *
42 *
43 * Description:
44 * ------------
45 * SCCB/I2C V2 Driver
46 *
47 * Author:
48 * -------
49 * -------
50 *
51 *============================================================================
52 * HISTORY
53 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
54 *------------------------------------------------------------------------------
55 * removed!
56 * removed!
57 * removed!
58 *
59 * removed!
60 * removed!
61 * removed!
62 *
63 * removed!
64 * removed!
65 * removed!
66 *
67 * removed!
68 * removed!
69 * removed!
70 *
71 * removed!
72 * removed!
73 * removed!
74 *
75 * removed!
76 * removed!
77 * removed!
78 *
79 * removed!
80 * removed!
81 * removed!
82 *
83 * removed!
84 * removed!
85 * removed!
86 *
87 * removed!
88 * removed!
89 * removed!
90 *
91 * removed!
92 * removed!
93 * removed!
94 *
95 * removed!
96 * removed!
97 * removed!
98 *
99 * removed!
100 * removed!
101 *
102 *
103 * removed!
104 * removed!
105 *
106 *
107 * removed!
108 * removed!
109 *
110 *
111 * removed!
112 * removed!
113 *
114 *
115 * removed!
116 * removed!
117 *
118 *
119 * removed!
120 * removed!
121 *
122 *
123 * removed!
124 * removed!
125 *
126 *
127 * removed!
128 * removed!
129 *
130 *
131 * removed!
132 * removed!
133 *
134 *
135 * removed!
136 * removed!
137 * removed!
138 *
139 * removed!
140 * removed!
141 *
142 *
143 * removed!
144 * removed!
145 *
146 *
147 * removed!
148 * removed!
149 *
150 *
151 * removed!
152 * removed!
153 *
154 *------------------------------------------------------------------------------
155 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
156 *============================================================================
157 *****************************************************************************/
158#ifndef __SCCB_V2_H__
159#define __SCCB_V2_H__
160
161#if 0
162/* under construction !*/
163/* under construction !*/
164/* under construction !*/
165#if (defined(DRV_I2C_25_SERIES))
166/* under construction !*/
167/* under construction !*/
168/* under construction !*/
169/* under construction !*/
170/* under construction !*/
171/* under construction !*/
172/* under construction !*/
173/* under construction !*/
174/* under construction !*/
175/* under construction !*/
176/* under construction !*/
177/* under construction !*/
178#ifndef __DRV_DEBUG_I2C_REG_READ_WRITE__
179/* under construction !*/
180/* under construction !*/
181/* under construction !*/
182/* under construction !*/
183/* under construction !*/
184#else // #ifndef __DRV_DEBUG_PMU_REG_READ_WRITE__
185/* under construction !*/
186/* under construction !*/
187/* under construction !*/
188/* under construction !*/
189/* under construction !*/
190#endif // #ifndef __DRV_DEBUG_PMU_REG_READ_WRITE__
191/* under construction !*/
192/* under construction !*/
193/* under construction !*/
194/* under construction !*/
195/* under construction !*/
196/* under construction !*/
197/* under construction !*/
198#if defined(DRV_I2C_CLOCK_RATE_15_360_MHZ)
199/* under construction !*/
200#elif defined(DRV_I2C_CLOCK_RATE_3_000_MHZ)
201/* under construction !*/
202#else // #if defined(DRV_I2C_CLOCK_RATE_15_360_MHZ)
203/* under construction !*/
204#endif // #if defined(DRV_I2C_CLOCK_RATE_15_360_MHZ)
205/* under construction !*/
206/* under construction !*/
207/* under construction !*/
208#if defined(__MEUT__)
209/* under construction !*/
210#endif // #if defined(__MEUT__)
211/* under construction !*/
212#ifdef I2C_V2_DVT
213 #if !defined(DRV_I2C_DMA_ENABLED)
214/* under construction !*/
215 #endif // #if !defined(DRV_I2C_DMA_ENABLED)
216#endif // #ifdef I2C_V2_DVT
217/* under construction !*/
218#if (defined(DRV_I2C_DMA_ENABLED))
219/* under construction !*/
220#endif // #if (defined(DRV_I2C_DMA_ENABLED))
221/* under construction !*/
222/* under construction !*/
223/* under construction !*/
224/* under construction !*/
225/* under construction !*/
226/* under construction !*/
227/* under construction !*/
228/* under construction !*/
229/* under construction !*/
230/* under construction !*/
231/* under construction !*/
232/* under construction !*/
233/* under construction !*/
234/* under construction !*/
235/* under construction !*/
236/* under construction !*/
237/* under construction !*/
238/* under construction !*/
239/* under construction !*/
240/* under construction !*/
241/* under construction !*/
242/* under construction !*/
243/* under construction !*/
244/* under construction !*/
245/* under construction !*/
246#if defined(DRV_I2C_CLOCK_RATE_15_360_MHZ)
247/* under construction !*/
248/* under construction !*/
249/* under construction !*/
250/* under construction !*/
251/* under construction !*/
252/* under construction !*/
253/* under construction !*/
254/* under construction !*/
255/* under construction !*/
256/* under construction !*/
257/* under construction !*/
258/* under construction !*/
259#elif defined(DRV_I2C_CLOCK_RATE_3_000_MHZ)
260/* under construction !*/
261/* under construction !*/
262/* under construction !*/
263/* under construction !*/
264/* under construction !*/
265/* under construction !*/
266/* under construction !*/
267#else // #if defined(DRV_I2C_CLOCK_RATE_15_360_MHZ)
268/* under construction !*/
269/* under construction !*/
270/* under construction !*/
271/* under construction !*/
272/* under construction !*/
273/* under construction !*/
274/* under construction !*/
275/* under construction !*/
276/* under construction !*/
277/* under construction !*/
278/* under construction !*/
279/* under construction !*/
280/* under construction !*/
281/* under construction !*/
282/* under construction !*/
283/* under construction !*/
284/* under construction !*/
285/* under construction !*/
286#endif // #if defined(DRV_I2C_CLOCK_RATE_15_360_MHZ)
287/* under construction !*/
288/* under construction !*/
289/* under construction !*/
290/* under construction !*/
291/* under construction !*/
292/* under construction !*/
293/* under construction !*/
294/* under construction !*/
295/* under construction !*/
296/* under construction !*/
297/* under construction !*/
298/* under construction !*/
299/* under construction !*/
300/* under construction !*/
301/* under construction !*/
302/* under construction !*/
303/* under construction !*/
304/* under construction !*/
305 #if (defined(DRV_I2C_DMA_ENABLED))
306/* under construction !*/
307 #endif // #if (defined(DRV_I2C_DMA_ENABLED))
308/* under construction !*/
309/* under construction !*/
310/* under construction !*/
311/* under construction !*/
312/* under construction !*/
313/* under construction !*/
314/* under construction !*/
315/* under construction !*/
316/* under construction !*/
317/* under construction !*/
318/* under construction !*/
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 #if (defined(DRV_I2C_DMA_ENABLED))
335/* under construction !*/
336 #endif // #if (defined(DRV_I2C_DMA_ENABLED))
337/* under construction !*/
338/* under construction !*/
339/* under construction !*/
340/* under construction !*/
341#if defined(__SUPPORT_SCCB_XXX_API__)
342/* under construction !*/
343#if(defined(DRV_GPIO_6223_SERIES))
344/* under construction !*/
345/* under construction !*/
346/* under construction !*/
347/* under construction !*/
348 #if defined(SCCB_SERIAL_CLK_PIN)
349/* under construction !*/
350/* under construction !*/
351/* under construction !*/
352/* under construction !*/
353/* under construction !*/
354/* under construction !*/
355 #endif // #if defined(SCCB_SERIAL_CLK_PIN)
356/* under construction !*/
357/* under construction !*/
358/* under construction !*/
359/* under construction !*/
360/* under construction !*/
361#endif // #if(defined(DRV_GPIO_6223_SERIES))
362/* under construction !*/
363#endif // #if defined(__SUPPORT_SCCB_XXX_API__)
364/* under construction !*/
365 #ifndef DRV_I2C_OFF
366/* under construction !*/
367/* under construction !*/
368/* under construction !*/
369/* under construction !*/
370/* under construction !*/
371/* under construction !*/
372/* under construction !*/
373/* under construction !*/
374/* under construction !*/
375/* under construction !*/
376/* under construction !*/
377/* under construction !*/
378/* under construction !*/
379/* under construction !*/
380/* under construction !*/
381/* under construction !*/
382/* under construction !*/
383/* under construction !*/
384#endif // DRV_I2C_OFF
385/* under construction !*/
386/* under construction !*/
387/* under construction !*/
388/* under construction !*/
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/* under construction !*/
399/* under construction !*/
400/* under construction !*/
401/* under construction !*/
402/* under construction !*/
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/* under construction !*/
473/* under construction !*/
474/* under construction !*/
475/* under construction !*/
476/* under construction !*/
477/* under construction !*/
478/* under construction !*/
479/* under construction !*/
480/* under construction !*/
481/* under construction !*/
482/* under construction !*/
483/* under construction !*/
484/* under construction !*/
485/* under construction !*/
486/* under construction !*/
487/* under construction !*/
488/* under construction !*/
489/* under construction !*/
490/* under construction !*/
491/* under construction !*/
492/* under construction !*/
493/* under construction !*/
494/* under construction !*/
495/* under construction !*/
496/* under construction !*/
497/* under construction !*/
498/* under construction !*/
499/* under construction !*/
500/* under construction !*/
501/* under construction !*/
502/* under construction !*/
503/* under construction !*/
504/* under construction !*/
505/* under construction !*/
506/* under construction !*/
507/* under construction !*/
508/* under construction !*/
509/* under construction !*/
510/* under construction !*/
511/* under construction !*/
512/* under construction !*/
513/* under construction !*/
514/* under construction !*/
515/* under construction !*/
516#if defined(DRV_I2C_DIRECT_CONFIG_DMA_REGISTER)
517/* under construction !*/
518/* under construction !*/
519/* under construction !*/
520/* under construction !*/
521/* under construction !*/
522/* under construction !*/
523/* under construction !*/
524/* under construction !*/
525/* under construction !*/
526/* under construction !*/
527/* under construction !*/
528/* under construction !*/
529/* under construction !*/
530/* under construction !*/
531/* under construction !*/
532/* under construction !*/
533/* under construction !*/
534/* under construction !*/
535/* under construction !*/
536/* under construction !*/
537/* under construction !*/
538/* under construction !*/
539/* under construction !*/
540/* under construction !*/
541/* under construction !*/
542/* under construction !*/
543/* under construction !*/
544/* under construction !*/
545/* under construction !*/
546/* under construction !*/
547/* under construction !*/
548/* under construction !*/
549/* under construction !*/
550#endif // #if defined(DRV_I2C_DIRECT_CONFIG_DMA_REGISTER)
551/* under construction !*/
552/* under construction !*/
553/* under construction !*/
554/* under construction !*/
555/* under construction !*/
556/* under construction !*/
557/* under construction !*/
558/* under construction !*/
559/* under construction !*/
560/* under construction !*/
561/* under construction !*/
562/* under construction !*/
563/* under construction !*/
564/* under construction !*/
565/* under construction !*/
566/* under construction !*/
567/* under construction !*/
568/* under construction !*/
569/* under construction !*/
570/* under construction !*/
571#if (defined(DRV_I2C_DMA_ENABLED))
572/* under construction !*/
573#endif // #if (defined(DRV_I2C_DMA_ENABLED))
574/* under construction !*/
575#if defined(DRV_I2C_25_SERIES)
576#if defined(__SUPPORT_SCCB_XXX_API__)
577/* under construction !*/
578/* under construction !*/
579/* under construction !*/
580/* under construction !*/
581/* under construction !*/
582/* under construction !*/
583/* under construction !*/
584#endif // #if defined(__SUPPORT_SCCB_XXX_API__)
585#endif // #if defined(DRV_I2C_25_SERIES)
586/* under construction !*/
587/* under construction !*/
588/* under construction !*/
589/* under construction !*/
590#endif // #if (defined(DRV_I2C_25_SERIES))
591/* under construction !*/
592#endif // #ifndef __SCCB_V2_H__
593
594#endif // #ifndef __SCCB_V2_H__
595