tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8800g / gpio_drv.h
1 /******************************************************************************
2  ** File Name:      gpio_drv.h                                                  *
3  ** Author:         Xueppeng.Zhang                                             *
4  ** DATE:           06/12/2010                                                *
5  ** Copyright:      2002 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This is temporarily file for old interfaces of GPIO device*
7  ******************************************************************************
8
9  ******************************************************************************
10  **                        Edit History                                       *
11  ** ------------------------------------------------------------------------- *
12  ** DATE           NAME             DESCRIPTION                               *
13  ** 06/12/2010     Xuepeng.Zhang    Create.                                   *
14  ******************************************************************************/
15
16 #ifndef _GPIO_DRV_H_
17 #define _GPIO_DRV_H_
18
19 #include "tb_drv.h"
20 #include "tb_hal.h"
21
22 //
23 // mocor\ms_code\ms_customize\source\product\driver\gpio\Gpio_prod.c
24 // mocor\ms_code\ms_customize\source\product\driver\ubot\isp1183\cfg\Hal4sys.c
25 //
26 #define  HAL_AddGPIOToCallbackTable  GPIO_AddCallbackToIntTable
27 #define  HAL_GetGPIOVal              GPIO_GetValue
28 #define  HAL_SetGPIOVal              GPIO_SetValue
29 #define HAL_SetGPIOInterruptSense      GPIO_SetInterruptSense
30
31 #define HAL_SetGPIODirection               GPIO_SetDirection
32 //
33 // mocor\ms_code\ms_customize\source\product\driver\gpio\Gpio_ext_drv.c
34 // mocor\ms_code\ms_customize\source\product\driver\gpio\Gpio_prod.c
35 //
36 #define HAL_EnableGPIOIntCtl               GPIO_EnableIntCtl
37 #define HAL_DisableGPIOIntCtl              GPIO_DisableIntCtl
38
39 #include "gpio_drvapi.h"
40 #endif  // _GPIO_DRV_H_
41