1 /* 2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef _KEY_H_ 8 #define _KEY_H_ 9 10 enum key_state { 11 KEY_PRESS_NONE, 12 KEY_PRESS_UP, 13 KEY_PRESS_DOWN, 14 }; 15 16 struct dm_key_ops { 17 int type; 18 const char *name; 19 int (*read)(struct udevice *dev); 20 }; 21 22 int key_read(struct udevice *dev); 23 int key_type(struct udevice *dev); 24 const char *key_label(struct udevice *dev); 25 26 #endif 27