diff options
author | Dave Parker <dparker@chromium.org> | 2014-03-26 16:26:35 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-27 02:34:41 +0000 |
commit | d4078514b258c536541cd5f17a613d330ece0e91 (patch) | |
tree | eda00141ca0fb5cbefa4987bed8e761ce1c0d7fa | |
parent | 9ec89e5ceb5b749311428fbfb58737a7aaadfc5b (diff) | |
download | chrome-ec-d4078514b258c536541cd5f17a613d330ece0e91.tar.gz |
BQ24715: Disable 40kHz audio frequency limit option
The audio frequency limit function requires additional power
to keep the FET swtiching frequency above 40kHz. On some
systems it is also reported to cause additional audible noise.
Although the power-on setting is to disable this feature, we
need to ensure the charge controller options are updated from
running earlier versions of the driver.
BUG=chrome-os-partner:27063
BRANCH=None
TEST=Verify bit 10 is not set in the charger option register
using the 'charger' EC console command.
Change-Id: Ifab16ef3b53e25b5e82225040e7ab315d8760986
Signed-off-by: Dave Parker <dparker@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/191770
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
-rw-r--r-- | driver/charger/bq24715.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/charger/bq24715.c b/driver/charger/bq24715.c index e3a9b25797..c1f8a9156c 100644 --- a/driver/charger/bq24715.c +++ b/driver/charger/bq24715.c @@ -176,8 +176,8 @@ int charger_post_init(void) if (rv) return rv; - /* Don't be noisy */ - option |= OPT_AUDIO_FREQ_40KHZ_LIMIT; + /* Ensure 40KHz audio frequency limit is not set */ + option &= ~OPT_AUDIO_FREQ_LIMIT_MASK; /* Always monitor adapter current (40X multiplier). */ option |= OPT_FIX_IOUT_ALWAYS; |