summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2021-08-27 13:44:11 +0300
committerEugen Hristev <eugen.hristev@microchip.com>2021-09-21 10:08:24 +0300
commit0d58dafd6455f708e44a7d4ceee393c31220c725 (patch)
tree278810aa41aeeb49a17677ed1912428998bbc241 /include/dt-bindings
parent0c66872f99c61a4ffaea739ced75c8448f0e0d5d (diff)
downloadu-boot-0d58dafd6455f708e44a7d4ceee393c31220c725.tar.xz
include: dt-bindings: mfd: add atmel flexcom include file
Add dt-bindings include file for Atmel Flexcom hardware block. This file is copied from Linux kernel. It is used in devicetrees from Linux. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r--include/dt-bindings/mfd/atmel-flexcom.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dt-bindings/mfd/atmel-flexcom.h b/include/dt-bindings/mfd/atmel-flexcom.h
new file mode 100644
index 0000000000..4e2fc32363
--- /dev/null
+++ b/include/dt-bindings/mfd/atmel-flexcom.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * This header provides macros for Atmel Flexcom DT bindings.
+ *
+ * Copyright (C) 2015 Cyrille Pitchen <cyrille.pitchen@atmel.com>
+ */
+
+#ifndef __DT_BINDINGS_ATMEL_FLEXCOM_H__
+#define __DT_BINDINGS_ATMEL_FLEXCOM_H__
+
+#define ATMEL_FLEXCOM_MODE_USART 1
+#define ATMEL_FLEXCOM_MODE_SPI 2
+#define ATMEL_FLEXCOM_MODE_TWI 3
+
+#endif /* __DT_BINDINGS_ATMEL_FLEXCOM_H__ */