bf54x_keys.h 465 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2007-2008 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later.
  5. */
  6. #ifndef _BFIN_KPAD_H
  7. #define _BFIN_KPAD_H
  8. struct bfin_kpad_platform_data {
  9. int rows;
  10. int cols;
  11. const unsigned int *keymap;
  12. unsigned short keymapsize;
  13. unsigned short repeat;
  14. u32 debounce_time; /* in ns */
  15. u32 coldrive_time; /* in ns */
  16. u32 keyup_test_interval; /* in ms */
  17. };
  18. #define KEYVAL(col, row, val) (((1 << col) << 24) | ((1 << row) << 16) | (val))
  19. #endif