1262569Simp/*
2262569Simp * This header provides constants for DRA pinctrl bindings.
3262569Simp *
4262569Simp * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
5262569Simp * Author: Rajendra Nayak <rnayak@ti.com>
6262569Simp *
7262569Simp * This program is free software; you can redistribute it and/or modify
8262569Simp * it under the terms of the GNU General Public License version 2 as
9262569Simp * published by the Free Software Foundation.
10262569Simp */
11262569Simp
12262569Simp#ifndef _DT_BINDINGS_PINCTRL_DRA_H
13262569Simp#define _DT_BINDINGS_PINCTRL_DRA_H
14262569Simp
15262569Simp/* DRA7 mux mode options for each pin. See TRM for options */
16262569Simp#define MUX_MODE0	0x0
17262569Simp#define MUX_MODE1	0x1
18262569Simp#define MUX_MODE2	0x2
19262569Simp#define MUX_MODE3	0x3
20262569Simp#define MUX_MODE4	0x4
21262569Simp#define MUX_MODE5	0x5
22262569Simp#define MUX_MODE6	0x6
23262569Simp#define MUX_MODE7	0x7
24262569Simp#define MUX_MODE8	0x8
25262569Simp#define MUX_MODE9	0x9
26262569Simp#define MUX_MODE10	0xa
27262569Simp#define MUX_MODE11	0xb
28262569Simp#define MUX_MODE12	0xc
29262569Simp#define MUX_MODE13	0xd
30262569Simp#define MUX_MODE14	0xe
31262569Simp#define MUX_MODE15	0xf
32262569Simp
33273712Sian#define PULL_ENA		(0 << 16)
34273712Sian#define PULL_DIS		(1 << 16)
35262569Simp#define PULL_UP			(1 << 17)
36262569Simp#define INPUT_EN		(1 << 18)
37262569Simp#define SLEWCONTROL		(1 << 19)
38262569Simp#define WAKEUP_EN		(1 << 24)
39262569Simp#define WAKEUP_EVENT		(1 << 25)
40262569Simp
41262569Simp/* Active pin states */
42273712Sian#define PIN_OUTPUT		(0 | PULL_DIS)
43284090Sian#define PIN_OUTPUT_PULLUP	(PULL_UP)
44284090Sian#define PIN_OUTPUT_PULLDOWN	(0)
45273712Sian#define PIN_INPUT		(INPUT_EN | PULL_DIS)
46262569Simp#define PIN_INPUT_SLEW		(INPUT_EN | SLEWCONTROL)
47262569Simp#define PIN_INPUT_PULLUP	(PULL_ENA | INPUT_EN | PULL_UP)
48262569Simp#define PIN_INPUT_PULLDOWN	(PULL_ENA | INPUT_EN)
49262569Simp
50262569Simp#endif
51262569Simp
52