stm32: Move KB_INPUTS to board.h

This moves KB_INPUTS from keyboard_scan.c to board.h where KB_OUTPUTS
is #defined. Although we use the same 13x8 keyboard matrix on all
platforms, KB_OUTPUTS is defined on a per-board basis due to its usage
in keyboard_test.

BUG=none
BRANCH=none
TEST=locally compiled

Change-Id: I0d66705d2959c7824b96cc8aae55368eca39a21a
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/44970
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
David Hendricks
2013-03-08 14:33:47 -08:00
committed by ChromeBot
parent 0631409955
commit f5f30a22c6
4 changed files with 6 additions and 5 deletions

View File

@@ -35,7 +35,8 @@
#define USB_CHARGE_PORT_COUNT 0
/* EC drives 13 outputs to keyboard matrix */
/* EC drives 13 outputs to the keyboard matrix and reads 8 inputs/interrupts */
#define KB_INPUTS 8
#define KB_OUTPUTS 13
/* Charging */

View File

@@ -38,7 +38,8 @@
#define USB_CHARGE_PORT_COUNT 0
/* EC drives 13 outputs to keyboard matrix */
/* EC drives 13 outputs to the keyboard matrix and reads 8 inputs/interrupts */
#define KB_INPUTS 8
#define KB_OUTPUTS 13
/* Charging */

View File

@@ -41,7 +41,8 @@
/* By default, enable all console messages except keyboard */
#define CC_DEFAULT (CC_ALL & ~CC_MASK(CC_KEYSCAN))
/* EC drives 13 outputs to keyboard matrix */
/* EC drives 13 outputs to the keyboard matrix and reads 8 inputs/interrupts */
#define KB_INPUTS 8
#define KB_OUTPUTS 13
/* Charging */

View File

@@ -32,8 +32,6 @@ enum {
/* 0 ~ 12 for the corresponding output */
};
#define KB_INPUTS 8
/* Mask of external interrupts on input lines */
static unsigned int irq_mask;