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 | |
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')
-rw-r--r-- | src/soc/qualcomm/common/include/soc/qupv3_spi_common.h (renamed from src/soc/qualcomm/sc7180/include/soc/qupv3_spi.h) | 0 | ||||
-rw-r--r-- | src/soc/qualcomm/common/qupv3_spi.c (renamed from src/soc/qualcomm/sc7180/qupv3_spi.c) | 5 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7180/Makefile.inc | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/soc/qualcomm/sc7180/include/soc/qupv3_spi.h b/src/soc/qualcomm/common/include/soc/qupv3_spi_common.h index 87c81fad62..87c81fad62 100644 --- a/src/soc/qualcomm/sc7180/include/soc/qupv3_spi.h +++ b/src/soc/qualcomm/common/include/soc/qupv3_spi_common.h diff --git a/src/soc/qualcomm/sc7180/qupv3_spi.c b/src/soc/qualcomm/common/qupv3_spi.c index 9cf05ab7b2..c69ecf9eaa 100644 --- a/src/soc/qualcomm/sc7180/qupv3_spi.c +++ b/src/soc/qualcomm/common/qupv3_spi.c @@ -1,14 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <assert.h> -#include <console/console.h> #include <lib.h> #include <soc/clock.h> #include <soc/gpio.h> #include <soc/qcom_qup_se.h> -#include <soc/qupv3_config_common.h> #include <soc/qup_se_handlers_common.h> -#include <soc/qupv3_spi.h> +#include <soc/qupv3_config_common.h> +#include <soc/qupv3_spi_common.h> #include <types.h> /* SE_SPI_LOOPBACK register fields */ diff --git a/src/soc/qualcomm/sc7180/Makefile.inc b/src/soc/qualcomm/sc7180/Makefile.inc index 0d7e4d62bd..8fb8b48e10 100644 --- a/src/soc/qualcomm/sc7180/Makefile.inc +++ b/src/soc/qualcomm/sc7180/Makefile.inc @@ -9,7 +9,7 @@ all-y += ../common/gpio.c all-y += ../common/spi.c all-$(CONFIG_SC7180_QSPI) += ../common/qspi.c all-y += ../common/qupv3_i2c.c -all-y += qupv3_spi.c +all-y += ../common/qupv3_spi.c all-y += clock.c all-y += ../common/clock.c all-y += qcom_qup_se.c @@ -20,7 +20,6 @@ all-y += ../common/qup_se_handler.c bootblock-y += bootblock.c bootblock-y += mmu.c bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart_bitbang.c - ################################################################################ verstage-$(CONFIG_DRIVERS_UART) += qupv3_uart.c |