summaryrefslogtreecommitdiff
path: root/board/glados/board.c
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-10-14 18:16:27 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-15 21:40:33 -0700
commitccadc846510cef54ba17561cbddb5c7379a9941f (patch)
treeb9265658d9f03b8285f156ad4a77cae8476f3cbe /board/glados/board.c
parent12209d26ed528c3ceebb5cf94d6d5fadf330fa02 (diff)
downloadchrome-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