/* Name: ddr3_tip_a38x_select_ddr_controller. Desc: Enable/Disable access to Marvell's server. Args: dev_num - device number enable - whether to enable or disable the server Notes: Returns: MV_OK if success, other error code if fail.  */
static int ddr3_tip_a38x_select_ddr_controller(u8 dev_num, int enable)
/* Name: ddr3_tip_a38x_select_ddr_controller. Desc: Enable/Disable access to Marvell's server. Args: dev_num - device number enable - whether to enable or disable the server Notes: Returns: MV_OK if success, other error code if fail.  */
static int ddr3_tip_a38x_select_ddr_controller(u8 dev_num, int enable)
{
	u32 reg;
	reg = reg_read(DUAL_DUNIT_CFG_REG);
	if (enable)
		reg |= (1 << 6);
	else
		reg &= ~(1 << 6);
	reg_write(DUAL_DUNIT_CFG_REG, reg);
	return MV_OK;
}