XilinxProcessorIPLib/drivers/mipicsiss/examples/xmipi_vck_example/xmipi_vck190_example.c
void InitDSI(void)
{
	u32 Status;
	XDsi_VideoTiming Timing = { 0 };

	/* Disable DSI core only. So removed DPHY register interface in design*/
	Status = XDsiTxSs_Activate(&DsiTxSs, XDSITXSS_DSI, XDSITXSS_DISABLE);
	Status = XDsiTxSs_Activate(&DsiTxSs, XDSITXSS_PHY, XDSITXSS_DISABLE);


	XDsiTxSs_Reset(&DsiTxSs);

	usleep(100000);
	Status = XDsiTxSs_Activate(&DsiTxSs, XDSITXSS_PHY, XDSITXSS_ENABLE);

	do {
		Status = XDsiTxSs_IsControllerReady(&DsiTxSs);
	} while (!Status);

	/* Set the DSI Timing registers */
	Timing.HActive = DSI_DISPLAY_HORI_VAL;
	Timing.VActive = DSI_DISPLAY_VERT_VAL;
	Timing.HBackPorch = DSI_HBACK_PORCH;
	Timing.HFrontPorch = DSI_HFRONT_PORCH;

	Timing.VSyncWidth = DSI_VSYNC_WIDTH;
	Timing.VBackPorch = DSI_VBACK_PORCH;
	Timing.VFrontPorch = DSI_VFRONT_PORCH;

	XDsiTxSs_SetCustomVideoInterfaceTiming(&DsiTxSs,
						XDSI_VM_NON_BURST_SYNC_EVENT,
						&Timing);

	usleep(1000000);
}
/*****************************************************************************/
/**
 * This function programs MIPI DSI SS with the required timing paramters.
 *
 * @return	None.
 *
 * @note	None.
 *
 *****************************************************************************/
This function programs MIPI DSI SS with the required timing paramters.
@return      None.

@note        None.
This function programs MIPI DSI SS with the required timing paramters . @return None . @note None .
void InitDSI(void)
{
	u32 Status;
	XDsi_VideoTiming Timing = { 0 };
	Status = XDsiTxSs_Activate(&DsiTxSs, XDSITXSS_DSI, XDSITXSS_DISABLE);
	Status = XDsiTxSs_Activate(&DsiTxSs, XDSITXSS_PHY, XDSITXSS_DISABLE);
	XDsiTxSs_Reset(&DsiTxSs);
	usleep(100000);
	Status = XDsiTxSs_Activate(&DsiTxSs, XDSITXSS_PHY, XDSITXSS_ENABLE);
	do {
		Status = XDsiTxSs_IsControllerReady(&DsiTxSs);
	} while (!Status);
	Timing.HActive = DSI_DISPLAY_HORI_VAL;
	Timing.VActive = DSI_DISPLAY_VERT_VAL;
	Timing.HBackPorch = DSI_HBACK_PORCH;
	Timing.HFrontPorch = DSI_HFRONT_PORCH;
	Timing.VSyncWidth = DSI_VSYNC_WIDTH;
	Timing.VBackPorch = DSI_VBACK_PORCH;
	Timing.VFrontPorch = DSI_VFRONT_PORCH;
	XDsiTxSs_SetCustomVideoInterfaceTiming(&DsiTxSs,
						XDSI_VM_NON_BURST_SYNC_EVENT,
						&Timing);
	usleep(1000000);
}
void InitDSI ( void ) { u32 Status ; XDsi_VideoTiming Timing = { 0 } ; Status = XDsiTxSs_Activate ( & DsiTxSs , XDSITXSS_DSI , XDSITXSS_DISABLE ) ; Status = XDsiTxSs_Activate ( & DsiTxSs , XDSITXSS_PHY , XDSITXSS_DISABLE ) ; XDsiTxSs_Reset ( & DsiTxSs ) ; usleep ( 100000 ) ; Status = XDsiTxSs_Activate ( & DsiTxSs , XDSITXSS_PHY , XDSITXSS_ENABLE ) ; do { Status = XDsiTxSs_IsControllerReady ( & DsiTxSs ) ; } while ( ! Status ) ; Timing . HActive = DSI_DISPLAY_HORI_VAL ; Timing . VActive = DSI_DISPLAY_VERT_VAL ; Timing . HBackPorch = DSI_HBACK_PORCH ; Timing . HFrontPorch = DSI_HFRONT_PORCH ; Timing . VSyncWidth = DSI_VSYNC_WIDTH ; Timing . VBackPorch = DSI_VBACK_PORCH ; Timing . VFrontPorch = DSI_VFRONT_PORCH ; XDsiTxSs_SetCustomVideoInterfaceTiming ( & DsiTxSs , XDSI_VM_NON_BURST_SYNC_EVENT , & Timing ) ; usleep ( 1000000 ) ; }
This function programs MIPI DSI SS with the required timing paramters.
This function programs MIPI DSI SS with the required timing paramters .
/* Disable DSI core only. So removed DPHY register interface in design*/ /* Set the DSI Timing registers */