/*
 * This header provides constants specific to DM814X pinctrl bindings.
 */

#ifndef _DT_BINDINGS_PINCTRL_DM814X_H
#define _DT_BINDINGS_PINCTRL_DM814X_H

#include <dt-bindings/pinctrl/omap.h>

#undef INPUT_EN
#undef PULL_UP
#undef PULL_ENA

/*
 * Note that dm814x silicon revision 2.1 and older require input enabled
 * (bit 18 set) for all 3.3V I/Os to avoid cumulative hardware damage. For
 * more info, see errata advisory 2.1.87. We leave bit 18 out of
 * function-mask in dm814x.h and rely on the bootloader for it.
 */
#define INPUT_EN		(1 << 18)
#define PULL_UP			(1 << 17)
#define PULL_DISABLE		(1 << 16)

/* update macro depending on INPUT_EN and PULL_ENA */
#undef PIN_OUTPUT
#undef PIN_OUTPUT_PULLUP
#undef PIN_OUTPUT_PULLDOWN
#undef PIN_INPUT
#undef PIN_INPUT_PULLUP
#undef PIN_INPUT_PULLDOWN

#define PIN_OUTPUT		(PULL_DISABLE)
#define PIN_OUTPUT_PULLUP	(PULL_UP)
#define PIN_OUTPUT_PULLDOWN	0
#define PIN_INPUT		(INPUT_EN | PULL_DISABLE)
#define PIN_INPUT_PULLUP	(INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN	(INPUT_EN)

/* undef non-existing modes */
#undef PIN_OFF_NONE
#undef PIN_OFF_OUTPUT_HIGH
#undef PIN_OFF_OUTPUT_LOW
#undef PIN_OFF_INPUT_PULLUP
#undef PIN_OFF_INPUT_PULLDOWN
#undef PIN_OFF_WAKEUPENABLE

#endif

ck'>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=473153291b8a131c86787fd9b076a529573e2c19'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/soc/arc'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/soc/arc?id=473153291b8a131c86787fd9b076a529573e2c19'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/soc/arc?id=473153291b8a131c86787fd9b076a529573e2c19'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/soc/arc?id=473153291b8a131c86787fd9b076a529573e2c19'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/soc/arc'>
<input type='hidden' name='id' value='473153291b8a131c86787fd9b076a529573e2c19'/><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=473153291b8a131c86787fd9b076a529573e2c19'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=473153291b8a131c86787fd9b076a529573e2c19'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/soc?id=473153291b8a131c86787fd9b076a529573e2c19'>soc</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/soc/arc?id=473153291b8a131c86787fd9b076a529573e2c19'>arc</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/soc/arc?id=473153291b8a131c86787fd9b076a529573e2c19&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>