i2c: bcm2835: Add support for dynamic clock
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 3 Oct 2016 20:06:14 +0000 (22:06 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 7 Nov 2016 00:48:32 +0000 (01:48 +0100)
commit9446f62e8e18057fceb179d947508df2f7253b26
tree9e1832f61f4b9e8db1cb10a5f487ee0088ce53d4
parente13e19e12f66401ce1e21ab491715835852babe7
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>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-bcm2835.c