aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i3c/master/mipi-i3c-hci/dct.h
diff options
context:
space:
mode:
authorNicolas Pitre <npitre@baylibre.com>2020-11-11 17:05:10 -0500
committerBoris Brezillon <boris.brezillon@collabora.com>2020-11-23 10:22:18 +0100
commit9ad9a52cce2828d932ae9495181e3d6414f72c07 (patch)
treede9c176d1ca2b90159a7f26755d3b507288a8b27 /drivers/i3c/master/mipi-i3c-hci/dct.h
parentdt-bindings: i3c: MIPI I3C Host Controller Interface (diff)
downloadlinux-dev-9ad9a52cce2828d932ae9495181e3d6414f72c07.tar.xz
linux-dev-9ad9a52cce2828d932ae9495181e3d6414f72c07.zip
i3c/master: introduce the mipi-i3c-hci driver
This adds basic support for hardware implementing the MIPI I3C HCI specification. This driver is currently limited by the capabilities of the I3C subsystem, meaning things like scheduled commands, auto-commands and NCM mode are not yet supported. This supports version 1.0 of the MIPI I3C HCI spec, as well as the imminent release of version 1.1. Support for draft version 2.0 of the spec is also largely included with the caveat that future adjustments to this code are likely as the spec is still a work in progress. This is also lightly tested as actual hardware is still very scarce, even for HCI v1.0. Hence the EXPERIMENTAL tag. Further contributions to this driver are expected once vendor implementations and new I3C devices become available. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://lore.kernel.org/linux-i3c/20201111220510.3622216-3-nico@fluxnic.net
Diffstat (limited to 'drivers/i3c/master/mipi-i3c-hci/dct.h')
-rw-r--r--drivers/i3c/master/mipi-i3c-hci/dct.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/i3c/master/mipi-i3c-hci/dct.h b/drivers/i3c/master/mipi-i3c-hci/dct.h
new file mode 100644
index 000000000000..1028e0b40d89
--- /dev/null
+++ b/drivers/i3c/master/mipi-i3c-hci/dct.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright (c) 2020, MIPI Alliance, Inc.
+ *
+ * Author: Nicolas Pitre <npitre@baylibre.com>
+ *
+ * Common DCT related stuff
+ */
+
+#ifndef DCT_H
+#define DCT_H
+
+void i3c_hci_dct_get_val(struct i3c_hci *hci, unsigned int dct_idx,
+ u64 *pid, unsigned int *dcr, unsigned int *bcr);
+
+#endif