i2c: fix different frequency duty according to I2C-BUS spec
authorJian Hu <jian.hu@amlogic.com>
Wed, 11 Apr 2018 08:11:55 +0000 (16:11 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 12 Apr 2018 06:53:13 +0000 (22:53 -0800)
commitd363baac44753bb63de5ddee4b9b745cc88116e5
treeebe9e7a8934901cc924cbafdf2010267837ab47c
parentd4ca0fee7e1231791eb786d1bdc04dba0ca755ac
i2c: fix different frequency duty according to I2C-BUS spec

PD#164083: i2c: fix duty of different frequency

1.General usage
Frequency   Duty    mode

100k     1:2     standard
400k     1:3     fast
3400k     1:3     high

2.Frequency below 100k can be configured as fast mode

Change-Id: Ib6254efabfbd614c014c98bbeb3d07c35cf7b904
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
drivers/amlogic/i2c/i2c-meson-master.c