/* This function sets the OCT output delay in SCC manager.  */
static void scc_mgr_set_oct_out1_delay(struct socfpga_sdrseq *seq, const u32 write_group, const u32 delay)
/* This function sets the OCT output delay in SCC manager.  */
static void scc_mgr_set_oct_out1_delay(struct socfpga_sdrseq *seq, const u32 write_group, const u32 delay)
{
	const int ratio = seq->rwcfg->mem_if_read_dqs_width /
			 seq->rwcfg->mem_if_write_dqs_width;
	const int base = write_group * ratio;
	int i;
	for (i = 0; i < ratio; i++)
		scc_mgr_set(SCC_MGR_OCT_OUT1_DELAY_OFFSET, base + i, delay);
}