mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 12:33:41 +00:00
4bb656e9dd
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>
17 lines
499 B
C
17 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 */
|