/* Name: ddr3_get_static_mc_value - Init Memory controller with static parameters Desc: Use this routine to init the controller without the HW training procedure User must provide compatible header file with registers data. Args: None. Notes: Returns: None.  */
u32 ddr3_get_static_mc_value(u32 reg_addr, u32 offset1, u32 mask1, u32 offset2, u32 mask2)
/* Name: ddr3_get_static_mc_value - Init Memory controller with static parameters Desc: Use this routine to init the controller without the HW training procedure User must provide compatible header file with registers data. Args: None. Notes: Returns: None.  */
u32 ddr3_get_static_mc_value(u32 reg_addr, u32 offset1, u32 mask1, u32 offset2, u32 mask2)
{
	u32 reg, tmp;
	reg = reg_read(reg_addr);
	tmp = (reg >> offset1) & mask1;
	if (mask2)
		tmp |= (reg >> offset2) & mask2;
	return tmp;
}