i2c: designware: Tidy up PCI support
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:41:40 +0000 (21:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:08 +0000 (11:44 +0800)
commit457df2337fc90431dc60b9b256ac1fdb8809f4cf
tree314e61460ac2a14e68d358d242f45dfa7505f090
parentd721001fd6d4162738578ba03c94c1198a5ef462
i2c: designware: Tidy up PCI support

This is hacked into the driver at present. It seems better to have it as
a separate driver that uses the base driver. Create a new file and put
the X86 code into it.

Actually the Baytrail settings should really come from the device tree.

Note that 'has_max_speed' is added as well. This is currently always false
but since only Baytrail provides the config, it does not affect operation
for other devices.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/i2c/Makefile
drivers/i2c/designware_i2c.c
drivers/i2c/designware_i2c.h
drivers/i2c/designware_i2c_pci.c [new file with mode: 0644]