/* This function sets the vertical front porch stretch mechanism in VTC core to support Adaptive-Sync feature. VTC core supports two types of stretch mechanisms. 1.Fixed stretch mode 2. Auto adjust mode */
void XVtc_SetAdaptiveSyncMode(XVtc *InstancePtr, XVtc_AdaptiveSyncMode Mode)
/* This function sets the vertical front porch stretch mechanism in VTC core to support Adaptive-Sync feature. VTC core supports two types of stretch mechanisms. 1.Fixed stretch mode 2. Auto adjust mode */
void XVtc_SetAdaptiveSyncMode(XVtc *InstancePtr, XVtc_AdaptiveSyncMode Mode)
{
	u32 RegValue;
	Xil_AssertVoid(InstancePtr);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	RegValue = XVtc_ReadReg(InstancePtr->Config.BaseAddress,
				XVTC_ADAPTIVE_CTL_OFFSET);
	if (Mode > XVTC_FIXED_MODE)
		RegValue |= XVTC_ADAPTIVE_MODE_MASK;
	else
		RegValue &= ~XVTC_ADAPTIVE_MODE_MASK;
	XVtc_WriteReg(InstancePtr->Config.BaseAddress, XVTC_ADAPTIVE_CTL_OFFSET,
		      RegValue | XVTC_ADAPTIVE_ENABLE_MASK);
}