/* Memory Initialization Driver. 
This function is called to perform Memory initialization of selected RAM's.  */
void memoryInit(uint32 ram)
/* Memory Initialization Driver. 
This function is called to perform Memory initialization of selected RAM's.  */
void memoryInit(uint32 ram)
{
	systemREG1->MINITGCR = 0xAU;
	systemREG1->MSINENA  = ram;
	while((systemREG1->MSTCGSTAT & 0x00000100U) != 0x00000100U)
	{
	}
	systemREG1->MINITGCR = 0x5U;
}