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>
This commit is contained in:
Ravi Kumar Bokka 2021-07-17 00:01:19 +05:30 committed by Shelley Chen
parent 7028c0ec4a
commit bd0984d2a1
4 changed files with 4 additions and 6 deletions

View File

@ -2,7 +2,7 @@
#include <bootblock_common.h>
#include "board.h"
#include <soc/qupv3_spi.h>
#include <soc/qupv3_spi_common.h>
void bootblock_mainboard_init(void)
{

View File

@ -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 */

View File

@ -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