Skip to content

Commit 286a617

Browse files
committed
i2c: qcom-geni: add support for I2C Master Hub variant
Bugzilla: https://bugzilla.redhat.com/2164495 commit cacd964 Author: Neil Armstrong <neil.armstrong@linaro.org> Date: Tue Nov 29 15:47:06 2022 +0100 i2c: qcom-geni: add support for I2C Master Hub variant The I2C Master Hub is a stripped down version of the GENI Serial Engine QUP Wrapper Controller but only supporting I2C serial engines without DMA support. Add the I2C Master Hub serial engine compatible along the specific requirements in a new desc struct passed through the device match data. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Andrew Halaney <ahalaney@redhat.com> Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
1 parent f2d8bb8 commit 286a617

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/i2c/busses/i2c-qcom-geni.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,16 @@ static const struct dev_pm_ops geni_i2c_pm_ops = {
10251025
NULL)
10261026
};
10271027

1028+
const struct geni_i2c_desc i2c_master_hub = {
1029+
.has_core_clk = true,
1030+
.icc_ddr = NULL,
1031+
.no_dma_support = true,
1032+
.tx_fifo_depth = 16,
1033+
};
1034+
10281035
static const struct of_device_id geni_i2c_dt_match[] = {
10291036
{ .compatible = "qcom,geni-i2c" },
1037+
{ .compatible = "qcom,geni-i2c-master-hub", .data = &i2c_master_hub },
10301038
{}
10311039
};
10321040
MODULE_DEVICE_TABLE(of, geni_i2c_dt_match);

0 commit comments

Comments
 (0)