tegra-kbc.h 743 B

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