tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc9630 / pin_sleep.h
1 /******************************************************************************
2  ** File Name:      pin_sleep.h                                               *
3  ** Author:         jiexia.yu                                                 *
4  ** DATE:           07/28/2007                                                *
5  ** Copyright:      2007 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This file defines the basic configuration for pin         *
7  **                 management in deepsleep condition.                        *
8  ******************************************************************************
9
10  ******************************************************************************
11  **                        Edit History                                       *
12  ** ------------------------------------------------------------------------- *
13  ** DATE           NAME             DESCRIPTION                               *
14  ** 07/28/2007     jiexia.yu        Create.                                   *
15  ******************************************************************************/
16 #ifndef _PIN_SLEEP_H_
17 #define _PIN_SLEEP_H_
18
19 /**---------------------------------------------------------------------------*
20  **                         Dependencies                                      *
21  **---------------------------------------------------------------------------*/
22 #include "sci_types.h"
23 #include "arm_reg.h"
24
25 /**---------------------------------------------------------------------------*
26  **                         Compiler Flag                                     *
27  **---------------------------------------------------------------------------*/
28 #ifdef __cplusplus
29     extern   "C"
30     {
31 #endif
32
33 /**---------------------------------------------------------------------------*
34  **                         Defines                                           *
35  **---------------------------------------------------------------------------*/
36 //PIN sleep struct define
37 typedef struct pin_sleep_tag
38 {
39     uint32 reg_addr;    //register address
40     uint32 bit_mask;    //register data mask
41     uint32 bit_set;     //register bit that want to be setup
42     uint32 reg_save;    //temp variable for save original register value
43 }PIN_SLEEP_T;
44
45
46 /**---------------------------------------------------------------------------*
47  **                         Constant Variables                                *
48  **---------------------------------------------------------------------------*/
49
50 /**---------------------------------------------------------------------------*
51  **                         Function Prototypes                               *
52  **---------------------------------------------------------------------------*/
53 /*****************************************************************************/
54 //  Description:  setup pin config when system enters deepsleep
55 //      Global resource dependence:  misc_pin_sleep_cfg[] 
56 //  Author:  jiexia.yu         
57 //      Note:           
58 /*****************************************************************************/
59 PUBLIC void PIN_EnterDeepSleep(void);
60
61 /*****************************************************************************/
62 //  Description:  restore pin config when system leaves deepsleep
63 //      Global resource dependence:  misc_pin_sleep_cfg[]
64 //  Author:  jiexia.yu         
65 //      Note:           
66 /*****************************************************************************/
67 PUBLIC void PIN_LeaveDeepSleep(void);
68
69
70 /**---------------------------------------------------------------------------*
71  **                         Compiler Flag                                     *
72  **---------------------------------------------------------------------------*/
73 #ifdef __cplusplus
74     }
75 #endif
76
77 #endif // _PIN_SLEEP_H_
78