diff options
author | Ravi Kumar Bokka <rbokka@codeaurora.org> | 2021-07-17 00:01:19 +0530 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2021-09-21 19:40:39 +0000 |
commit | bd0984d2a11bc8ba0de28d40e53591156a8fc9ac (patch) | |
tree | 6ec879d46402f8af81b20ccde0ffce259d411852 /src/soc/qualcomm/common/include | |
parent | 7028c0ec4aadfd436d87faf76540ace0d16a2925 (diff) |
soc/qualcomm/common/spi: Add support for SPI common driver
This implements qup spi driver for qualcomm chipsets
Rename header file names for trogdor to prevent breakage.
BUG=b:182963902
TEST=Validated on qualcomm sc7180 and sc7280 development board.
Signed-off-by: Rajesh Patil <rajpat@codeaurora.org>
Change-Id: I2f2b25b6661fcd518f70383da0c7788c5269c97b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55953
Reviewed-by: Shelley Chen <shchen@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/qualcomm/common/include')
-rw-r--r-- | src/soc/qualcomm/common/include/soc/qupv3_spi_common.h | 14 |
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___*/ |