diff options
author | John Crossley <crossley@lionsemi.corp-partner.google.com> | 2021-01-15 16:35:47 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-23 22:45:50 +0000 |
commit | b19b32127dc87ffd4272cd48aa534a8215c50e9a (patch) | |
tree | 8f8696cee1e1b11502769a869979bd7358015132 /driver/ln9310.c | |
parent | 6d79f593f5077700dd773bd3b54405d9b9a123db (diff) | |
download | chrome-ec-b19b32127dc87ffd4272cd48aa534a8215c50e9a.tar.gz |
ln9310: set min. freq above audible range
Set the minimum switching frequency to 25 kHz to
avoid the audible frequency band.
BRANCH=Trogdor
BUG=b:180886790
TEST=In IDLE mode check that LN9310 switching freq.
stays above the audible frequency range.
Change-Id: Ia609fd002e34b6bc684385ceb8405fe84a447ae7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633442
Reviewed-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Tested-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'driver/ln9310.c')
-rw-r--r-- | driver/ln9310.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/ln9310.c b/driver/ln9310.c index 48992f73b8..b63f992416 100644 --- a/driver/ln9310.c +++ b/driver/ln9310.c @@ -304,6 +304,11 @@ void ln9310_init(void) LN9310_LB_MIN_FREQ_EN, LN9310_LB_MIN_FREQ_EN); + /* Set minimum switching frequency to 25 kHz */ + field_update8(LN9310_REG_SPARE_0, + LN9310_SPARE_0_LB_MIN_FREQ_SEL_MASK, + LN9310_SPARE_0_LB_MIN_FREQ_SEL_ON); + usleep(LN9310_CDC_DELAY); CPRINTS("LN9310 OP_MODE Update method: Self-sync"); |