aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/mediatek/gpio/mt6797/mt_gpio_ext.c
blob: 99245e110a8fe255b859eb426fcde925aebee20b (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/******************************************************************************
 * 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 <mt-plat/mt_gpio.h>
#include <mt-plat/mt_gpio_core.h>
#include "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 -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_dir_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_set_gpio_pull_enable_ext(unsigned long pin, unsigned long enable)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_pull_enable_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_set_gpio_smt_ext(unsigned long pin, unsigned long enable)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_smt_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_set_gpio_ies_ext(unsigned long pin, unsigned long enable)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_ies_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_set_gpio_pull_select_ext(unsigned long pin, unsigned long select)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_pull_select_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_set_gpio_inversion_ext(unsigned long pin, unsigned long enable)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_inversion_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_set_gpio_out_ext(unsigned long pin, unsigned long output)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_out_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_in_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_set_gpio_mode_ext(unsigned long pin, unsigned long mode)
{
	dump_stack();
	return -1;
}

/*---------------------------------------------------------------------------*/
int mt_get_gpio_mode_ext(unsigned long pin)
{
	dump_stack();
	return -1;
}