diff options
author | David Hendricks <dhendrix@chromium.org> | 2012-02-07 14:30:03 -0800 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2012-02-15 18:20:28 -0800 |
commit | 05f0eb3005934c1d6593066555e175d96148953f (patch) | |
tree | 497561547560be70e16e185db24d8e32d2a89d7e /board/discovery | |
parent | 30fc5d72849de5fc791db06b432969096f76469c (diff) | |
download | chrome-ec-05f0eb3005934c1d6593066555e175d96148953f.tar.gz |
Make i8042 independent of host <--> KBC bus.
This CL attempts to abstract underlying bus from i8042 code. Nearly
all i8042 logic is isolated already. This patch is intended to allow
us to use i8042 logic for processing keys and commands on boards which
do not necessarily use LPC as the host <--> KBC bus interface.
This CL does the following:
- Define KBC bus <--> host (kbc_host_bus) on a per-board basis in
board.c.
- Add generic wrappers in place of lpc_keyboard_* in i8042 code.
- Define the behavior of generic wrappers in EC-specific keyboard
sources. If board.c specifies LPC, then send via LPC.
TODO: This needs to be tested on real hardware...
Signed-off-by: David Hendricks <dhendrix@chromium.org>
BUG=None
TEST=Locally compiled for Link, BDS and Discovery.
Change-Id: I9cabd514bd44fd6b508c26994eccc3011eedbc0f
Diffstat (limited to 'board/discovery')
-rw-r--r-- | board/discovery/board.c | 1 | ||||
-rw-r--r-- | board/discovery/board.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/board/discovery/board.c b/board/discovery/board.c index e516dc4278..4b4cd676ca 100644 --- a/board/discovery/board.c +++ b/board/discovery/board.c @@ -5,7 +5,6 @@ /* STM32L Discovery board-specific configuration */ #include "board.h" -#include "common.h" #include "gpio.h" #include "registers.h" #include "util.h" diff --git a/board/discovery/board.h b/board/discovery/board.h index 72fca4690a..69cc237d62 100644 --- a/board/discovery/board.h +++ b/board/discovery/board.h @@ -16,6 +16,9 @@ #define USB_CHARGE_PORT_COUNT 0 +/* Host connects to keyboard controller module via I2C */ +#define HOST_KB_BUS_I2C + /* GPIO signal list */ enum gpio_signal { /* Inputs with interrupt handlers are first for efficiency */ |