mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
TP: The TP nt36528 bringup
Modify:
Bringup TP for nt36528 , add TP bringup
Change-Id: I83da674735bee27f4a9bd1a78e3131ff81dcb2d6
Reviewed-on: https://gerrit.mot.com/2331327
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
parent
709e299c1e
commit
e5e1bedc3e
1 changed files with 40 additions and 0 deletions
|
|
@ -57,6 +57,39 @@ struct nvt_ts_hw_info {
|
|||
uint8_t hw_crc;
|
||||
};
|
||||
|
||||
static const struct nvt_ts_mem_map NT36528_memory_map = {
|
||||
.EVENT_BUF_ADDR = 0x22D00,
|
||||
.RAW_PIPE0_ADDR = 0x24000,
|
||||
.RAW_PIPE1_ADDR = 0x24000,
|
||||
.BASELINE_ADDR = 0x21880,
|
||||
.BASELINE_BTN_ADDR = 0,
|
||||
.DIFF_PIPE0_ADDR = 0x20B00,
|
||||
.DIFF_PIPE1_ADDR = 0x24B00,
|
||||
.RAW_BTN_PIPE0_ADDR = 0,
|
||||
.RAW_BTN_PIPE1_ADDR = 0,
|
||||
.DIFF_BTN_PIPE0_ADDR = 0,
|
||||
.DIFF_BTN_PIPE1_ADDR = 0,
|
||||
.READ_FLASH_CHECKSUM_ADDR = 0x24000,
|
||||
.RW_FLASH_DATA_ADDR = 0x24002,
|
||||
/* Phase 2 Host Download */
|
||||
.BOOT_RDY_ADDR = 0x3F10D,
|
||||
/* BLD CRC */
|
||||
.BLD_LENGTH_ADDR = 0x3F138, //0x3F138 ~ 0x3F13A (3 bytes)
|
||||
.ILM_LENGTH_ADDR = 0x3F118, //0x3F118 ~ 0x3F11A (3 bytes)
|
||||
.DLM_LENGTH_ADDR = 0x3F130, //0x3F130 ~ 0x3F132 (3 bytes)
|
||||
.BLD_DES_ADDR = 0x3F114, //0x3F114 ~ 0x3F116 (3 bytes)
|
||||
.ILM_DES_ADDR = 0x3F128, //0x3F128 ~ 0x3F12A (3 bytes)
|
||||
.DLM_DES_ADDR = 0x3F12C, //0x3F12C ~ 0x3F12E (3 bytes)
|
||||
.G_ILM_CHECKSUM_ADDR = 0x3F100, //0x3F100 ~ 0x3F103 (4 bytes)
|
||||
.G_DLM_CHECKSUM_ADDR = 0x3F104, //0x3F104 ~ 0x3F107 (4 bytes)
|
||||
.R_ILM_CHECKSUM_ADDR = 0x3F120, //0x3F120 ~ 0x3F123 (4 bytes)
|
||||
.R_DLM_CHECKSUM_ADDR = 0x3F124, //0x3F124 ~ 0x3F127 (4 bytes)
|
||||
.BLD_CRC_EN_ADDR = 0x3F30E,
|
||||
.DMA_CRC_EN_ADDR = 0x3F136,
|
||||
.BLD_ILM_DLM_CRC_ADDR = 0x3F133,
|
||||
.DMA_CRC_FLAG_ADDR = 0x3F134,
|
||||
};
|
||||
|
||||
static const struct nvt_ts_mem_map NT36526_memory_map = {
|
||||
.EVENT_BUF_ADDR = 0x22D00,
|
||||
.RAW_PIPE0_ADDR = 0x24000,
|
||||
|
|
@ -216,6 +249,11 @@ static const struct nvt_ts_mem_map NT36676F_memory_map = {
|
|||
.RW_FLASH_DATA_ADDR = 0x14002,
|
||||
};
|
||||
|
||||
static struct nvt_ts_hw_info NT36528_hw_info = {
|
||||
.carrier_system = 0,
|
||||
.hw_crc = 2,
|
||||
};
|
||||
|
||||
static struct nvt_ts_hw_info NT36526_hw_info = {
|
||||
.carrier_system = 2,
|
||||
.hw_crc = 2,
|
||||
|
|
@ -256,6 +294,8 @@ struct nvt_ts_trim_id_table {
|
|||
};
|
||||
|
||||
static const struct nvt_ts_trim_id_table trim_id_table[] = {
|
||||
{.trim_id = "NT36528",.id = {0xFF, 0xFF, 0xFF, 0x28, 0x65, 0x03}, .mask = {0, 0, 0, 1, 1, 1},
|
||||
.mmap = &NT36528_memory_map, .hwinfo = &NT36528_hw_info},
|
||||
{.trim_id = "NT36675",.id = {0x0D, 0xFF, 0xFF, 0x72, 0x66, 0x03}, .mask = {1, 0, 0, 1, 1, 1},
|
||||
.mmap = &NT36675_memory_map, .hwinfo = &NT36675_hw_info},
|
||||
{.trim_id = "NT36675",.id = {0x20, 0xFF, 0xFF, 0x72, 0x66, 0x03}, .mask = {1, 0, 0, 1, 1, 1},
|
||||
|
|
|
|||
Loading…
Reference in a new issue