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:
parent
f33d2e4b1d
commit
555c2d67a4
|
@ -15,7 +15,8 @@
|
||||||
#include <soc/display/mdssreg.h>
|
#include <soc/display/mdssreg.h>
|
||||||
#include <soc/qupv3_config_common.h>
|
#include <soc/qupv3_config_common.h>
|
||||||
#include <soc/qup_se_handlers_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 <soc/usb.h>
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
#include <lib.h>
|
#include <lib.h>
|
||||||
#include <soc/clock.h>
|
#include <soc/clock.h>
|
||||||
#include <soc/qcom_qup_se.h>
|
#include <soc/qcom_qup_se.h>
|
||||||
#include <soc/qupv3_config_common.h>
|
|
||||||
#include <soc/qup_se_handlers_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>
|
#include <stdint.h>
|
||||||
|
|
||||||
static void i2c_clk_configure(unsigned int bus, enum i2c_speed speed)
|
static void i2c_clk_configure(unsigned int bus, enum i2c_speed speed)
|
|
@ -8,7 +8,7 @@ all-y += ../common/timer.c
|
||||||
all-y += ../common/gpio.c
|
all-y += ../common/gpio.c
|
||||||
all-y += ../common/spi.c
|
all-y += ../common/spi.c
|
||||||
all-$(CONFIG_SC7180_QSPI) += ../common/qspi.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 += qupv3_spi.c
|
||||||
all-y += clock.c
|
all-y += clock.c
|
||||||
all-y += ../common/clock.c
|
all-y += ../common/clock.c
|
||||||
|
|
Loading…
Reference in New Issue