Skip to content

Commit f4aba01

Browse files
superna9999wsakernel
authored andcommitted
soc: qcom: geni-se: add support for I2C Master Hub wrapper 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 clock list for the I2C Master Hub variant to a new desc struct then pass it through the I2C Master Hub compatible match data. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 63fc9af commit f4aba01

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/soc/qcom/qcom-geni-se.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,18 @@ static const struct geni_se_desc qup_desc = {
942942
.num_clks = ARRAY_SIZE(qup_clks),
943943
};
944944

945+
static const char * const i2c_master_hub_clks[] = {
946+
"s-ahb",
947+
};
948+
949+
static const struct geni_se_desc i2c_master_hub_desc = {
950+
.clks = i2c_master_hub_clks,
951+
.num_clks = ARRAY_SIZE(i2c_master_hub_clks),
952+
};
953+
945954
static const struct of_device_id geni_se_dt_match[] = {
946955
{ .compatible = "qcom,geni-se-qup", .data = &qup_desc },
956+
{ .compatible = "qcom,geni-se-i2c-master-hub", .data = &i2c_master_hub_desc },
947957
{}
948958
};
949959
MODULE_DEVICE_TABLE(of, geni_se_dt_match);

0 commit comments

Comments
 (0)