Hello, i'd like to configure I2C bus speed to 400kHz (kernel 2632rc8). Setting the fastmode-flag (FM) in makro I2C_INIT still gives me "init i2c -> 98kHz" at sytem boot. Anyone can help? Thanks alot
Set I2C bus frequency
Google <linux i2c speed> turns up this: http://comments.gmane.org/gmane.linux.ports.arm.kernel/90888 possibly gives some clues about what would need to be done. Tried throwing Samsung in the mix, but couldn't see anything. I'll ask around at work , but don't think anyone is driving I2C devices on the ARM (S3C2410) platform. Dave
You can change: arch/arm/plat-s3c/dev-i2c0.c (line 53). anyway not experienced in i2c but one i2c bus is connected EEPROM. Anyway not sure if there's second i2c (if yes you need to create device for it ;))
Hello, Thanks all. i now changed i2c-s3c2410.c There, clock is calculated, i passed 400k instead of 100k and it works. Maybe bus speed can be set earlier somewhere... Also important: msleep(1) functions are called there. Causing quite heavy delays as function is slow; replaced them with udelay(1000), works much faster now. Peter
Just passed this link: http://dir.gmane.org/gmane.linux.drivers.i2c but sounds like you got your solution!