diff options
author | Rakesh Iyer <riyer@nvidia.com> | 2011-05-27 11:43:58 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-24 10:01:50 -0700 |
commit | da5f37d703c43a204e9d1801d1f0a3996b6599d9 (patch) | |
tree | 8cc09255b551908b2c53465906c529beeafa0b22 /include/configs/seaboard.h | |
parent | aaae7371e19af9a65ec0ad4af519cad542cc299d (diff) |
Tegra2: Enable keyboard for seaboard configs.
Enable keyboard for seaboard configs.
BUG=None
TEST=Keyboard works fine on Seaboard.
Change-Id: I15342ad5de36e0d059870c98b5a403719b93b48c
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/1729
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'include/configs/seaboard.h')
-rw-r--r-- | include/configs/seaboard.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h index d7ea8385cf8..b4a935d7146 100644 --- a/include/configs/seaboard.h +++ b/include/configs/seaboard.h @@ -41,6 +41,9 @@ #define CONFIG_TEGRA2_ENABLE_UARTD #define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE +#define CONFIG_TEGRA2_KEYBOARD 1 +#define CONFIG_KEYBOARD 1 + /* Seaboard SPI activity corrupts the first UART */ #define CONFIG_SPI_CORRUPTS_UART NV_PA_APB_UARTD_BASE #define CONFIG_SPI_CORRUPTS_UART_NR 3 @@ -81,6 +84,64 @@ /* Put USB1 in host mode */ #define CONFIG_TEGRA2_USB1_HOST +/* Keyboard scan matrix configuration */ +#define CONFIG_TEGRA2_KBC_PLAIN_KEYCODES { \ + 0, 0, 'w', 's', 'a', 'z', 0, KEY_FN, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + '5', '4', 'r', 'e', 'f', 'd', 'x', 0, \ + '7', '6', 't', 'h', 'g', 'v', 'c', ' ', \ + '9', '8', 'u', 'y', 'j', 'n', 'b', '\\', \ + '-', '0', 'o', 'i', 'l', 'k', ',', 'm', \ + 0, '=', ']', '\r', 0, 0, 0, 0, \ + 0, 0, 0, 0, KEY_SHIFT, KEY_SHIFT, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + '[', 'p', '\'', ';', '/', '.', 0, 0, \ + 0, 0, 0x08, '3', '2', 0, 0, 0, \ + 0, 0x7F, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 'q', 0, 0, '1', 0, \ + 0x1B, '`', 0, 0x09, 0, 0, 0, 0 \ +} + +#define CONFIG_TEGRA2_KBC_SHIFT_KEYCODES { \ + 0, 0, 'W', 'S', 'A', 'Z', 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + '%', '$', 'R', 'E', 'F', 'D', 'X', 0, \ + '&', '^', 'T', 'H', 'G', 'V', 'C', ' ', \ + '(', '*', 'U', 'Y', 'J', 'N', 'B', '|', \ + '_', ')', 'O', 'I', 'L', 'K', ',', 'M', \ + 0, '+', '}', '\r', 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + '{', 'P', '"', ':', '?', '>', 0, 0, \ + 0, 0, 0x08, '#', '@', 0, 0, 0, \ + 0, 0x7F, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 'Q', 0, 0, '!', 0, \ + 0x1B, '~', 0, 0x09, 0, 0, 0, 0 \ +} + +#define CONFIG_TEGRA2_KBC_FUNCTION_KEYCODES { \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + '7', 0, 0, 0, 0, 0, 0, 0, \ + '9', '8', '4', 0, '1', 0, 0, 0, \ + 0, '/', '6', '5', '3', '2', 0, '0', \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, '\'', 0, '-', '+', '.', 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, '?', 0, 0, 0 \ +} + #define CONFIG_EXTRA_ENV_SETTINGS \ CONFIG_EXTRA_ENV_SETTINGS_COMMON \ "board=seaboard\0" \ |