From 6f13dc97cce254b6468516f921a2574c6f2d3206 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 29 Jun 2011 16:13:38 -0700 Subject: fdt: Add Kaen keyboard support This adds support for the Kaen keyboard, and fixes a few things wrong in the keyboard implementation. Note that there is a problem that the Shift key generates a DF code, which it should not. This doesn't happen on Seaboard and Aebl. BUG=chromium-os:17034 TEST=boot U-Boot; type plain, shift and fn keys and check that the correct output results Change-Id: I7ca8bef1dbaa96a6c09b5b2655232b42f130fb72 Reviewed-on: http://gerrit.chromium.org/gerrit/3414 Reviewed-by: Simon Glass Tested-by: Simon Glass --- include/tegra-kbc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/tegra-kbc.h') diff --git a/include/tegra-kbc.h b/include/tegra-kbc.h index ddc6379cc3..fd1fe3cdcb 100755 --- a/include/tegra-kbc.h +++ b/include/tegra-kbc.h @@ -27,10 +27,10 @@ enum { struct tegra_keyboard_config { /* keycode tables, one for each row/col position */ - int plain_keycode[KBC_KEY_COUNT]; /* when no Shift or Fn */ - int shift_keycode[KBC_KEY_COUNT]; /* Shift modifier key is pressed */ - int fn_keycode[KBC_KEY_COUNT]; /* Fn modifier key is pressed */ - int ctrl_keycode[KBC_KEY_COUNT]; /* Ctrl modifier key is pressed */ + u8 plain_keycode[KBC_KEY_COUNT]; /* when no Shift or Fn */ + u8 shift_keycode[KBC_KEY_COUNT]; /* Shift modifier key is pressed */ + u8 fn_keycode[KBC_KEY_COUNT]; /* Fn modifier key is pressed */ + u8 ctrl_keycode[KBC_KEY_COUNT]; /* Ctrl modifier key is pressed */ }; struct kbc_tegra { -- cgit v1.2.3