i2c: aspeed: add proper support fo 24xx clock params
authorBrendan Higgins <brendanhiggins@google.com>
Fri, 28 Jul 2017 20:45:58 +0000 (13:45 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Aug 2017 20:05:56 +0000 (22:05 +0200)
commit87b59ff8d1d9d809c014a4e20bc043064b6e0047
tree02f92269f0b7c6dae795671f954c09e3c4cbe044
parent94d3b651c0d9ab0023443d8038ef4f4f72c473ec
i2c: aspeed: add proper support fo 24xx clock params

24xx BMCs have larger clock divider granularity which can cause problems
when trying to set them as 25xx clock dividers; this adds clock setting
code specific to 24xx.

This also fixes a potential issue where clock dividers were rounded down
instead of up.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-aspeed.c