1 /******************************************************************************
2 ** File Name: chip_init_drvapi.h *
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 ******************************************************************************
10 ******************************************************************************
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_
19 /**---------------------------------------------------------------------------*
21 **---------------------------------------------------------------------------*/
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.
36 /*****************************************************************************/
37 PUBLIC void CHIPDRV_InitOnPhase1 ();
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.
45 /*****************************************************************************/
46 PUBLIC void CHIPDRV_InitOnPhase2 ();
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.
54 /*****************************************************************************/
55 PUBLIC void CHIPDRV_InitOnPhase3 ();
57 /*****************************************************************************/
58 // Description : Phase4 of chip driver intialization. It initializes MMU
59 // after refbase has copied the kernel image.
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 ();
67 /**---------------------------------------------------------------------------*
69 **---------------------------------------------------------------------------*/
74 #endif //_CHIP_INIT_DRVAPI_H_