EMIF1 is shared between CPU1 and CPU2. In the default, CPU1 is the master for EMIF1. Now CPU2 wants to access EMIF1, is the following steps right?
1. CPU2 writes the value of 0x93A5CE7 to the KEY filed of EMIF1MSEL register. This is used to allowing to change the MSEL_EMIF1 bits.
2. CPU2 writes the value of 0x10 to the MSEL_EMIF1 field of EMIF1MSEL register. This is used to grab the master ownership for CPU2.
3. CPU2 accesses EMIF1.
After CPU2 completing access of EMIF1, when will the CPU1 grab the master ownership again? Does the CPU1 need to execute the above steps to grab the master ownership?
Another question is that if one CPU tries to access the EMIF1 while the other CPU is accessing EMIF1 in progress, will the first CPU halt and wait until the second CPU release the ownership?