diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-10-14 18:16:27 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-15 21:40:33 -0700 |
commit | ccadc846510cef54ba17561cbddb5c7379a9941f (patch) | |
tree | b9265658d9f03b8285f156ad4a77cae8476f3cbe /board/glados/board.c | |
parent | 12209d26ed528c3ceebb5cf94d6d5fadf330fa02 (diff) | |
download | chrome-ec-ccadc846510cef54ba17561cbddb5c7379a9941f.tar.gz |
mec1322: i2c: Simplify clk duty cycle calculations
Minimum high / low times are within 50% duty cyle bounds, except for
400KHz low time. With this in mind, simplify the duty cycle calculations
and fix off-by-one errors.
BUG=chrome-os-partner:46188
BRANCH=None
TEST=Verify i2c is still functional on Glados.
Change-Id: Ib08ebc06f334f65d2412222bb6c7a45f407b28c4
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/305577
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/glados/board.c')
0 files changed, 0 insertions, 0 deletions