soc/qualcomm/common/i2c: Add support for I2C common driver

copy existing I2C driver from /soc/qualcomm/sc7180 to common folder.

This implements i2c driver for qualcomm chipsets

BUG=b:182963902
TEST=Validated on qualcomm sc7180 and sc7280 development board

Signed-off-by: Rajesh Patil <rajpat@codeaurora.org>
Change-Id: I16e6fc2c1c24b9814d1803bffd5cfbb657201cfb
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55952
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
This commit is contained in:
Rajesh Patil 2021-06-16 14:13:00 +05:30 committed by Shelley Chen
parent f33d2e4b1d
commit 555c2d67a4
4 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,8 @@
#include <soc/display/mdssreg.h>
#include <soc/qupv3_config_common.h>
#include <soc/qup_se_handlers_common.h>
#include <soc/qupv3_i2c.h>
#include <soc/qupv3_i2c_common.h>
#include <soc/qcom_qup_se.h>
#include <soc/usb.h>
#include <types.h>

View File

@ -8,9 +8,9 @@
#include <lib.h>
#include <soc/clock.h>
#include <soc/qcom_qup_se.h>
#include <soc/qupv3_config_common.h>
#include <soc/qup_se_handlers_common.h>
#include <soc/qupv3_i2c.h>
#include <soc/qupv3_config_common.h>
#include <soc/qupv3_i2c_common.h>
#include <stdint.h>
static void i2c_clk_configure(unsigned int bus, enum i2c_speed speed)

View File

@ -8,7 +8,7 @@ all-y += ../common/timer.c
all-y += ../common/gpio.c
all-y += ../common/spi.c
all-$(CONFIG_SC7180_QSPI) += ../common/qspi.c
all-y += qupv3_i2c.c
all-y += ../common/qupv3_i2c.c
all-y += qupv3_spi.c
all-y += clock.c
all-y += ../common/clock.c