summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/common/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/qualcomm/common/include')
-rw-r--r--src/soc/qualcomm/common/include/soc/qupv3_spi_common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/soc/qualcomm/common/include/soc/qupv3_spi_common.h b/src/soc/qualcomm/common/include/soc/qupv3_spi_common.h
new file mode 100644
index 0000000000..87c81fad62
--- /dev/null
+++ b/src/soc/qualcomm/common/include/soc/qupv3_spi_common.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef __SPI_QUP_QCOM_HEADER___
+#define __SPI_QUP_QCOM_HEADER___
+
+#include <spi-generic.h>
+
+int qup_spi_claim_bus(const struct spi_slave *slave);
+int qup_spi_xfer(const struct spi_slave *slave, const void *dout,
+ size_t bytes_out, void *din, size_t bytes_in);
+void qup_spi_release_bus(const struct spi_slave *slave);
+void qup_spi_init(unsigned int bus, unsigned int speed_hz);
+
+#endif /*__SPI_QUP_QCOM_HEADER___*/