diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2020-10-16 16:16:30 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-28 11:48:32 -0400 |
commit | 0ad40b2463053947da052e74be72938fa5e4735e (patch) | |
tree | c91cb3fa5a71532fa079bd9d8aaca83a8fecf32b /include/dt-bindings | |
parent | 39dd7c1d6bc94e6381ef7418edd8206cae24377f (diff) | |
download | u-boot-0ad40b2463053947da052e74be72938fa5e4735e.tar.gz u-boot-0ad40b2463053947da052e74be72938fa5e4735e.tar.xz u-boot-0ad40b2463053947da052e74be72938fa5e4735e.zip |
drivers: Add a new framework for multiplexer devices
Add a new subsystem that handles multiplexer controllers. The API is the
same as in Linux.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
[trini: Update some error calls to use different functions or pass
correct arguments]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r-- | include/dt-bindings/mux/mux.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/dt-bindings/mux/mux.h b/include/dt-bindings/mux/mux.h new file mode 100644 index 0000000000..042719218d --- /dev/null +++ b/include/dt-bindings/mux/mux.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * This header provides constants for most Multiplexer bindings. + * + * Most Multiplexer bindings specify an idle state. In most cases, the + * the multiplexer can be left as is when idle, and in some cases it can + * disconnect the input/output and leave the multiplexer in a high + * impedance state. + */ + +#ifndef _DT_BINDINGS_MUX_MUX_H +#define _DT_BINDINGS_MUX_MUX_H + +#define MUX_IDLE_AS_IS (-1) +#define MUX_IDLE_DISCONNECT (-2) + +#endif |