Skip to content

Commit cacd964

Browse files
superna9999wsakernel
authored andcommitted
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 <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 14d02fb commit cacd964

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
@@ -1026,8 +1026,16 @@ static const struct dev_pm_ops geni_i2c_pm_ops = {
10261026
NULL)
10271027
};
10281028

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

0 commit comments

Comments
 (0)