i2c: qcom-geni: add desc struct to prepare support for I2C Master Hub variant
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 29 Nov 2022 14:47:05 +0000 (15:47 +0100)
committerWolfram Sang <wsa@kernel.org>
Mon, 5 Dec 2022 08:30:21 +0000 (09:30 +0100)
commit14d02fbadb5dc1cdf66078ef8430dd1cd22bfd53
tree6e32e85f08cf50c4b8625ffc7dc1c92eb08fa27d
parentf4aba01db4801cc02d1fae4c8099984a23740996
i2c: qcom-geni: add desc struct to prepare 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.

Those I2C serial engines variants have some requirements:
- a separate "core" clock
- doesn't support DMA, thus no memory interconnect path
- fixed FIFO size not discoverable in the HW_PARAM_0 register

Add a desc struct specifying all those requirements which will be used in
a next change when adding the I2C Master Hub serial engine compatible.

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>
drivers/i2c/busses/i2c-qcom-geni.c