i.MX8M-Plus U-Boot RDC settings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8M-Plus U-Boot RDC settings

Jump to solution
558 Views
vix
Contributor II

In the "i.MX 8M Plus Applications Processor Reference Manual, Rev. 1, 06/2021" I read the chapter "3.2 Resource Domain Controller (RDC)" and I see the reset value for the several RDC_PDAPxxx registers.

On my evaluation board, if I halt the boot inside U-Boot, I see that 3 RDC_PDAPxxx registers have values different from the reset/default value:

  • RDC_PDAP8 which is SAI3 has a value of 0x00000003
  • RDC_PDAP29 which is RDC has a value of 0x0000000B
  • RDC_PDAP105 which is UART2 has a value of 0x00000003

Can someone explain where in the U-Boot sources (https://github.com/nxp-imx/uboot-imx) I can see the section responsible for these settings.

And, moreover, why they're necessary.

In my usage scenario I would like using UART2 from Cortex-M (domain 1), but it doesn't seem possible without patching the default U-Boot from NXP.

But I prefer not to going on with these, because I see it as a difficult job, with possible heavy consequences in case of mistakes.

0 Kudos
1 Solution
532 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport
Hi @vix ,
 
I hope you are doing well.

RDC PDAP registers are configured in ATF.
 
 
One can add the below line in imx_rdc_cfg in imx8mp_bl31_setup.c to use UART2 in the m7 core.
 
RDC_PDAPn(RDC_PDAP_UART2, D1R | D1W),
 
Please make sure to add the below node in the dts file.
 
uart2{
         status = "disabled";
}
 
Please make a note that uart2 is used for debug console in default BSP.
 
One needs to make changes to use another uart as A53 debug console.
 
Thanks & Regards,
Sanket Parekh

View solution in original post

0 Kudos
1 Reply
533 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport
Hi @vix ,
 
I hope you are doing well.

RDC PDAP registers are configured in ATF.
 
 
One can add the below line in imx_rdc_cfg in imx8mp_bl31_setup.c to use UART2 in the m7 core.
 
RDC_PDAPn(RDC_PDAP_UART2, D1R | D1W),
 
Please make sure to add the below node in the dts file.
 
uart2{
         status = "disabled";
}
 
Please make a note that uart2 is used for debug console in default BSP.
 
One needs to make changes to use another uart as A53 debug console.
 
Thanks & Regards,
Sanket Parekh
0 Kudos