Rakesh Iyer | 382abbd | 2012-04-17 09:01:35 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __include_tegra_kbc_h__ |
| 8 | #define __include_tegra_kbc_h__ |
| 9 | |
Rakesh Iyer | 382abbd | 2012-04-17 09:01:35 +0000 | [diff] [blame] | 10 | #define KEY_IS_MODIFIER(key) ((key) >= KEY_FIRST_MODIFIER) |
| 11 | |
| 12 | struct kbc_tegra { |
| 13 | u32 control; |
| 14 | u32 interrupt; |
| 15 | u32 row_cfg[4]; |
| 16 | u32 col_cfg[3]; |
| 17 | u32 timeout_dly; |
| 18 | u32 init_dly; |
| 19 | u32 rpt_dly; |
| 20 | u32 kp_ent[2]; |
| 21 | u32 row_mask[16]; |
| 22 | }; |
| 23 | |
| 24 | #ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE |
| 25 | extern int overwrite_console(void); |
| 26 | #define OVERWRITE_CONSOLE overwrite_console() |
| 27 | #else |
| 28 | #define OVERWRITE_CONSOLE 0 |
| 29 | #endif /* CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE */ |
| 30 | |
| 31 | #endif /* __include_tegra_kbc_h__ */ |