mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
461 B
22 lines
461 B
3 years ago
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
||
|
/*
|
||
|
* This header provides constants for binding rpi,gpio-fsm.
|
||
|
*/
|
||
|
|
||
|
#ifndef _DT_BINDINGS_GPIO_FSM_H
|
||
|
#define _DT_BINDINGS_GPIO_FSM_H
|
||
|
|
||
|
#define GF_IN 0
|
||
|
#define GF_OUT 1
|
||
|
#define GF_SOFT 2
|
||
|
#define GF_DELAY 3
|
||
|
#define GF_SHUTDOWN 4
|
||
|
|
||
|
#define GF_IO(t, v) (((v) << 16) | ((t) & 0xffff))
|
||
|
|
||
|
#define GF_IP(x) GF_IO(GF_IN, (x))
|
||
|
#define GF_OP(x) GF_IO(GF_OUT, (x))
|
||
|
#define GF_SW(x) GF_IO(GF_SOFT, (x))
|
||
|
|
||
|
#endif
|