高通CP侧代码常见修改

RTC校准
//8953

diff --git a/BOOT.BF.3.3/boot_images/core/systemdrivers/pmic/config/msm8953/pm_config_target_sbl_sequence.c b/BOOT.BF.3.3/boot_images/core/systemdrivers/pmic/config/msm8953/pm_config_target_sbl_sequence.c
index 7765112..fbed727 100755
--- a/BOOT.BF.3.3/boot_images/core/systemdrivers/pmic/config/msm8953/pm_config_target_sbl_sequence.c
+++ b/BOOT.BF.3.3/boot_images/core/systemdrivers/pmic/config/msm8953/pm_config_target_sbl_sequence.c
@@ -102,7 +102,7 @@ pm_sbl_seq [ ] =
    { 0,0xA0,0x5A00,0x058,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 30
    { 0,0x0F,0x5A00,0x059,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 31
    { 0,0x01,0x5A00,0x05A,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 32
-   { 0,0x80,0x5A00,0x05B,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 33
+   { 0,0xD0,0x5A00,0x05B,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 33
    { 0,0xFF,0x5A00,0x05C,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 34
    { 0,0x80,0x5A00,0x048,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 35
    { 0,0xA5,0x5A00,0x0D0,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 36

//8909

diff --git a/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target_sbl_sequence.c b/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target_sbl_sequence.c
index d12753a..f0aeab2 100755
--- a/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target_sbl_sequence.c
+++ b/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target_sbl_sequence.c
@@ -119,10 +119,8 @@ pm_sbl_seq [ ] =
    { 0,0x80,0x6000,0x046,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 25
    { 0,0xA0,0x5A00,0x058,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 26
    { 0,0x0F,0x5A00,0x059,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 27
-   { 0,     0x01,0x5A00,0x05A,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 28
-   //{ 0,0x80,0x5A00,0x05B,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 29
-   { 0,     0xD0,      0x5A00,  0x05B,    PM_SBL_WRITE,    EQUAL,   REV_ID_COMMON}, // 29
+   { 0,0x01,0x5A00,0x05A,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 28
+   { 0,0xD0,0x5A00, 0x05B,PM_SBL_WRITE,EQUAL,REV_ID_COMMON}, // 29
    { 0,0xFF,0x5A00,0x05C,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 30
    { 0,0x80,0x5A00,0x048,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 31
    { 0,0xA5,0x5A00,0x0D0,PM_SBL_WRITE,EQUAL,REV_ID_COMMON},// 32

OEM_sec_wdog_bark_time

diff --git a/TZ.BF.4.0.5/trustzone_images/core/securemsm/trustzone/qsee/mink/oem/config/msm8937/oem_config.xml b/TZ.BF.4.0.5/trustzone_images/core/securemsm/trustzone/qsee/mink/oem/config/msm8937/oem_config.xml
index a445418..3ec3989 100755
--- a/TZ.BF.4.0.5/trustzone_images/core/securemsm/trustzone/qsee/mink/oem/config/msm8937/oem_config.xml
+++ b/TZ.BF.4.0.5/trustzone_images/core/securemsm/trustzone/qsee/mink/oem/config/msm8937/oem_config.xml
@@ -19,7 +19,7 @@
       0
     </props>
     <props name="OEM_sec_wdog_bark_time" type="0x00000002">
-      6000
+      12000
     </props>
     <props name="OEM_sec_wdog_bite_time" type=DALPROP_ATTR_TYPE_UINT32>
       22000

TrustZone权限修改

sdm660


   <device id=BLSP_QUP1_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP1         </props>
  <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   0, 1, 2, 3, end   </props>
  <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     1                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_TZ, end        </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

   <device id=BLSP_UART1_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART1        </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   0, 1, 2, 3, end   </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     1                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_DEFAULT, end   </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>
      <device id=BLSP_QUP3_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP3         </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   8, 9, 10, 11, end </props>
  <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     1                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_TZ, end        </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

   <device id=BLSP_UART4_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART4         </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   24, 25, 26, 27, end </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     1                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_DEFAULT, end   </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

   <device id=BLSP_QUP7_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP7         </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   24, 25, 26, 27, end </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     1                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_HLOS, end      </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

改成:

   <device id=BLSP_QUP1_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP1         </props>
  <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   0, 1, 2, 3, end   </props>
  <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_HLOS, end        </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

   <device id=BLSP_UART1_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART1        </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   0, 1, 2, 3, end   </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_HLOS, end   </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

   <device id=BLSP_QUP3_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP3         </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   8, 9, 10, 11, end </props>
  <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_HLOS, end        </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

   <device id=BLSP_UART4_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART4         </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   24, 25, 26, 27, end </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_HLOS, end   </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

   <device id=BLSP_QUP7_DEV_ACCESS>
      <props name="PERIPH ID"           type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP7         </props>
      <props name="GPIO range"          type=DALPROP_ATTR_TYPE_BYTE_SEQ>   24, 25, 26, 27, end </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
      <props name="RW_ACCESS_LIST"      type=DALPROP_ATTR_TYPE_BYTE_SEQ>   AC_HLOS, end      </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                 </props>
   </device>

下面是一份msm8953的i2c4和spi6改到AP侧的范例:

//===========================================================================
//
// FILE:         QUPAC_8953_Access.xml
//
// DESCRIPTION:  This file lists access permission for al QUPS
//
//===========================================================================
//
//                             Edit History
//
// $Header: //components/rel/core.tz/1.0.5/buses/qup_accesscontrol/bear/config/QUPAC_8953_Access.xml#1 $
//
// when       who     what, where, why
// 02/06/16   dpk     Added support for platform detection & Assigned BLSP3 to ADSP for iTouch.
// 12/18/15   dpk     Updated subsystem ID macros
// 10/29/15   dpk     Added RG index for each QUP/UART entry
// 10/27/15   dpk     Updated the BLSP Assignments
// 09/15/15   dpk     created for 8953
//
//===========================================================================
//             Copyright c 2015-16 QUALCOMM Technologies, Incorporated.
//                    All Rights Reserved.
//                  QUALCOMM Confidential & Proprietary
//===========================================================================
#include "QupACCommonIds.h"
#include "TzBlspAC.h"

//All QUPs have to be listed below. Any QUP not present cannot be accesssed by any subsystem.
//It's designed to be flexible enough to list only available QUPs on a particular platform.

<driver name="NULL">
   <global_def>
      <var_seq name="blsp1_hclk_name"   type=DALPROP_DATA_TYPE_STRING>   gcc_blsp1_ahb_clk   </var_seq>
      <var_seq name="blsp2_hclk_name"   type=DALPROP_DATA_TYPE_STRING>   gcc_blsp2_ahb_clk   </var_seq>

      <var_seq name="alt1_qup3"   type=DALPROP_DATA_TYPE_STRING>   /dev/buses/qup/blsp_qup_3_alt1   </var_seq>

   </global_def>

   // This instance is reserved for eSE use case
   <device id=BLSP_QUP_1_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_1             </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_SPI           </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   0, 1, 2, 3, end        </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   14, end                </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     9                      </props>
   </device>   

   <device id=BLSP_QUP_2_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_2             </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_I2C           </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   6, 7, end              </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     10                     </props>
   </device>   

   // This instance is reserved for Improve touch in ADSP
   <device id=BLSP_QUP_3_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_3             </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_SPI           </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   8, 9, 10, 11, end      </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     11                     </props>

      // This property is for internal purpose. If customer don't want any changes in existing setting
      // in this BLSP instance, they can go ahead. If any change is needed in existing settings,
      // please delete the below property before changing this BLSP instance settings.
   </device>

   // This instance is reserved for I2C Sensors use case in ADSP.
   <device id=BLSP_QUP_4_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_4             </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_I2C           </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   14, 15, end            </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     12                     </props>
   </device>

   // This instance is reserved for DEBUG UART in APSS.
   <device id=BLSP_UART_1_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART_1            </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_UART_2_LINE   </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   4, 5, end              </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     7                      </props>
   </device>

   <device id=BLSP_UART_2_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART_2            </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_UART_4_LINE   </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   12, 13, 14, 15, end    </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_NONE                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     8                      </props>
   </device>

   // This instance is reserved for NFC use case in APSS.
   <device id=BLSP_QUP_5_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_5             </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_I2C           </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   18, 19, end            </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     9                      </props>
   </device>  

   // This instance is reserved for SPI Sensors use case in ADSP.
   <device id=BLSP_QUP_6_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_6             </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_SPI           </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   20, 21, 22, 23, end    </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     10                     </props>
   </device>  

   // This instance is reserved for Finger Print use case.
   <device id=BLSP_QUP_7_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_7              </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_SPI            </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     1                       </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   135, 136, 137, 138, end </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   15, end                 </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_HLOS                   </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     1                       </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     11                      </props>
   </device>

   // This instance is reserved for Wi-Power use case in WCNSS.
   <device id=BLSP_QUP_8_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_QUP_8             </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_I2C           </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   98, 99, end            </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_NONE                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     12                     </props>
   </device>

   <device id=BLSP_UART_3_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART_3            </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_UART_4_LINE   </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   16, 17, 18, 19, end    </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_NONE                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     7                      </props>
   </device>

   <device id=BLSP_UART_4_DEV_ACCESS>
      <props name="CHIP_BUS_INDEX"      type=DALPROP_ATTR_TYPE_UINT32>     BLSP_UART_4            </props>
      <props name="BUS_PROTOCOL"        type=DALPROP_ATTR_TYPE_UINT32>     PROTOCOL_UART_4_LINE   </props>
      <props name="IS_GPIO_PROTECTED"   type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="GPIO_NUMBERS"        type=DALPROP_ATTR_TYPE_BYTE_SEQ>   20, 21, 22, 23, end    </props>
      <props name="GPIO_RG_INDEX"       type=DALPROP_ATTR_TYPE_BYTE_SEQ>   end                    </props>
      <props name="SUBSYSTEM_ID"        type=DALPROP_ATTR_TYPE_UINT32>     AC_NONE                </props>
      <props name="IS_PERSISTENT"       type=DALPROP_ATTR_TYPE_UINT32>     0                      </props>
      <props name="CORE_RG_INDEX"       type=DALPROP_ATTR_TYPE_UINT32>     8                      </props>
   </device>

   <device id="BLSP_GLOBAL_PROP">
      <props name="NUM_PERIPH_BLSP_CORES" type=DALPROP_ATTR_TYPE_UINT32> 2 </props> // Number of peripheral BLSP cores
      <props name="NUM_BLSP_QUP_CORES" type=DALPROP_ATTR_TYPE_UINT32> 4 </props> // 4 QUPs per BLSP core in this target
      <props name="NUM_BLSP_UART_CORES" type=DALPROP_ATTR_TYPE_UINT32> 2 </props> // 2 UARTS per BLSP core in this target
      <props name="BLSP1_BLSP_BAM_BASE" type=DALPROP_ATTR_TYPE_UINT32> 0x07884000 </props>
      <props name="BLSP2_BLSP_BAM_BASE" type=DALPROP_ATTR_TYPE_UINT32> 0x07AC4000 </props>
      <props name="BLSP1_HCLK_NAME" type=DALPROP_ATTR_TYPE_STRING_PTR> blsp1_hclk_name </props>
      <props name="BLSP2_HCLK_NAME" type=DALPROP_ATTR_TYPE_STRING_PTR> blsp2_hclk_name </props>
      //For information about the RG value/Index, please refer Access Control Wiki.
   </device>

</driver>

RPM修改电压范围
电压范围可以咨询硬件或查看硬件规格书
//修改LDO10范围到3.3V电压

RPM.BF.2.4/rpm_proc/core/systemdrivers/pmic/config/msm8953/pm_config_target.c
    {5, 50,   0, PM_ACCESS_ALLOWED, PM_NONE,      PM_NPA_SW_MODE_LDO__IPEAK,   PM_NPA_BYPASS_DISALLOWED, PM_DROOP_DETECT_DIS, 2800, 2850, 0, PM_SETTLING_ERR_DIS, PM_SETTLING_EN, 0},   // LDO10  ULT N300_STEPPER

==>
    {5, 50,   0, PM_ACCESS_ALLOWED, PM_NONE,      PM_NPA_SW_MODE_LDO__IPEAK,   PM_NPA_BYPASS_DISALLOWED, PM_DROOP_DETECT_DIS, 2800, 3300, 0, PM_SETTLING_ERR_DIS, PM_SETTLING_EN, 0},   // LDO10  ULT N300_STEPPER

修改开机电压

diff --git a/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target.c b/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target.c
index cd72156..93da228 100755
--- a/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target.c
+++ b/boot_images/core/systemdrivers/pmic/config/msm8909/pm8909/pm_config_target.c
@@ -148,7 +148,7 @@ vib_specific[1] =

 uint16 chg_app_ds[] =
 {
-   3400,  // PM_CHG_FLCB_OS_BOOT_UP_THRESHOLD
+   3450,  // PM_CHG_FLCB_OS_BOOT_UP_THRESHOLD
    3206,  // PM_CHG_FLCB_WEAK_BATTERY_THRESHOLD, in the unit of mv
       0,  // PM_CHG_FLCB_FAST_CHG_THRESHOLD, not applicable
    2796,  // PM_CHG_FLCB_DEAD_BATTERY_THRESHOLD, in the unit of mv

DDR频率修改

1.RPM freqs is working during the LK, so you need to limit sbl1 freqs in SBL as well 

<Using only 844.8MHz after finishing DDR training logic>
[SBL1]
boot_images\core\boot\ddr\hw\msm8953\ddr_target.c
boolean ddr_do_phy_training( void )
{
<snip>
HAL_DDR_Boot_Training(ddrsns_share_data, DDR_CH_BOTH, DDR_CS_BOTH, DDR_TRAINING_MODE_INIT); 

- ddr_pre_clock_switch(0, ddrsns_share_data->misc.clock_plan[ddrsns_share_data->misc.ddr_num_clock_levels - 1].clk_freq_in_khz, SDRAM_INTERFACE_0);
- boot_clock_set_bimcspeed(ddrsns_share_data->misc.clock_plan[ddrsns_share_data->misc.ddr_num_clock_levels - 1].clk_freq_in_khz);
- ddr_post_clock_switch(0, ddrsns_share_data->misc.clock_plan[ddrsns_share_data->misc.ddr_num_clock_levels - 1].clk_freq_in_khz, SDRAM_INTERFACE_0);
+ ddr_pre_clock_switch(0, 844800, SDRAM_INTERFACE_0);
+ boot_clock_set_bimcspeed(844800);
+ ddr_post_clock_switch(0, 844800, SDRAM_INTERFACE_0); 

ddr_printf (DDR_NORMAL, "DDR: End of HAL DDR Boot Training");
}
#if ONE_TIME_TRAINING
else {
- ddr_pre_clock_switch(0, ddrsns_share_data->misc.clock_plan[ddrsns_share_data->misc.ddr_num_clock_levels - 1].clk_freq_in_khz, SDRAM_INTERFACE_0);
- boot_clock_set_bimcspeed(ddrsns_share_data->misc.clock_plan[ddrsns_share_data->misc.ddr_num_clock_levels - 1].clk_freq_in_khz);
- ddr_post_clock_switch(0, ddrsns_share_data->misc.clock_plan[ddrsns_share_data->misc.ddr_num_clock_levels - 1].clk_freq_in_khz, SDRAM_INTERFACE_0);
+ ddr_pre_clock_switch(0, 844800, SDRAM_INTERFACE_0);
+ boot_clock_set_bimcspeed(844800);
+ ddr_post_clock_switch(0, 844800, SDRAM_INTERFACE_0);
return FALSE;
}
#endif 

[RPM]
rpm_proc/core/systemdrivers/clock/hw/msm8953/ClockRPM.c
void Clock_BusSetMinMax( Clock_NPAResourcesType *pNPAResources )
{
<snip> 

/* Default setting for BIMC clock */
- pNPAResources->BIMCClockResource.nMinLevel = 0;
- pNPAResources->BIMCClockResource.nMaxLevel = MAX_LEVEL;
+ pNPAResources->BIMCClockResource.nMinLevel = 0;
+ pNPAResources->BIMCClockResource.nMaxLevel = 10; 

<snip>
pNPAResources->APSSAXIClockResource.nMaxLevel = MAX_LEVEL; 

} 

2 please make sure erase DDR partition to re-training during each test, including your external S3 power supply test

disable cpr修改

(0)

相关推荐

  • 搭建 umi + qiankun + antd 的微前端平台

    关键词: umi qiankun ant design pro 非动态注册子应用 非动态装载子应用(路由) 背景 银行项目,需要一个前端中台,承载各项目组开发的应用,本篇文章是在工作实践后所写,还是具 ...

  • ReactElement源码笔记

    ReactElement 源码笔记 ReactElement通过 createElement创建,调用该方法需要 传入三个参数: type config children type指代这个ReactE ...

  • android6.0系统Healthd深入分析

    概述 Healthd是android4.4之后提出来的一种中介模型,该模型向下监听来自底层的电池事件,向上传递电池数据信息给Framework层的BatteryService用以计算电池电量相关状态信 ...

  • 高通MSM8909平台L1系统修改LDO电压值

    文档说明 本文档以SC806-CN-00(MSM8909平台)为例,说明如何修改LDO电压值. 修改方法 以修改LDO5,从1.8V改为1.9V为例. 首先查看PM8909的IC specificat ...

  • 高通300亿美元收购NXP,或将碾压安华高和博通这对CP!

    天啦噜,NXP去年才与美国飞思卡尔联姻,现在又要被美国公司买回去!!! 300亿美元拿下NXP,高通就是壕 9月30日消息,据外媒(华尔街日报)报道,高通在洽购恩智浦半导体(以下简称"恩智浦 ...

  • 高通小米最佳CP背后故事却不少

    今天是七夕佳节,相信各位单身狗已经被虐得口吐白沫了,好不容易能够缓一缓,你点开了三易生活的网站,可是却发现就连科技公司都开始秀恩爱了!近日小米和高通之间又开始"暧昧"了起来,高通直 ...

  • 手机sn码序列号修改工具,高通串号永久写入!

    原创文章:公众号|花花爱软件 转载保留此处! 很多情况下我们都需要修改手机的一些内存信息,但是这种修改是需要直接访问内存的,比如安卓手机为例,在应用市场上也下载不到这样的修改工具,都是需要root权限 ...

  • 终端侧5G?还得看高通的!

    在今年的MWC世界移动大会上,5G第一次从"将来时"变成了"正在进行时". 电信运营商高调宣布各自的5G路线图,通信设备厂商拍着胸脯保证"5G已经就绪 ...

  • 高通更新Wi-Fi 6标准AP解决方案,同时将客户侧芯片更名

    北京时间今天凌晨,高通的网络部门负责人Rahul Patel在旧金山发表了一次主题演讲,并发布了几款最新的Wi-Fi 6 AP(无线接入点)解决方案,归入到了Networking Pro系列中,同时客 ...

  • 【安全圈】高通芯片漏洞致全球 30% 安卓手机受影响

    安全研究公司 Check Point 近期披露,高通公司的 5G 调制解调器芯片中存在一个漏洞,可能会影响全球 30% 的 Android 手机. 这个漏洞在去年 12 月份被发现,可能会让黑客通过向 ...

  • 清库存?魅族悄悄上架16S:高通855卖2999元!网友:自己打脸

    不知道从何时起,魅族在营销上不再整活了,不知道大家是否还记得4月初的那一波营销,各种借势iPhone,各种主打安全,各种搞活动,虽然有了热度,但还是败了很多人的好感.但不知从何时开始,魅族营销回归平常 ...

  • 华为放大招!鸿蒙或适配高通联发科:国产厂商要和安卓说再见了?

    如果有一天,其他国产手机厂商面临华为这些问题,那将怎么办?我可以毫不夸张的说,基本死路一条. 在华为受到限制之前,你要知道华为的地位是怎样的?它有自家的麒麟芯片,国内市场份额几乎达到了一半(40%+) ...