aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/pcie
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie')
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/trans.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c
index aea0fe9d1779..8027138c47e9 100644
--- a/drivers/net/wireless/iwlwifi/pcie/trans.c
+++ b/drivers/net/wireless/iwlwifi/pcie/trans.c
@@ -747,14 +747,11 @@ static int iwl_pcie_load_given_ucode(struct iwl_trans *trans,
747 int first_ucode_section; 747 int first_ucode_section;
748 748
749 IWL_DEBUG_FW(trans, 749 IWL_DEBUG_FW(trans,
750 "working with %s image\n",
751 image->is_secure ? "Secured" : "Non Secured");
752 IWL_DEBUG_FW(trans,
753 "working with %s CPU\n", 750 "working with %s CPU\n",
754 image->is_dual_cpus ? "Dual" : "Single"); 751 image->is_dual_cpus ? "Dual" : "Single");
755 752
756 /* configure the ucode to be ready to get the secured image */ 753 /* configure the ucode to be ready to get the secured image */
757 if (image->is_secure) { 754 if (iwl_has_secure_boot(trans->hw_rev, trans->cfg->device_family)) {
758 /* set secure boot inspector addresses */ 755 /* set secure boot inspector addresses */
759 iwl_write_prph(trans, 756 iwl_write_prph(trans,
760 LMPM_SECURE_INSPECTOR_CODE_ADDR, 757 LMPM_SECURE_INSPECTOR_CODE_ADDR,
@@ -790,7 +787,8 @@ static int iwl_pcie_load_given_ucode(struct iwl_trans *trans,
790 LMPM_SECURE_CPU2_HDR_MEM_SPACE); 787 LMPM_SECURE_CPU2_HDR_MEM_SPACE);
791 788
792 /* load to FW the binary sections of CPU2 */ 789 /* load to FW the binary sections of CPU2 */
793 if (image->is_secure) 790 if (iwl_has_secure_boot(trans->hw_rev,
791 trans->cfg->device_family))
794 ret = iwl_pcie_load_cpu_secured_sections( 792 ret = iwl_pcie_load_cpu_secured_sections(
795 trans, image, 2, 793 trans, image, 2,
796 &first_ucode_section); 794 &first_ucode_section);
@@ -821,7 +819,7 @@ static int iwl_pcie_load_given_ucode(struct iwl_trans *trans,
821 else 819 else
822 iwl_write32(trans, CSR_RESET, 0); 820 iwl_write32(trans, CSR_RESET, 0);
823 821
824 if (image->is_secure) { 822 if (iwl_has_secure_boot(trans->hw_rev, trans->cfg->device_family)) {
825 /* wait for image verification to complete */ 823 /* wait for image verification to complete */
826 ret = iwl_poll_prph_bit(trans, 824 ret = iwl_poll_prph_bit(trans,
827 LMPM_SECURE_BOOT_CPU1_STATUS_ADDR, 825 LMPM_SECURE_BOOT_CPU1_STATUS_ADDR,