You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
9 years ago
..
muxes
i2c: Add a mux for GPIO-based I2C bus arbitration
9 years ago
Kconfig
drivers: hierarchize drivers Kconfig menu
9 years ago
Makefile
cros_ec: Support the LDO access method used by spring
9 years ago
adi_i2c.c
dm: i2c: Make API accessible even without CONFIG_DM
9 years ago
cros_ec_ldo.c
cros_ec: Support the LDO access method used by spring
9 years ago
cros_ec_tunnel.c
dm: cros_ec: Convert the I2C tunnel code to use driver model
9 years ago
davinci_i2c.c
i2c, davinci: convert driver to new mutlibus/mutliadapter framework
10 years ago
davinci_i2c.h
i2c, davinci: convert driver to new mutlibus/mutliadapter framework
10 years ago
designware_i2c.c
i2c: designware: Convert driver to multibus/multiadapter framework
10 years ago
designware_i2c.h
…
fsl_i2c.c
linux/kernel.h: sync min, max, min3, max3 macros with Linux
10 years ago
fti2c010.c
…
fti2c010.h
…
i2c-emul-uclass.c
dm: i2c: Add I2C emulation driver for sandbox
10 years ago
i2c-gpio.c
dm: i2c-gpio: Remove redundant dm_gpio_set_value() call
9 years ago
i2c-uclass-compat.c
dm: i2c: Add compatibility functions for dm_i2c_reg_read/write()
9 years ago
i2c-uclass.c
dm: i2c: Add a function to transfer messages
9 years ago
i2c-uniphier-f.c
ARM: UniPhier: replace <asm/io.h> with <linux/io.h>
9 years ago
i2c-uniphier.c
ARM: UniPhier: replace <asm/io.h> with <linux/io.h>
9 years ago
i2c_core.c
i2c: Correct spelling error
10 years ago
ihs_i2c.c
cosmetic: replace MIN, MAX with min, max
10 years ago
kona_i2c.c
dm: i2c: Make API accessible even without CONFIG_DM
9 years ago
lpc32xx_i2c.c
i2c: lpc32xx: correct sanity check for requested bus speed
9 years ago
mv_i2c.c
mv_i2c: fix warnings on 64-bit builds
9 years ago
mv_i2c.h
…
mvtwsi.c
i2c: mvtwsi: Support for up to 4 different controllers
9 years ago
mxc_i2c.c
i2c: fix vf610 support
9 years ago
mxs_i2c.c
i2c: mxs: Add support for I2C 1 on i.MX28
10 years ago
omap24xx_i2c.c
cosmetic: change Author/MAINTAINER Name from Petermaier to Schmelzer
9 years ago
omap24xx_i2c.h
…
pca9564_i2c.c
…
ppc4xx_i2c.c
ppc4xx: Handle i2c stuck on combined xfer
10 years ago
rcar_i2c.c
i2c: rcar_i2c: Fix order of restart and clear status
10 years ago
s3c24x0_i2c.c
exynos: i2c: Tidy up the driver model code
9 years ago
s3c24x0_i2c.h
…
sandbox_i2c.c
sandbox: i2c: search child emul dev and check its uclass id
9 years ago
sh_i2c.c
i2c: sh_i2c: bugfix: i2c probe command does not work
10 years ago
sh_sh7734_i2c.c
…
soft_i2c.c
…
tegra_i2c.c
i2c: tegra: Build warning fixes for 64-bit
9 years ago
tsi108_i2c.c
…
u8500_i2c.c
…
u8500_i2c.h
…
zynq_i2c.c
i2c: zynq: Fixed compilation errors when using DEBUG
10 years ago