AnsweredAssumed Answered

i.MX8QM core and board informations

Question asked by Daniel Oliveira on Mar 24, 2020
Latest reply on Apr 17, 2020 by gusarambula

Hi guys,

 

I have a i.MX8QM-MEK and I would like to know if it is possible to get (and how) the following information retrieved from the device itself: 

1) the board vendor and revision . As fair as I know, u-Boot is able to query the SC and obtain some relevant information. 

(u-boot/cpu.c at 21aede21b060661977fd3d11f96211bd4f254096 · u-boot/u-boot · GitHub ) 

u32 get_cpu_rev(void) {      
   u32 id = 0, rev = 0;      
   int ret;       

   ret = sc_misc_get_control(-1, SC_R_SYSTEM, SC_C_ID, &id);      
   
   if (ret)           
      return 0;       

   rev = (id >> 5)  & 0xf;      

   id = (id & 0x1f) + MXC_SOC_IMX8;  /* Dummy ID for chip */       
   
   return (id << 12) | rev;
}

2) is there any memory-mapped register on the Cortex-M4 cores that allows me to get the core ID ? Something like CM4_0 or CM4_1 ?

 

Thank you guys. 

Outcomes