u-boot-brain/drivers
Vladimir Zapolskiy ea16c6a13b i2c: lpc32xx: correct sanity check for requested bus speed
LPC32xx has 3 I2C bus controllers, 2 of them are used as generic ones
and their parent clock is HCLK and CLK_HI/CLK_LO registers are 10 bit
wide. This means that if HCLK is 104MHz, then minimal configurable I2C
clock speed is about 51KHz.

Only USB OTG I2C bus controller CLK registers are 8 bit wide, thus in
assumption that peripheral clock is 13MHz it allows to set the minimal
bus speed about 25.5KHz.

Check for negative half clock value is removed since it is always false.

The change fixes the following problem for I2C busses 0 and 1:

  => i2c dev 0
  Setting bus to 0
  => i2c speed 100000
  Setting bus speed to 100000 Hz
  Failure changing bus speed (-22)

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Sylvain Lemieux <slemieux@tycoint.com>
2015-08-18 13:45:59 -04:00
..
bios_emulator biosemu: Do not free vga_info->BIOSImage when it is 0xc0000 2015-04-29 18:51:49 -06:00
block arm: mvebu: add Armada XP SATA support 2015-07-23 08:30:58 +02:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
clk dm: test: Add tests for the clk uclass 2015-07-21 17:39:30 -06:00
core drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
cpu x86: Move MP initialization codes into a common place 2015-07-14 18:03:16 -06:00
crypto Correct License and Copyright information on few files 2015-08-12 20:47:46 -04:00
ddr arm: mvebu: Add complete SDRAM ECC scrubbing 2015-08-17 18:49:33 +02:00
demo drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
dfu dfu: fix 64-bit compile warnings 2015-07-27 15:53:52 -07:00
dma dma: lpc32xx: add DMA driver 2015-08-18 13:45:55 -04:00
fpga arm: socfpga: Fix FPGA bitstream programming routine 2015-08-08 14:14:04 +02:00
gpio sunxi: gpio: Add support for the gpio banks which are part of the R-io cluster 2015-08-14 08:37:38 +02:00
hwmon dtt: add ds620 support 2015-04-10 14:23:23 +02:00
i2c i2c: lpc32xx: correct sanity check for requested bus speed 2015-08-18 13:45:59 -04:00
input input: twl4030: Keypad scan and input 2015-08-12 20:47:36 -04:00
led drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
mmc Merge branch 'master' of git://git.denx.de/u-boot-mmc 2015-08-13 07:20:44 -04:00
mtd nand: lpc32xx: add ECC layout for small page NAND 2015-08-18 13:45:56 -04:00
net arm: mvebu: Enable NAND controller on MVEBU SoC's 2015-08-17 18:49:02 +02:00
pci pci: mvebu: Add PCIe driver 2015-08-17 18:49:43 +02:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
power Add missing part of: "power: pmic: pfuze100 support driver model" 2015-08-14 16:53:02 +02:00
pwm pwm: imx: Remove unreachable code 2015-05-26 14:13:12 +02:00
qe driver/qe: use strncpy instead of strcpy 2015-08-03 12:06:36 -07:00
ram dm: test: Add a test for the ram uclass 2015-07-21 17:39:32 -06:00
rtc drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
serial dra7xx: Add dra72_evm_defconfig using CONFIG_DM 2015-08-12 20:48:08 -04:00
soc soc: keystone_serdes: generalize configuration mechanism 2014-10-23 11:27:28 -04:00
sound drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
spi Merge branch 'master' of git://git.denx.de/u-boot-spi 2015-08-18 08:25:24 -04:00
thermal thermal: imx_thermal: fix busywait if IMX6 temp <0C 2015-07-10 10:15:19 +02:00
tpm tpm: Support using driver model with I2C 2015-05-14 18:49:33 -06:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb usb: lpc32xx: add host USB driver 2015-08-18 13:45:57 -04:00
video Merge git://git.denx.de/u-boot-x86 2015-08-14 16:27:16 -04:00
watchdog watchdog/imx_watchdog: do not set WCR_WDW 2015-03-25 16:52:16 +01:00
Kconfig dm: Add a clock uclass 2015-07-21 17:39:29 -06:00
Makefile dm: Add a clock uclass 2015-07-21 17:39:29 -06:00