940b73744a2fac43da3edf5f192b8fdc52ed530e
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8825 / usb_boot.h
1 /******************************************************************************
2  ** File Name:    common.h                                                    *
3  ** Author:       Daniel.Ding                                                 *
4  ** DATE:         3/25/2005                                                    *
5  ** Copyright:    2005 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
10  **---------------------------------------------------------------------------*
11  ** DATE          NAME            DESCRIPTION                                 *
12  ** 3/25/2005      Daniel.Ding     Create.                                     *
13  ******************************************************************************/
14 #ifndef _USB_BOOT_H_
15 #define _USB_BOOT_H_
16 /*----------------------------------------------------------------------------*
17  **                         Dependencies                                      *
18  **-------------------------------------------------------------------------- */
19 #include "sci_types.h"
20 #include "cmd_def.h"
21 /**---------------------------------------------------------------------------*
22  **                             Compiler Flag                                 *
23  **---------------------------------------------------------------------------*/
24 #ifdef   __cplusplus
25 extern   "C"
26 {
27 #endif
28 /**----------------------------------------------------------------------------*
29 **                               Micro Define                                 **
30 **----------------------------------------------------------------------------*/
31
32 /**----------------------------------------------------------------------------*
33 **                             Data Prototype                                 **
34 **----------------------------------------------------------------------------*/
35
36 /**----------------------------------------------------------------------------*
37 **                         Local Function Prototype                           **
38 **----------------------------------------------------------------------------*/
39
40 /**----------------------------------------------------------------------------*
41 **                           Function Prototype                               **
42 **----------------------------------------------------------------------------*/
43 /*****************************************************************************/
44 //  Description:
45 //  Global resource dependence:
46 //  Author:         Daniel.Ding
47 //  Note:
48 /*****************************************************************************/
49 void usb_boot (uint32 ext_clk26M);
50
51 /*****************************************************************************/
52 //  Description:
53 //  Global resource dependence:
54 //  Author:         Daniel.Ding
55 //  Note:
56 /*****************************************************************************/
57 void usb_varinit (void);
58
59 /*****************************************************************************/
60 //  Description:
61 //  Global resource dependence:
62 //  Author:         Daniel.Ding
63 //  Note:
64 /*****************************************************************************/
65 void usb_write (unsigned char *write_buf,unsigned int write_len);
66
67 /*****************************************************************************/
68 //  Description:    turn off usb ldo
69 //  Global resource dependence:
70 //  Author:         weihua.wang
71 //  Note:
72 /*****************************************************************************/
73 uint8 usb_ldo_off (void);
74
75 extern struct FDL_ChannelHandler gUSBChannel;
76 /**----------------------------------------------------------------------------*
77 **                         Compiler Flag                                      **
78 **----------------------------------------------------------------------------*/
79 #ifdef   __cplusplus
80 }
81 #endif
82 /**---------------------------------------------------------------------------*/
83 #endif
84 // End