Skip to content

Commit 71cc503

Browse files
Tanmay Deshpandevenkatesan-krishnamoorthy
authored andcommitted
am64x,am243x: sbl: Move open firewall apis after system_init
- Move firewall APIs after system_init as gSciclientHandle needs to be initialized first. - Change firewall ownership to non-secure context as all firewall msgs are sent over non-secure thread. Fixes: SITSW-5053, SITSW-5055 Signed-off-by: Tanmay Deshpande <tanmay.d@ti.com>
1 parent feb9715 commit 71cc503

File tree

36 files changed

+92
-65
lines changed
  • examples/drivers/boot
    • sbl_dfu_uniflash
      • am243x-evm/r5fss0-0_nortos
      • am243x-lp/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
    • sbl_dfu
      • am243x-evm/r5fss0-0_nortos
      • am243x-lp/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
    • sbl_emmc_linux/am64x-evm/r5fss0-0_nortos
    • sbl_emmc
      • am243x-evm/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
    • sbl_null
      • am243x-evm/r5fss0-0_nortos
      • am243x-lp/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
      • am64x-sk/r5fss0-0_nortos
    • sbl_ospi_linux/am64x-evm/r5fss0-0_nortos
    • sbl_ospi_multi_partition
      • am243x-evm/r5fss0-0_nortos
      • am243x-lp/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
      • am64x-sk/r5fss0-0_nortos
    • sbl_ospi
      • am243x-evm/r5fss0-0_nortos
      • am243x-lp/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
      • am64x-sk/r5fss0-0_nortos
    • sbl_pcie
      • am243x-evm/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
    • sbl_sd
      • am243x-evm/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
      • am64x-sk/r5fss0-0_nortos
    • sbl_uart_uniflash
      • am243x-evm/r5fss0-0_nortos
      • am243x-lp/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
      • am64x-sk/r5fss0-0_nortos
    • sbl_uart
      • am243x-evm/r5fss0-0_nortos
      • am243x-lp/r5fss0-0_nortos
      • am64x-evm/r5fss0-0_nortos
      • am64x-sk/r5fss0-0_nortos
  • source/drivers/bootloader/soc/am64x_am243x

36 files changed

+92
-65
lines changed

examples/drivers/boot/sbl_dfu/am243x-evm/r5fss0-0_nortos/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ int main(void)
150150
Bootloader_enableMCUPLL();
151151
}
152152

153+
System_init();
154+
153155
Bootloader_socOpenFirewalls();
154156

155157
Bootloader_socNotifyFirewallOpen();
156158

157-
System_init();
158-
159159
Drivers_open();
160160

161161
status = Board_driversOpen();

examples/drivers/boot/sbl_dfu/am243x-lp/r5fss0-0_nortos/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ int main(void)
150150
Bootloader_enableMCUPLL();
151151
}
152152

153+
System_init();
154+
153155
Bootloader_socOpenFirewalls();
154156

155157
Bootloader_socNotifyFirewallOpen();
156158

157-
System_init();
158-
159159
Drivers_open();
160160

161161
status = Board_driversOpen();

examples/drivers/boot/sbl_dfu/am64x-evm/r5fss0-0_nortos/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ int main(void)
139139
Bootloader_enableMCUPLL();
140140
}
141141

142+
System_init();
143+
142144
Bootloader_socOpenFirewalls();
143145

144146
Bootloader_socNotifyFirewallOpen();
145147

146-
System_init();
147-
148148
Drivers_open();
149149

150150
status = Board_driversOpen();

examples/drivers/boot/sbl_dfu_uniflash/am243x-evm/r5fss0-0_nortos/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ int main(void)
9797
int32_t status = SystemP_SUCCESS;
9898

9999
Bootloader_socWaitForFWBoot();
100+
101+
System_init();
102+
100103
Bootloader_socOpenFirewalls();
101104

102105
Bootloader_socNotifyFirewallOpen();
103106

104-
System_init();
105107
Drivers_open();
106108

107109
status = Board_driversOpen();

examples/drivers/boot/sbl_dfu_uniflash/am243x-lp/r5fss0-0_nortos/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ int main(void)
101101
int32_t status = SystemP_SUCCESS;
102102

103103
Bootloader_socWaitForFWBoot();
104+
105+
System_init();
106+
104107
Bootloader_socOpenFirewalls();
105108

106109
Bootloader_socNotifyFirewallOpen();
107110

108-
System_init();
109111
Drivers_open();
110112

111113
status = Board_driversOpen();

examples/drivers/boot/sbl_dfu_uniflash/am64x-evm/r5fss0-0_nortos/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ int main(void)
9696
int32_t status = SystemP_SUCCESS;
9797

9898
Bootloader_socWaitForFWBoot();
99+
100+
System_init();
101+
99102
Bootloader_socOpenFirewalls();
100103

101104
Bootloader_socNotifyFirewallOpen();
102105

103-
System_init();
104106
Drivers_open();
105107

106108
status = Board_driversOpen();

examples/drivers/boot/sbl_emmc/am243x-evm/r5fss0-0_nortos/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ int main(void)
103103
Bootloader_enableMCUPLL();
104104
}
105105

106+
System_init();
107+
Bootloader_profileAddProfilePoint("System_init");
108+
106109
Bootloader_socOpenFirewalls();
107110

108111
Bootloader_socNotifyFirewallOpen();
109112

110-
System_init();
111-
Bootloader_profileAddProfilePoint("System_init");
112-
113113
Drivers_open();
114114
Bootloader_profileAddProfilePoint("Drivers_open");
115115

examples/drivers/boot/sbl_emmc/am64x-evm/r5fss0-0_nortos/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ int main(void)
103103
Bootloader_enableMCUPLL();
104104
}
105105

106+
System_init();
107+
Bootloader_profileAddProfilePoint("System_init");
108+
106109
Bootloader_socOpenFirewalls();
107110

108111
Bootloader_socNotifyFirewallOpen();
109112

110-
System_init();
111-
Bootloader_profileAddProfilePoint("System_init");
112-
113113
Drivers_open();
114114
Bootloader_profileAddProfilePoint("Drivers_open");
115115

examples/drivers/boot/sbl_emmc_linux/am64x-evm/r5fss0-0_nortos/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ int main(void)
221221
Bootloader_enableMCUPLL();
222222
}
223223

224+
System_init();
225+
Bootloader_profileAddProfilePoint("System_init");
226+
224227
Bootloader_socOpenFirewalls();
225228

226229
Bootloader_socNotifyFirewallOpen();
227230

228-
System_init();
229-
Bootloader_profileAddProfilePoint("System_init");
230-
231231
Drivers_open();
232232
Bootloader_profileAddProfilePoint("Drivers_open");
233233

examples/drivers/boot/sbl_null/am243x-evm/r5fss0-0_nortos/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,12 @@ int main(void)
9393
Bootloader_enableMCUPLL();
9494
}
9595

96+
System_init();
97+
9698
Bootloader_socOpenFirewalls();
9799

98100
Bootloader_socNotifyFirewallOpen();
99101

100-
System_init();
101102
Drivers_open();
102103

103104
DebugP_log("\r\n");

0 commit comments

Comments
 (0)