/*
 * This header provides constants for Keystone pinctrl bindings.
 *
 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
 * kind, whether express or implied; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef _DT_BINDINGS_PINCTRL_KEYSTONE_H
#define _DT_BINDINGS_PINCTRL_KEYSTONE_H

#define MUX_MODE0	0
#define MUX_MODE1	1
#define MUX_MODE2	2
#define MUX_MODE3	3
#define MUX_MODE4	4
#define MUX_MODE5	5

#define BUFFER_CLASS_B	(0 << 19)
#define BUFFER_CLASS_C	(1 << 19)
#define BUFFER_CLASS_D	(2 << 19)
#define BUFFER_CLASS_E	(3 << 19)

#define PULL_DISABLE	(1 << 16)
#define PIN_PULLUP	(1 << 17)
#define PIN_PULLDOWN	(0 << 17)

#define KEYSTONE_IOPAD_OFFSET(pa, offset) (((pa) & 0xffff) - (offset))

#define K2G_CORE_IOPAD(pa) KEYSTONE_IOPAD_OFFSET((pa), 0x1000)

#endif
 value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/uapi/asm-generic/int-l64.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/uapi/asm-generic/int-l64.h?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/asm-generic/int-l64.h?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/uapi/asm-generic/int-l64.h?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/uapi/asm-generic/int-l64.h'>
<input type='hidden' name='id' value='a0a28644c1cf191e514dd64bf438e69c178b8440'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/uapi?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>uapi</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/uapi/asm-generic?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>asm-generic</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/uapi/asm-generic/int-l64.h?id=a0a28644c1cf191e514dd64bf438e69c178b8440'>int-l64.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/uapi/asm-generic/int-l64.h?id=a0a28644c1cf191e514dd64bf438e69c178b8440&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>