.. | .. |
---|
137 | 137 | .force_update = 0 |
---|
138 | 138 | }; |
---|
139 | 139 | |
---|
140 | | -int gt1x_update_prepare(char *filename); |
---|
| 140 | +// int gt1x_update_prepare(char *filename); |
---|
141 | 141 | int gt1x_check_firmware(void); |
---|
142 | 142 | u8 *gt1x_get_fw_data(u32 offset, int length); |
---|
143 | 143 | int gt1x_update_judge(void); |
---|
.. | .. |
---|
149 | 149 | int gt1x_check_subsystem_in_flash(struct fw_subsystem_info *subsystem); |
---|
150 | 150 | int gt1x_read_flash(u32 addr, int length); |
---|
151 | 151 | int gt1x_error_erase(void); |
---|
152 | | -void dump_to_file(u16 addr, int length, char *filepath); |
---|
| 152 | +// void dump_to_file(u16 addr, int length, char *filepath); |
---|
153 | 153 | |
---|
154 | 154 | int gt1x_update_firmware(void *filename); |
---|
155 | 155 | int gt1x_auto_update_proc(void *data); |
---|
156 | 156 | |
---|
157 | 157 | #if !GTP_HEADER_FW_UPDATE |
---|
158 | | -static int gt1x_search_update_files(void); |
---|
| 158 | +// static int gt1x_search_update_files(void); |
---|
159 | 159 | #endif |
---|
160 | 160 | |
---|
161 | 161 | int gt1x_hold_ss51_dsp(void); |
---|
.. | .. |
---|
165 | 165 | * @return: return 0 if success, otherwise return a negative number |
---|
166 | 166 | * which contains the error code. |
---|
167 | 167 | */ |
---|
| 168 | +#if 0 //close for GKI |
---|
168 | 169 | s32 gt1x_check_fs_mounted(char *path_name) |
---|
169 | 170 | { |
---|
170 | 171 | struct path root_path; |
---|
.. | .. |
---|
193 | 194 | path_put(&root_path); |
---|
194 | 195 | return err; |
---|
195 | 196 | } |
---|
| 197 | +#endif |
---|
196 | 198 | |
---|
197 | 199 | int gt1x_i2c_write_with_readback(u16 addr, u8 *buffer, int length) |
---|
198 | 200 | { |
---|
.. | .. |
---|
226 | 228 | |
---|
227 | 229 | int gt1x_auto_update_proc(void *data) |
---|
228 | 230 | { |
---|
229 | | - |
---|
| 231 | +/* auto update from /data/_goodix_update_.bin |
---|
| 232 | + * Does not meet the gki standard. |
---|
| 233 | + * close auto update function. |
---|
| 234 | + */ |
---|
| 235 | + GTP_ERROR("auto update failed! return\n"); |
---|
| 236 | + return 0; |
---|
| 237 | +#if 0 |
---|
230 | 238 | #if GTP_HEADER_FW_UPDATE |
---|
231 | 239 | GTP_INFO("Start auto update thread..."); |
---|
232 | 240 | gt1x_update_firmware(NULL); |
---|
.. | .. |
---|
263 | 271 | } |
---|
264 | 272 | #endif |
---|
265 | 273 | return 0; |
---|
| 274 | +#endif |
---|
266 | 275 | } |
---|
267 | | -#if !GTP_HEADER_FW_UPDATE |
---|
| 276 | +#if 0 //!GTP_HEADER_FW_UPDATE |
---|
268 | 277 | static int gt1x_search_update_files(void) |
---|
269 | 278 | { |
---|
270 | 279 | /*wait 10s(max) if fs is not ready*/ |
---|
.. | .. |
---|
338 | 347 | |
---|
339 | 348 | int gt1x_update_firmware(void *filename) |
---|
340 | 349 | { |
---|
| 350 | +/* |
---|
| 351 | + * gt1x update firmware doesn't meet gki |
---|
| 352 | + */ |
---|
| 353 | + GTP_ERROR("gt1x update firmware failed\n"); |
---|
| 354 | + return 0; |
---|
| 355 | +#if 0 |
---|
341 | 356 | int i = 0; |
---|
342 | 357 | int ret = 0; |
---|
343 | 358 | u8 *p; |
---|
.. | .. |
---|
461 | 476 | } |
---|
462 | 477 | GTP_INFO("Update firmware succeefully!"); |
---|
463 | 478 | return ret; |
---|
| 479 | +#endif |
---|
464 | 480 | } |
---|
465 | 481 | |
---|
| 482 | +#if 0 //close for GKI |
---|
466 | 483 | int gt1x_update_prepare(char *filename) |
---|
467 | 484 | { |
---|
468 | 485 | int ret = 0; |
---|
.. | .. |
---|
629 | 646 | |
---|
630 | 647 | return 0; |
---|
631 | 648 | } |
---|
| 649 | +#endif |
---|
632 | 650 | |
---|
633 | 651 | /** |
---|
634 | 652 | * @return: return a pointer pointed at the content of firmware |
---|
.. | .. |
---|
1303 | 1321 | gt1x_irq_enable(); |
---|
1304 | 1322 | } |
---|
1305 | 1323 | |
---|
| 1324 | +#if 0 //close for GKI |
---|
1306 | 1325 | void dump_to_file(u16 addr, int length, char *filepath) |
---|
1307 | 1326 | { |
---|
1308 | 1327 | struct file *flp = NULL; |
---|
.. | .. |
---|
1330 | 1349 | } |
---|
1331 | 1350 | filp_close(flp, NULL); |
---|
1332 | 1351 | } |
---|
| 1352 | +#endif |
---|
1333 | 1353 | |
---|
1334 | 1354 | int gt1x_hold_ss51_dsp_no_reset(void) |
---|
1335 | 1355 | { |
---|