mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
![Hans de Goede](/assets/img/avatar_default.png)
This commit syncs the dt-bindings/input/* headers with the kernel (v4.5) and adds dt-bindings/clock/sun4i-a10-pll2.h, both are necessary for newer sunxi dts files to build. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
18 lines
499 B
C
18 lines
499 B
C
/*
|
|
* This header provides constants for most input bindings.
|
|
*
|
|
* Most input bindings include key code, matrix key code format.
|
|
* In most cases, key code and matrix key code format uses
|
|
* the standard values/macro defined in this header.
|
|
*/
|
|
|
|
#ifndef _DT_BINDINGS_INPUT_INPUT_H
|
|
#define _DT_BINDINGS_INPUT_INPUT_H
|
|
|
|
#include "linux-event-codes.h"
|
|
|
|
#define MATRIX_KEY(row, col, code) \
|
|
((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
|
|
|
|
#endif /* _DT_BINDINGS_INPUT_INPUT_H */
|