[PATCH-v5 5/5] i2c: pxa: Add ILCR (tLow & tHigh) configuration support
vaibhav.hiremath at linaro.org
Wed Aug 5 01:51:26 PDT 2015
On Tuesday 21 July 2015 06:11 PM, Vaibhav Hiremath wrote:
> With addition of PXA910 family of devices, the TWSI module supports
> SCL clock adjustment using ILCR register.
> This patch enables the control and configuration of ICLR through DT
> SCLK high time (tHigh), for standard/fast/high speed mode
> SCLK low time (tLow), for standard/fast/high speed mode
> Note that in case of standard and fast mod, the tLow and tHigh counters
> are same, and software will use tLow value.
> Also, brought up devm_clk_get() fn above i2c_pxa_probe_dt(), as it
> uses clk rate for timing calculations.
> Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath at linaro.org>
> Signed-off-by: Jett.Zhou <jtzhou at marvell.com>
> Signed-off-by: Yi Zhang <yizhang at marvell.com>
> drivers/i2c/busses/i2c-pxa.c | 69 ++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 63 insertions(+), 6 deletions(-)
It would be helpful if you can test this patch-series and confirm that
it now fixes the NULL pointer deference issue.
More information about the linux-arm-kernel