jlaitine opened a new pull request, #21838:
URL: https://github.com/apache/nuttx/pull/21838

   
   ## Summary
   
   This enables using the imx9_mu driver in arm64 branch also for i.MX93 
platform. It is currently only available for i.MX95.
   
   This also cleans up the mu driver a bit; now when it supports both imx93 and 
imx95, the function names are changed from imx95_mu to imx9_mu, which also 
matches the source file name. Some base address macro definitions remove extra 
double "__" and "magic" indexing of the MU endpoints is made explicit by macros.
   
   ## Impact
   
   Impacts only arm64/imx9 branch. Also doesn't (shouldn't) change the 
functionality on i.MX95. Enables the MU driver
   code for i.MX93.
   
   ## Testing
   
   Tested on imx93-evk kit:
   
   On imx93 bootloader running on cortex-a55, send a message to cortex-m33:
   
   ```
   struct imx9_mu_dev_s *mu = imx9_mu_init(IMX9_MU_M33);
   imx9_mu_send_msg_non_blocking(mu, 0, PLATFORM_READY_MAGIC)
   ```
   
   while waiting for the message on cortex-m33 core (FreeRTOS /  SDK):
   
   ```
   MU_Init(MU1_MUA);
   do {
       while ((MU1_MUA->RSR & 1U) == 0U) {
       }
   } while (MU1_MUA->RR[0] != PLATFORM_READY_MAGIC);
   PRINTF("MSG received\r\n")
   ```
   
   And observed over serial trace that the printout comes out only after 
message has been sent.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to