Skip to content

Commit 9a6c6f9

Browse files
committed
[nxp noup] conn_fwloader: only write CAU temperature for Wi-Fi case
Only write CAU temperature for downloading Wi-Fi FW, avoid affecting the BT only central_ht/peripheral_ht case. Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
1 parent 44b6df2 commit 9a6c6f9

2 files changed

Lines changed: 24 additions & 12 deletions

File tree

platform/ext/target/nxp/frdmrw612/Native_Driver/components/conn_fwloader/fsl_loader_utils.c

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,9 +1582,12 @@ status_t load_service(LOAD_Target_Type loadTarget, uint32_t sourceAddr)
15821582
(void)__OtpDeInit();
15831583
}
15841584

1585-
cau_temperature_enable_impl();
1586-
cau_pmip_v33_enable();
1587-
cau_temperature_write_to_firmware_impl();
1585+
if (LOAD_WIFI_FIRMWARE == loadTarget)
1586+
{
1587+
cau_temperature_enable_impl();
1588+
cau_pmip_v33_enable();
1589+
cau_temperature_write_to_firmware_impl();
1590+
}
15881591

15891592
if (status == kStatus_Success)
15901593
{
@@ -1675,9 +1678,12 @@ static status_t load_service_monolithic(LOAD_Target_Type loadTarget, uint32_t so
16751678
(void)__OtpDeInit();
16761679
}
16771680

1678-
cau_temperature_enable_impl();
1679-
cau_pmip_v33_enable();
1680-
cau_temperature_write_to_firmware_impl();
1681+
if (LOAD_WIFI_FIRMWARE == loadTarget)
1682+
{
1683+
cau_temperature_enable_impl();
1684+
cau_pmip_v33_enable();
1685+
cau_temperature_write_to_firmware_impl();
1686+
}
16811687

16821688
if (status == kStatus_Success)
16831689
{

platform/ext/target/nxp/rdrw61x/Native_Driver/components/conn_fwloader/fsl_loader_utils.c

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,9 +1582,12 @@ status_t load_service(LOAD_Target_Type loadTarget, uint32_t sourceAddr)
15821582
(void)__OtpDeInit();
15831583
}
15841584

1585-
cau_temperature_enable_impl();
1586-
cau_pmip_v33_enable();
1587-
cau_temperature_write_to_firmware_impl();
1585+
if (LOAD_WIFI_FIRMWARE == loadTarget)
1586+
{
1587+
cau_temperature_enable_impl();
1588+
cau_pmip_v33_enable();
1589+
cau_temperature_write_to_firmware_impl();
1590+
}
15881591

15891592
if (status == kStatus_Success)
15901593
{
@@ -1675,9 +1678,12 @@ static status_t load_service_monolithic(LOAD_Target_Type loadTarget, uint32_t so
16751678
(void)__OtpDeInit();
16761679
}
16771680

1678-
cau_temperature_enable_impl();
1679-
cau_pmip_v33_enable();
1680-
cau_temperature_write_to_firmware_impl();
1681+
if (LOAD_WIFI_FIRMWARE == loadTarget)
1682+
{
1683+
cau_temperature_enable_impl();
1684+
cau_pmip_v33_enable();
1685+
cau_temperature_write_to_firmware_impl();
1686+
}
16811687

16821688
if (status == kStatus_Success)
16831689
{

0 commit comments

Comments
 (0)