高通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)