Skip to content

Commit

Permalink
fix(imx8mp): allow M7 access to peripherals post-security lock
Browse files Browse the repository at this point in the history
After restricting and locking all security-relevant peripherals,
M7 can not access all the peripherals, the commit allow M7 access
to peripherals post-security lock.

Fixes:  494cc47 - feat(imx8mp): restrict peripheral access to secure world

Signed-off-by: LI Qingwu <[email protected]>
  • Loading branch information
Qingwu-Li committed Apr 19, 2024
1 parent 5d39679 commit edf80a6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ static const struct imx_rdc_cfg rdc[] = {
/* peripherals domain permission */
RDC_PDAPn(RDC_PDAP_UART2, D0R | D0W),
RDC_PDAPn(RDC_PDAP_UART1, D0R | D0W),
RDC_PDAPn(RDC_PDAP_eCSPI1, D1R | D1W),

RDC_PDAPn(RDC_PDAP_RDC, D0R | D0W | D1R),

/*
* Assign following peripherals to both until debix-som/EVK phased out.
*
* eCSPI2 on the EVK for the microchip,mpf-spi-fpga-mgr, to M7 on proto
* GPIO1 on EVK and debix-som for PMIC interrupt, to M7 on proto
* UART3/4 assigned to cortex-A53 on debix-som, to M7 on proto
*/
RDC_PDAPn(RDC_PDAP_eCSPI2, D0R | D0W | D1R | D1W),
RDC_PDAPn(RDC_PDAP_GPIO1, D0R | D0W | D1R | D1W),
RDC_PDAPn(RDC_PDAP_UART3, D0R | D0W | D1R | D1W),
RDC_PDAPn(RDC_PDAP_UART4, D0R | D0W | D1R | D1W),

/* memory region */

Expand Down

0 comments on commit edf80a6

Please sign in to comment.