diff options
author | David Hendricks <dhendrix@chromium.org> | 2012-07-31 18:12:11 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-01 19:17:19 -0700 |
commit | 985ff40583c98aa151fedf0a2abd5d73da90b0b4 (patch) | |
tree | ec288e339b6c20b7cf66a3dfc108a923ad877109 | |
parent | 903dc92ec1ae25a3807ad4ec673b412917e4cf28 (diff) | |
download | chrome-ec-985ff40583c98aa151fedf0a2abd5d73da90b0b4.tar.gz |
snow: add keypress noise suppression
This was implemented for Daisy a long time ago, but left out on Snow
due to some confusion.
GPIO remapping is already handled because PD1 and PD0 (which is used
for ENTERING_RW) are remapped together. So all we need here is the
board_keyboard_suppress_noise() function definition which gets
called from the keyboard scanning code whenever a change is detected.
BUG=none
TEST=Verified using a scope that CODEC_INT line is driven
when a key is pressed (15us pulse)
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Change-Id: Ifd358eb89a9547c4f4b9536b8922c93d2c3b77a0
Reviewed-on: https://gerrit.chromium.org/gerrit/28989
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | board/snow/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/snow/board.c b/board/snow/board.c index d32150329a..8359f25c7e 100644 --- a/board/snow/board.c +++ b/board/snow/board.c @@ -144,6 +144,13 @@ void board_interrupt_host(int active) gpio_set_level(GPIO_EC_INT, !active); } +void board_keyboard_suppress_noise(void) +{ + /* notify audio codec of keypress for noise suppression */ + gpio_set_level(GPIO_CODEC_INT, 0); + gpio_set_level(GPIO_CODEC_INT, 1); +} + enum { /* Time between requesting bus and deciding that we have it */ BUS_SLEW_DELAY_US = 10, |