linux_dsm_epyc7002/drivers/i2c/busses
Lothar Waßmann 869c6a3ede i2c: mxs: fix broken timing calculation
The timing calculation is rather bogus and gives extremely wrong
results for higher frequencies (on an i.MX28). E.g. instead of 400 kHz
I measured 770 kHz.

Implement a calculation that adheres to the I2C spec and gives exact
results for I2C frequencies from 12.56 kHz to 960 kHz.

Also the bus_free and leadin parameters are programmed according to
the I2C spec for standard and fast mode.

This was tested on a Ka-Ro TX28 module with a DS1339, TSC2007, PCA9554
and SGTL5000 client.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Marek Vasut <marex@denx.de>
[wsa: patch fixes whitespace issue, too]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2013-08-16 18:09:05 +02:00
..
i2c-acorn.c
i2c-ali15x3.c
i2c-ali1535.c
i2c-ali1563.c
i2c-amd756-s4882.c i2c: Ignore return value of i2c_del_adapter() 2013-04-02 07:06:03 +02:00
i2c-amd756.c
i2c-amd8111.c
i2c-at91.c i2c: at91: convert to dma_request_slave_channel_compat() 2013-04-16 11:10:14 +02:00
i2c-au1550.c
i2c-bcm2835.c
i2c-bfin-twi.c i2c: i2c-bfin-twi: add CONFIG_PM_SLEEP to suspend/resume functions 2013-08-15 12:27:11 +02:00
i2c-cbus-gpio.c i2c: Ignore return value of i2c_del_adapter() 2013-04-02 07:06:03 +02:00
i2c-cpm.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-07-04 14:02:09 -07:00
i2c-davinci.c i2c: davinci: remove useless mach/hardware include 2013-08-15 14:28:50 +02:00
i2c-designware-core.c i2c: designware: Manually set RESTART bit between messages 2013-08-07 16:58:07 +02:00
i2c-designware-core.h i2c-designware: make SDA hold time configurable 2013-06-26 16:02:06 +02:00
i2c-designware-pcidrv.c i2c: designware-pci: drop superfluous {get|put}_device 2013-04-19 20:22:10 +02:00
i2c-designware-platdrv.c i2c: designware: add CONFIG_PM_SLEEP to suspend/resume functions 2013-08-15 12:24:23 +02:00
i2c-diolan-u2c.c
i2c-eg20t.c
i2c-elektor.c
i2c-gpio.c i2c: gpio: Add support for deferred probing 2013-03-27 08:51:50 +01:00
i2c-highlander.c
i2c-hydra.c
i2c-i801.c i2c: i801: SMBus patch for Intel Coleto Creek DeviceIDs 2013-06-20 21:32:27 +02:00
i2c-ibm_iic.c i2c: use platform_{get,set}_drvdata() 2013-06-12 20:39:07 +02:00
i2c-ibm_iic.h
i2c-imx.c i2c: imx: Add Vybrid VF610 I2C controller support 2013-08-15 16:14:50 +02:00
i2c-iop3xx.c i2c: iop3xxx: fix build failure after waitqueue changes 2013-07-01 07:48:58 +02:00
i2c-iop3xx.h
i2c-isch.c
i2c-ismt.c i2c: ismt: remove duplicate const 2013-03-24 10:30:56 +01:00
i2c-kempld.c i2c: Fix Kontron PLD prescaler calculation 2013-08-05 10:31:18 +02:00
i2c-mpc.c i2c: i2c-mpc: add CONFIG_PM_SLEEP to suspend/resume functions 2013-08-15 12:23:57 +02:00
i2c-mv64xxx.c i2c: mv64xxx: Set bus frequency to 100kHz if clock-frequency is not provided 2013-06-25 23:43:37 +02:00
i2c-mxs.c i2c: mxs: fix broken timing calculation 2013-08-16 18:09:05 +02:00
i2c-nforce2-s4985.c i2c: Ignore return value of i2c_del_adapter() 2013-04-02 07:06:03 +02:00
i2c-nforce2.c
i2c-nomadik.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-07-04 14:02:09 -07:00
i2c-nuc900.c
i2c-ocores.c drivers/i2c/busses/i2c-ocores.c: simplify use of devm_ioremap_resource 2013-08-15 16:18:10 +02:00
i2c-octeon.c i2c: octeon: use HZ in timeout value 2013-04-23 18:29:11 +02:00
i2c-omap.c drivers/i2c/busses: don't use devm_pinctrl_get_select_default() in probe 2013-08-07 17:36:30 +02:00
i2c-parport-light.c
i2c-parport.c
i2c-parport.h
i2c-pasemi.c
i2c-pca-isa.c
i2c-pca-platform.c
i2c-piix4.c i2c: piix4: Add support for secondary SMBus on AMD SB800 and AMD FCH chipsets 2013-08-15 15:17:31 +02:00
i2c-pmcmsp.c
i2c-pnx.c i2c: pnx: add CONFIG_PM_SLEEP to suspend/resume functions 2013-08-15 12:26:04 +02:00
i2c-powermac.c i2c: Ignore return value of i2c_del_adapter() 2013-04-02 07:06:03 +02:00
i2c-puv3.c i2c: puv3: add CONFIG_PM_SLEEP to suspend function 2013-08-15 12:26:31 +02:00
i2c-pxa-pci.c
i2c-pxa.c i2c: pxa: enable high speed mode for i2c bus 2013-08-07 16:58:07 +02:00
i2c-rcar.c drivers/i2c/busses: don't check resource with devm_ioremap_resource 2013-06-12 20:39:06 +02:00
i2c-s3c2410.c drivers/i2c/busses: don't check resource with devm_ioremap_resource 2013-05-18 11:55:32 +02:00
i2c-s6000.c
i2c-s6000.h
i2c-scmi.c
i2c-sh7760.c
i2c-sh_mobile.c
i2c-sibyte.c
i2c-simtec.c
i2c-sirf.c drivers/i2c/busses: don't check resource with devm_ioremap_resource 2013-05-18 11:55:32 +02:00
i2c-sis96x.c
i2c-sis630.c
i2c-sis5595.c
i2c-stu300.c i2c: stu300: add CONFIG_PM_SLEEP to suspend/resume functions 2013-08-15 12:25:28 +02:00
i2c-taos-evm.c
i2c-tegra.c drivers/i2c/busses: don't check resource with devm_ioremap_resource 2013-05-18 11:55:32 +02:00
i2c-tiny-usb.c
i2c-versatile.c
i2c-via.c
i2c-viapro.c
i2c-viperboard.c i2c: Ignore return value of i2c_del_adapter() 2013-04-02 07:06:03 +02:00
i2c-wmt.c i2c: vt8500: Add support for I2C bus on Wondermedia SoCs 2013-06-15 13:37:08 +02:00
i2c-xiic.c i2c: xiic: must always write 16-bit words to TX_FIFO 2013-04-23 20:18:34 +02:00
i2c-xlr.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-02-26 09:41:53 -08:00
Kconfig i2c: davinci: Allow i2c driver available for keystone platforms 2013-08-15 14:29:34 +02:00
Makefile i2c: Kontron PLD i2c bus driver 2013-07-01 08:35:44 +02:00
scx200_acb.c
scx200_i2c.c