/* This function will return a 32 bit mask that will be used to check for byte lane failures.  */
uint32_t byte_lane_mask(struct mrc_params *mrc_params)
/* This function will return a 32 bit mask that will be used to check for byte lane failures.  */
uint32_t byte_lane_mask(struct mrc_params *mrc_params)
{
	uint32_t j;
	uint32_t ret_val = 0x00;
	for (j = 0; j < MAX_BYTE_LANES; j += NUM_BYTE_LANES)
		ret_val |= (1 << ((j / NUM_BYTE_LANES) * NUM_BYTE_LANES));
	if (mrc_params->channel_width == X16)
		ret_val |= (ret_val << 2);
	return ret_val;
}