~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/blackfin/mach-bf548/include/mach/bf54x_keys.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

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