i2c: add i2c auto test and fix i2c clk error.
authorXuhua Zhang <xuhua.zhang@amlogic.com>
Mon, 26 Jun 2017 07:44:23 +0000 (15:44 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 1 Aug 2017 06:31:42 +0000 (23:31 -0700)
commitb63832bae3821ddf143ddbcc7e637a30344de9e4
tree5e44579de2791ad1677f8b3cbc9f1b8f971e322f
parent6041ed31a0ba5c8791796fbf768b64801bc037ad
i2c: add i2c auto test and fix i2c clk error.

PD#146534: add i2c auto test and fix i2c clk error.

1. add i2c auto test function form 50KHZ to 3.4MHZ.
2. fix i2c clk distortion when the clk go beyond 1MHZ.
3. fix i2c clk distortion when the clk less than 100KHZ.
4. fit for i2c T_low/T_higt time standard.
5. reduce i2c error log.

Change-Id: I2bb5598684848478aa18349b87eaac5bcc44065d
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
drivers/amlogic/i2c/aml_master.c
drivers/amlogic/i2c/aml_master.h
drivers/amlogic/i2c/aml_slave.c
include/linux/amlogic/i2c-amlogic.h