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 10 11#define KEY_IS_MODIFIER(key) ((key) >= KEY_FIRST_MODIFIER) 12 13struct kbc_tegra { 14 u32 control; 15 u32 interrupt; 16 u32 row_cfg[4]; 17 u32 col_cfg[3]; 18 u32 timeout_dly; 19 u32 init_dly; 20 u32 rpt_dly; 21 u32 kp_ent[2]; 22 u32 row_mask[16]; 23}; 24 25#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 26extern int overwrite_console(void); 27#define OVERWRITE_CONSOLE overwrite_console() 28#else 29#define OVERWRITE_CONSOLE 0 30#endif /* CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE */ 31 32#endif /* __include_tegra_kbc_h__ */ 33