diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-09-12 15:45:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-17 09:50:41 +0200 |
commit | ec9a3703fbd2b80c48c7dce92f97c40fe39f4929 (patch) | |
tree | 90c672896cfc930517c65e54905d0aecc25dd0bf /include/ratp_bb.h | |
parent | de6d3aeec9a590c4eb53a953c8758f183ffeba1e (diff) | |
download | barebox-ec9a3703fbd2b80c48c7dce92f97c40fe39f4929.tar.gz barebox-ec9a3703fbd2b80c48c7dce92f97c40fe39f4929.tar.xz |
ratp: implement support for GPIO commands
Introduce three new RATP commands that allow getting and setting GPIO
values as well as configuring the direction of the GPIO pins.
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/ratp_bb.h')
-rw-r--r-- | include/ratp_bb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ratp_bb.h b/include/ratp_bb.h index 32b8040b6d..b6699979b6 100644 --- a/include/ratp_bb.h +++ b/include/ratp_bb.h @@ -21,6 +21,12 @@ #define BB_RATP_TYPE_I2C_READ_RETURN 16 #define BB_RATP_TYPE_I2C_WRITE 17 #define BB_RATP_TYPE_I2C_WRITE_RETURN 18 +#define BB_RATP_TYPE_GPIO_GET_VALUE 19 +#define BB_RATP_TYPE_GPIO_GET_VALUE_RETURN 20 +#define BB_RATP_TYPE_GPIO_SET_VALUE 21 +#define BB_RATP_TYPE_GPIO_SET_VALUE_RETURN 22 +#define BB_RATP_TYPE_GPIO_SET_DIRECTION 23 +#define BB_RATP_TYPE_GPIO_SET_DIRECTION_RETURN 24 struct ratp_bb { uint16_t type; |