@@ -136,49 +136,6 @@ static const u8 bl_exit[] = { 0x00, 0xff, 0xa5, 0x00, 0x01, 0x02, 0x03, 0x04,
136
136
0x05 , 0x06 , 0x07 };
137
137
138
138
139
- /* for byte read/write command */
140
- #define CMD_RESET 0
141
- #define CMD_POWER_MODE 1
142
- #define CMD_DEV_STATUS 2
143
- #define CMD_REPORT_MAX_BASELINE 3
144
- #define CMD_REPORT_MIN_BASELINE 4
145
- #define SMBUS_BYTE_CMD (cmd ) (((cmd) & 0x3f) << 1)
146
- #define CYAPA_SMBUS_RESET SMBUS_BYTE_CMD(CMD_RESET)
147
- #define CYAPA_SMBUS_POWER_MODE SMBUS_BYTE_CMD(CMD_POWER_MODE)
148
- #define CYAPA_SMBUS_DEV_STATUS SMBUS_BYTE_CMD(CMD_DEV_STATUS)
149
- #define CYAPA_SMBUS_MAX_BASELINE SMBUS_BYTE_CMD(CMD_REPORT_MAX_BASELINE)
150
- #define CYAPA_SMBUS_MIN_BASELINE SMBUS_BYTE_CMD(CMD_REPORT_MIN_BASELINE)
151
-
152
- /* for group registers read/write command */
153
- #define REG_GROUP_DATA 0
154
- #define REG_GROUP_CMD 2
155
- #define REG_GROUP_QUERY 3
156
- #define SMBUS_GROUP_CMD (grp ) (0x80 | (((grp) & 0x07) << 3))
157
- #define CYAPA_SMBUS_GROUP_DATA SMBUS_GROUP_CMD(REG_GROUP_DATA)
158
- #define CYAPA_SMBUS_GROUP_CMD SMBUS_GROUP_CMD(REG_GROUP_CMD)
159
- #define CYAPA_SMBUS_GROUP_QUERY SMBUS_GROUP_CMD(REG_GROUP_QUERY)
160
-
161
- /* for register block read/write command */
162
- #define CMD_BL_STATUS 0
163
- #define CMD_BL_HEAD 1
164
- #define CMD_BL_CMD 2
165
- #define CMD_BL_DATA 3
166
- #define CMD_BL_ALL 4
167
- #define CMD_BLK_PRODUCT_ID 5
168
- #define CMD_BLK_HEAD 6
169
- #define SMBUS_BLOCK_CMD (cmd ) (0xc0 | (((cmd) & 0x1f) << 1))
170
-
171
- /* register block read/write command in bootloader mode */
172
- #define CYAPA_SMBUS_BL_STATUS SMBUS_BLOCK_CMD(CMD_BL_STATUS)
173
- #define CYAPA_SMBUS_BL_HEAD SMBUS_BLOCK_CMD(CMD_BL_HEAD)
174
- #define CYAPA_SMBUS_BL_CMD SMBUS_BLOCK_CMD(CMD_BL_CMD)
175
- #define CYAPA_SMBUS_BL_DATA SMBUS_BLOCK_CMD(CMD_BL_DATA)
176
- #define CYAPA_SMBUS_BL_ALL SMBUS_BLOCK_CMD(CMD_BL_ALL)
177
-
178
- /* register block read/write command in operational mode */
179
- #define CYAPA_SMBUS_BLK_PRODUCT_ID SMBUS_BLOCK_CMD(CMD_BLK_PRODUCT_ID)
180
- #define CYAPA_SMBUS_BLK_HEAD SMBUS_BLOCK_CMD(CMD_BLK_HEAD)
181
-
182
139
/* for byte read/write command */
183
140
#define CMD_RESET 0
184
141
#define CMD_POWER_MODE 1
0 commit comments