diff options
author | David Hendricks <dhendrix@chromium.org> | 2013-03-12 18:35:25 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-13 12:12:01 -0700 |
commit | cdfbe88e9264cf6eb9de687f83cf0dd0b908f76e (patch) | |
tree | 0f9214269382fc09da6a9b1c50648cfde81db1a4 /board | |
parent | 2823e7e13208a70c7c1b0fce56758f17049a1658 (diff) | |
download | chrome-ec-cdfbe88e9264cf6eb9de687f83cf0dd0b908f76e.tar.gz |
stm32: list keyboard output ports on a per-board basis
This CL moves the keyboard port listing to board.h for each mainboard
to reduce board-specific clutter in keyboard_scan.c. Since the info
is now exposed outside of keyboard_scan.c, a more descriptive name was
chosen.
Note: GPIO_D does not need to be included in this list for any current
platform.
BUG=none
BRANCH=none
Test=tested on Snow by pressing all number and letter keys
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Change-Id: I1ce924a41cafae557467997ecba9c5abeed86211
Reviewed-on: https://gerrit.chromium.org/gerrit/45284
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/daisy/board.h | 1 | ||||
-rw-r--r-- | board/snow/board.h | 1 | ||||
-rw-r--r-- | board/spring/board.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/board/daisy/board.h b/board/daisy/board.h index 3194a2de70..0f7f2169a4 100644 --- a/board/daisy/board.h +++ b/board/daisy/board.h @@ -38,6 +38,7 @@ /* EC drives 13 outputs to the keyboard matrix and reads 8 inputs/interrupts */ #define KB_INPUTS 8 #define KB_OUTPUTS 13 +#define KB_OUT_PORT_LIST GPIO_B, GPIO_C /* Charging */ #define CONFIG_SMART_BATTERY diff --git a/board/snow/board.h b/board/snow/board.h index 27837b665a..f7f3683322 100644 --- a/board/snow/board.h +++ b/board/snow/board.h @@ -41,6 +41,7 @@ /* EC drives 13 outputs to the keyboard matrix and reads 8 inputs/interrupts */ #define KB_INPUTS 8 #define KB_OUTPUTS 13 +#define KB_OUT_PORT_LIST GPIO_B, GPIO_C /* Charging */ #define CONFIG_SMART_BATTERY diff --git a/board/spring/board.h b/board/spring/board.h index cc1b675141..1132f759c5 100644 --- a/board/spring/board.h +++ b/board/spring/board.h @@ -44,6 +44,7 @@ /* EC drives 13 outputs to the keyboard matrix and reads 8 inputs/interrupts */ #define KB_INPUTS 8 #define KB_OUTPUTS 13 +#define KB_OUT_PORT_LIST GPIO_B, GPIO_C /* Charging */ #define CONFIG_SMART_BATTERY |