tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / chip_init_drvapi.h
1 /******************************************************************************
2  ** File Name:      chip_init_drvapi.h                                           *
3  ** Author:         Jeff Li                                                   *
4  ** DATE:           06/09/2010                                                *
5  ** Copyright:      2002 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This file defines the interfaces called during system and *
7  **                 driver initialization, which export to init.c of refbase. *
8  ******************************************************************************
9
10  ******************************************************************************
11  **                        Edit History                                       *
12  ** ------------------------------------------------------------------------- *
13  ** DATE           NAME             DESCRIPTION                               *
14  ** 06/09/2010     Jeff.Li          Create.                                   *
15  ******************************************************************************/
16 #ifndef _CHIP_INIT_DRVAPI_H_
17 #define _CHIP_INIT_DRVAPI_H_
18
19 /**---------------------------------------------------------------------------*
20  **                         Compiler Flag                                     *
21  **---------------------------------------------------------------------------*/
22 #ifdef __cplusplus
23 extern   "C"
24 {
25 #endif
26
27 /**---------------------------------------------------------------------------*
28  **                         Function Prototypes                               *
29  **---------------------------------------------------------------------------*/
30 /*****************************************************************************/
31 // Description :    Phase1 of chip driver intialization. It initializes criti-
32 //                  cal resource of chip before the refbase starts to boot, it
33 //                  contains global clock init and enable, pinmap config init etc.
34 // Author :         Jeff.Li
35 // Note :
36 /*****************************************************************************/
37 PUBLIC void CHIPDRV_InitOnPhase1 ();
38
39 /*****************************************************************************/
40 // Description :    Phase2 of chip driver intialization. It initializes driver
41 //                  modules before refbase confirms powering on. it contains
42 //                  some necessary modules including RTC, timer, DMA, NLC etc.
43 // Author :         Jeff.Li
44 // Note :
45 /*****************************************************************************/
46 PUBLIC void CHIPDRV_InitOnPhase2 ();
47
48 /*****************************************************************************/
49 // Description :    Phase3 of chip driver intialization. It initializes driver
50 //                  modules after refbase confirms powering on. it contains
51 //                  the modules including GPIO, watchdog, analog, charge etc.
52 // Author :         Jeff.Li
53 // Note :
54 /*****************************************************************************/
55 PUBLIC void CHIPDRV_InitOnPhase3 ();
56
57 /*****************************************************************************/
58 // Description :    Phase4 of chip driver intialization. It initializes MMU
59 //                  after refbase has copied the kernel image.
60 // Author :         Jeff.Li
61 // Note :           Before phase4, the MMU and virtual memory mapping is still
62 //                  not initialized, so the kernel image coping of refbase sho-
63 //                  uld make sure that the operating address is physical.
64 /*****************************************************************************/
65 PUBLIC void CHIPDRV_InitOnPhase4 ();
66
67 /**---------------------------------------------------------------------------*
68  **                         Compiler Flag                                     *
69  **---------------------------------------------------------------------------*/
70 #ifdef __cplusplus
71 }
72 #endif
73
74 #endif //_CHIP_INIT_DRVAPI_H_