]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
include: dt-bindings: mfd: add atmel flexcom include file
authorEugen Hristev <eugen.hristev@microchip.com>
Fri, 27 Aug 2021 10:44:11 +0000 (13:44 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 21 Sep 2021 07:08:24 +0000 (10:08 +0300)
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>
MAINTAINERS
include/dt-bindings/mfd/atmel-flexcom.h [new file with mode: 0644]

index 5e8693f8772a8589e3ea3099ff51c93bb09a04e6..687c72dcd837ef83e651401fdc9cc918a177020d 100644 (file)
@@ -312,6 +312,7 @@ F:  arch/arm/mach-at91/
 F:     board/atmel/
 F:     drivers/cpu/at91_cpu.c
 F:     drivers/misc/microchip_flexcom.c
+F:     include/dt-bindings/mfd/atmel-flexcom.h
 F:     drivers/timer/mchp-pit64b-timer.c
 
 ARM NEXELL S5P4418
diff --git a/include/dt-bindings/mfd/atmel-flexcom.h b/include/dt-bindings/mfd/atmel-flexcom.h
new file mode 100644 (file)
index 0000000..4e2fc32
--- /dev/null
@@ -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__ */