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>
Showing
- drivers/i2c/Makefile 3 additions, 0 deletionsdrivers/i2c/Makefile
- drivers/i2c/designware_i2c.c 17 additions, 89 deletionsdrivers/i2c/designware_i2c.c
- drivers/i2c/designware_i2c.h 35 additions, 0 deletionsdrivers/i2c/designware_i2c.h
- drivers/i2c/designware_i2c_pci.c 79 additions, 0 deletionsdrivers/i2c/designware_i2c_pci.c
Loading
Please register or sign in to comment