blob: 887948858eddf3b8223528d5f39a925d1bfc4ee7 (
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
|
/* arch/arm/mach-omap2/omap_muxtbl.h
*
* Copyright (C) 2011 Samsung Electronics Co, Ltd.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __OMAP_MUXTBL_H__
#define __OMAP_MUXTBL_H__
#include <linux/rbtree.h>
#define OMAP_MUXTBL_NO_GPIO 0xFFFFFFFF
#define OMAP_MUXTBL_ERR_INSERT_TREE 1
#define OMAP_MUXTBL_ERR_ADD_MUX 2
#define OMAP_MUXTBL_ERR_INT_GPIO 3
struct omap_muxtbl {
struct gpio gpio;
unsigned int domain;
struct omap_board_mux mux;
char *pin;
/* rb-tree by label */
struct rb_node node_l;
unsigned crc32_l;
/* rb-tree by pin */
struct rb_node node_p;
unsigned crc32_p;
};
struct omap_muxset {
unsigned int rev;
struct omap_muxtbl *muxtbl;
unsigned int size;
};
extern void __init omap_muxtbl_init(void);
extern int __init omap_muxtbl_add_muxset(struct omap_muxset *muxset);
#endif /* __OMAP_MUXTBL_H__ */
|