summaryrefslogtreecommitdiff
path: root/utils/hwstub/hwstub_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/hwstub_protocol.h')
-rw-r--r--utils/hwstub/hwstub_protocol.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/hwstub/hwstub_protocol.h b/utils/hwstub/hwstub_protocol.h
index 67945cd5c0..fa692abab5 100644
--- a/utils/hwstub/hwstub_protocol.h
+++ b/utils/hwstub/hwstub_protocol.h
@@ -56,6 +56,7 @@
56#define HWSTUB_DT_LAYOUT 0x42 /* mandatory */ 56#define HWSTUB_DT_LAYOUT 0x42 /* mandatory */
57#define HWSTUB_DT_TARGET 0x43 /* mandatory */ 57#define HWSTUB_DT_TARGET 0x43 /* mandatory */
58#define HWSTUB_DT_STMP 0x44 /* optional */ 58#define HWSTUB_DT_STMP 0x44 /* optional */
59#define HWSTUB_DT_PP 0x45 /* optional */
59 60
60struct hwstub_version_desc_t 61struct hwstub_version_desc_t
61{ 62{
@@ -92,6 +93,15 @@ struct hwstub_stmp_desc_t
92 uint8_t bPackage; /* 0=169BGA for example */ 93 uint8_t bPackage; /* 0=169BGA for example */
93} __attribute__((packed)); 94} __attribute__((packed));
94 95
96struct hwstub_pp_desc_t
97{
98 uint8_t bLength;
99 uint8_t bDescriptorType;
100 /* Chip ID and revision */
101 uint16_t wChipID; /* 0x5002 for PP5002 for example */
102 uint8_t bRevision[2]; /* 'B1' for B1 for example */
103} __attribute__((packed));
104
95#define HWSTUB_TARGET_UNK ('U' | 'N' << 8 | 'K' << 16 | ' ' << 24) 105#define HWSTUB_TARGET_UNK ('U' | 'N' << 8 | 'K' << 16 | ' ' << 24)
96#define HWSTUB_TARGET_STMP ('S' | 'T' << 8 | 'M' << 16 | 'P' << 24) 106#define HWSTUB_TARGET_STMP ('S' | 'T' << 8 | 'M' << 16 | 'P' << 24)
97#define HWSTUB_TARGET_RK27 ('R' | 'K' << 8 | '2' << 16 | '7' << 24) 107#define HWSTUB_TARGET_RK27 ('R' | 'K' << 8 | '2' << 16 | '7' << 24)