summaryrefslogtreecommitdiff
path: root/board/daisy/board.c
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-05-15 11:40:20 -0700
committerDavid Hendricks <dhendrix@chromium.org>2012-05-15 16:47:43 -0700
commitdd839d851aa6369a81423da9d59762950f21c592 (patch)
tree5b133759a0a42d6e1d02ee864a95a7a94a6ea33d /board/daisy/board.c
parentdb803efd3f947bcbd5bb1caa8949f7c4d3e59b0f (diff)
downloadchrome-ec-dd839d851aa6369a81423da9d59762950f21c592.tar.gz
daisy/snow: seperate EC_INT and CODEC_INT handling
This patch splits apart EC_INT and CODEC_INT handling for two reasons: 1. Allow other tasks to interrupt the AP without triggering the keyboard noise suppression. 2. Allow more work to be done after a keystroke is detected but before interrupting the AP. This is intended to prevent latency issues with the noise suppression. Also, Snow does not currently have CODEC_INT hooked up, so it does not need the extra function for suppressing keystroke noise. BUG=chrome-os-partner:9594 TEST=tested on daisy (keys still respond), locally compiled for snow. Change-Id: I73bd42bb7263005b11724337162646092292556f Signed-off-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'board/daisy/board.c')
-rw-r--r--board/daisy/board.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/board/daisy/board.c b/board/daisy/board.c
index 21ccdada28..56dbef212f 100644
--- a/board/daisy/board.c
+++ b/board/daisy/board.c
@@ -135,13 +135,16 @@ void configure_board(void)
gpio_set_level(GPIO_EC_INT, 1);
}
-void board_keyboard_scan_ready(void)
+void board_interrupt_host(void)
{
- /* notify audio codec of keypress for noise suppression */
- gpio_set_level(GPIO_CODEC_INT, 0);
- gpio_set_level(GPIO_CODEC_INT, 1);
-
/* interrupt host by toggling EC_INT */
gpio_set_level(GPIO_EC_INT, 0);
gpio_set_level(GPIO_EC_INT, 1);
}
+
+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);
+}