blob: c2812c631519187270f1373f6c9dfb009a98e5ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/******************************************************************************
* mt_gpio_ext.c - MTKLinux GPIO Device Driver
*
* Copyright 2008-2009 MediaTek Co.,Ltd.
*
* DESCRIPTION:
* This file provid the other drivers GPIO debug functions
*
******************************************************************************/
#include <mach/mt_reg_base.h>
#include <mach/mt_pmic_wrap.h>
#include <mach/mt_gpio.h>
#include <mach/mt_gpio_core.h>
#include <mach/mt_gpio_ext.h>
//#define MAX_GPIO_REG_BITS 16
//#define MAX_GPIO_MODE_PER_REG 5
//#define GPIO_MODE_BITS 3
#define GPIOEXT_BASE (0x0) //PMIC GPIO base.
//static GPIOEXT_REGS *gpioext_reg = (GPIOEXT_REGS*)(GPIOEXT_BASE);
//set extend GPIO
/*---------------------------------------------------------------------------*/
int mt_set_gpio_dir_ext(unsigned long pin, unsigned long dir) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_dir_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_set_gpio_pull_enable_ext(unsigned long pin, unsigned long enable){ dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_pull_enable_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_set_gpio_smt_ext(unsigned long pin, unsigned long enable) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_smt_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_set_gpio_ies_ext(unsigned long pin, unsigned long enable) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_ies_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_set_gpio_pull_select_ext(unsigned long pin, unsigned long select){ dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_pull_select_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_set_gpio_inversion_ext(unsigned long pin, unsigned long enable) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_inversion_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_set_gpio_out_ext(unsigned long pin, unsigned long output) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_out_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_in_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_set_gpio_mode_ext(unsigned long pin, unsigned long mode) { dump_stack(); return ERINVAL;}
/*---------------------------------------------------------------------------*/
int mt_get_gpio_mode_ext(unsigned long pin) { dump_stack(); return ERINVAL;}
|