]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: meson: use full 12 bits for clock divider
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 25 Mar 2017 13:07:57 +0000 (14:07 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 30 Mar 2017 15:30:54 +0000 (17:30 +0200)
commitf75c0e11359e25219e8895100dd27605c55d98fd
tree5fca4ee97d8fec8a83e33f3f95228c8e4ed43fa2
parente6e675c318c5f71ae30b35f6237a1b6a5cc77a31
i2c: meson: use full 12 bits for clock divider

The clock divider has 12 bits, splitted into a 10 bit field and a
2 bit field. The extra 2 bits aren't used currently.

Change this to use the full 12 bits and warn if the requested
frequency is too low.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-meson.c