diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2019-05-11 15:12:49 -0500 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-05-11 15:12:49 -0500 |
commit | 9e80202352dd49bdd9e67b8b906d86f058431505 (patch) | |
tree | 5673c17aad6e3833da8c4ff21b5a11f666ec9fbe /src/roms/u-boot/board/intercontrol/digsy_mtc/cmd_mtc.h | |
download | hqemu-master.zip hqemu-master.tar.gz |
Diffstat (limited to 'src/roms/u-boot/board/intercontrol/digsy_mtc/cmd_mtc.h')
-rw-r--r-- | src/roms/u-boot/board/intercontrol/digsy_mtc/cmd_mtc.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/roms/u-boot/board/intercontrol/digsy_mtc/cmd_mtc.h b/src/roms/u-boot/board/intercontrol/digsy_mtc/cmd_mtc.h new file mode 100644 index 0000000..4493433 --- /dev/null +++ b/src/roms/u-boot/board/intercontrol/digsy_mtc/cmd_mtc.h @@ -0,0 +1,45 @@ +/* + * (C) Copyright 2009 + * Werner Pfister <Pfister_Werner@intercontrol.de> + * + * (C) Copyright 2009 Semihalf, Grzegorz Bernacki + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef CMD_MTC_H +#define CMD_MTC_H + +#define CMD_WD_PARA 0x02 +#define CMD_WD_WDSTATE 0x04 +#define CMD_FW_VERSION 0x10 +#define CMD_GET_VIM 0x30 +#define CMD_SET_LED 0x40 + +typedef struct { + u8 cmd; + u8 sys_in; + u8 cmd_val0; + u8 cmd_val1; + u8 cmd_val2; + u8 user_out; + u8 cks; + u8 dummy1; + u8 dummy2; +} tx_msp_cmd; + +typedef struct { + u8 input; + u8 state; + u8 ack2; + u8 ack3; + u8 ack0; + u8 ack1; + u8 ack; + u8 dummy; + u8 cks; +} rx_msp_cmd; + +#define MTC_TRANSFER_SIZE (sizeof(tx_msp_cmd) * 8) + +#endif |