mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
channel input update ilitek touch firmware block number.
update ilitek touch firmware block number as vendor suggested Change-Id: I1a30717b60714b36467589a80a1f2fc7f466ba70 Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/1261966 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
ff7e3e1513
commit
d688eb234b
2 changed files with 3 additions and 2 deletions
|
|
@ -173,6 +173,7 @@ extern uint32_t ipio_chip_list[2];
|
|||
#define DLM_HEX_ADDRESS 0x10000
|
||||
#define MP_HEX_ADDRESS 0x13000
|
||||
#define SPI_UPGRADE_LEN 2048
|
||||
#define FW_BLOCK_INFO_NUM 6
|
||||
#define UPDATE_RETRY_COUNT 3
|
||||
|
||||
/* ILI7807 Series */
|
||||
|
|
|
|||
|
|
@ -1431,10 +1431,10 @@ static int convert_hex_file(uint8_t *pBuf, uint32_t nSize, bool isIRAM)
|
|||
nExAddr = nExAddr >> 12;
|
||||
}
|
||||
|
||||
if (nType == 0xAE) {
|
||||
if (nType == 0xAE || nType == 0xAF) {
|
||||
core_firmware->hasBlockInfo = true;
|
||||
/* insert block info extracted from hex */
|
||||
if (block < 4) {
|
||||
if (block < FW_BLOCK_INFO_NUM) {
|
||||
g_flash_block_info[block].start_addr = HexToDec(&pBuf[i + 9], 6);
|
||||
g_flash_block_info[block].end_addr = HexToDec(&pBuf[i + 9 + 6], 6);
|
||||
ipio_debug(DEBUG_FIRMWARE, "Block[%d]: start_addr = %x, end = %x\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue