i2c: fix i2c clock-frequency inaccurate in fast-mode
authorJian Hu <jian.hu@amlogic.com>
Thu, 3 May 2018 03:01:00 +0000 (11:01 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 10 May 2018 08:17:46 +0000 (01:17 -0700)
commit0339f4996646c2f9e4f9db402a279ceb8b13750d
tree7d7ab5c123393eb65478bfa520b2e9e8636b6d47
parent615a0322da5b004706aaf751014ca91c2413e72b
i2c: fix i2c clock-frequency inaccurate in fast-mode

PD#165568: i2c: fix i2c clock-frequency in fast-mode

1.When i2c controller used in U-boot,may affect i2c
  controller in Kernel,should clear i2c registers.
2.Add i2c default clock-frequency for axg.
3.Add i2c clock-frequency debug sysfs, for i2c-0:
  /sys/class/i2c-adapter/i2c-0/device/speed
4.change clock high/low = 1:2 to 2:3

Change-Id: I44ca7ecd8e2e7aec978f3240ff837121ae478ba7
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
arch/arm64/boot/dts/amlogic/mesonaxg.dtsi
drivers/amlogic/i2c/i2c-meson-master.c