i2c: bcm2835: Add support for dynamic clock
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 26 Sep 2016 23:00:08 +0000 (01:00 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:45:16 +0000 (15:45 +0100)
commit9d208cf27c5116f70e98557e8a394f0c172c82db
tree679ceca35d9667dc2c20ddba8f64c9c64e95ceb4
parent4f5f32e0188112467dd1d88e49853c3f5592b2ec
i2c: bcm2835: Add support for dynamic clock

Support a dynamic clock by reading the frequency and setting the
divisor in the transfer function instead of during probe.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Martin Sperl <kernel@martin.sperl.org>
drivers/i2c/busses/i2c-bcm2835.c