1643ad899SSimon Glass /*
2643ad899SSimon Glass  * This header provides constants for most input bindings.
3643ad899SSimon Glass  *
4643ad899SSimon Glass  * Most input bindings include key code, matrix key code format.
5643ad899SSimon Glass  * In most cases, key code and matrix key code format uses
6643ad899SSimon Glass  * the standard values/macro defined in this header.
7643ad899SSimon Glass  */
8643ad899SSimon Glass 
9643ad899SSimon Glass #ifndef _DT_BINDINGS_INPUT_INPUT_H
10643ad899SSimon Glass #define _DT_BINDINGS_INPUT_INPUT_H
11643ad899SSimon Glass 
12*4bb656e9SHans de Goede #include "linux-event-codes.h"
13643ad899SSimon Glass 
14643ad899SSimon Glass #define MATRIX_KEY(row, col, code)	\
15643ad899SSimon Glass 	((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
16643ad899SSimon Glass 
17643ad899SSimon Glass #endif /* _DT_BINDINGS_INPUT_INPUT_H */
18