Commit graph

108 commits

Author SHA1 Message Date
Nava kishore Manne
3f3559318d Drivers:standalone drivers license changes. 2015-06-24 14:56:48 +05:30
Andrei-Liviu Simion
df76cfa849 video_common: Removed backslashes from within print statements.
Removed backslashes that will cause incorrect output behavior on UART output.
Removed unneeded backslashes from printf argument list.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-27 12:56:47 +05:30
Andrei-Liviu Simion
c741680e7a video_common: Reordered reduced blanking timings after regular blanking.
The XVidC_GetVideoModeId search would return reduced blanking. This causes
problems if the monitor doesn't support reduced blanking or if the user desired
regular blanking.
Prioritize regular blanking first - it is up to the user to specify if reduced
blanking is desired.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-27 12:56:46 +05:30
Andrei-Liviu Simion
9101ecf808 video_common: Updated Doxygen documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:52 +05:30
Andrei-Liviu Simion
be8784f051 video_common: XVidC_ColorConversionStd->XVidC_ColorStd.
Previous naming was lengthy.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:51 +05:30
Andrei-Liviu Simion
81d24be485 video_common: ColorSpace->ColorFormat.
Color format better describes the represented RGB/YUV444/YUV422/YUV420 formats.
Color space would be YUV/RGB.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:50 +05:30
Andrei-Liviu Simion
0194e3fc17 video_common: Fixed pixel clock calculation for interlaced modes.
In interlaced mode, the vertical total lines for frames 0 and 1 may not
necessarily be equal (off by 1). The pixel clock calculation needs to take this
into account by taking their average.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:48 +05:30
Andrei-Liviu Simion
767e6749ee video_common: Added XVidC_IsInterlaced.
This function checks if a video timing with a supplied ID from the video mode
table is interlaced or not.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:46 +05:30
Andrei-Liviu Simion
156f41affc video_common: Removed extern.
The video timing table isn't extern.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:45 +05:30
Andrei-Liviu Simion
2a4d0ee04e video_common: Removed duplicate interlaced video timings.
Removed 25 Hz and 30 Hz refresh rates since they have identical video timings to
the 50 Hz and 60 Hz varients. The 50/60Hz refresh rates take into account both
frames for interlaced.
The common video functions use the 50/60Hz refresh rates and divide by 2 where
needed to get the frame rate for each frame.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:44 +05:30
Andrei-Liviu Simion
2fdf4bb434 video_common: Added Doxygen documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:27 +05:30
Andrei-Liviu Simion
c1f33ddd8f video_common: edid: Added function headers for commenting.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:20 +05:30
Andrei-Liviu Simion
b1c3f35b17 video_common: edid: example: Formatted to coding guidelines.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:19 +05:30
Andrei-Liviu Simion
5f8da8a650 video_common: edid: Fixed some lines that were exceeding 80 chars in length.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:18 +05:30
Andrei-Liviu Simion
43297b0ef2 video_common: edid: example: Renamed some functions.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:17 +05:30
Andrei-Liviu Simion
a7ac9e37cf video_common: edid: Shortened *BDisp* naming.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:17 +05:30
Andrei-Liviu Simion
0c1dab6865 video_common: edid: XVidC_EdidGetBDispVidDigVis->XVidC_EdidGetDigitalSigIfaceStd.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:16 +05:30
Andrei-Liviu Simion
682507fb26 video_common: edid: XVidC_EdidSuppBDispVidAna*->XVidC_EdidSuppAnalogSig*.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:15 +05:30
Andrei-Liviu Simion
aeb103b4e4 video_common: edid: XVidC_Edid_SuppBDispVidAnaVidSetup->XVidC_EdidGetAnalogSigVidSetup.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:14 +05:30
Andrei-Liviu Simion
3bd0a938cc video_common: edid: XVidC_EdidGetBDispVidAnaSls->XVidC_EdidGetAnalogSigLvlStd.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:13 +05:30
Andrei-Liviu Simion
358de34799 video_common: edid: XVidC_EdidIsBDispVidVsiAnalog->XVidC_EdidIsAnalogSig.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:13 +05:30
Andrei-Liviu Simion
4d2da3ff6b video_common: edid: XVidC_EdidIsBDispVidVsiDigital->XVidC_EdidIsDigitalSig.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:12 +05:30
Andrei-Liviu Simion
62fb70a67d video_common: edid: XVidC_EdidIsVpiYearMab->XVidC_EdidIsYearMan.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:11 +05:30
Andrei-Liviu Simion
0ab91829d2 video_common: edid: XVidC_EdidIsVpiYearModel->XVidC_EdidIsYearModel.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:10 +05:30
Andrei-Liviu Simion
0009c983cd video_common: edid: XVidC_EdidGetVpiYear->XVidC_EdidGetModManYear.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:09 +05:30
Andrei-Liviu Simion
bad0f38ab4 video_common: edid: XVidC_EdidGetVpiWeekMan->XVidC_EdidGetManWeek.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:08 +05:30
Andrei-Liviu Simion
ec845b6dc6 video_common: edid: XVidC_EditGetVpiSn->XVidC_EdidGetIdSn.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:07 +05:30
Andrei-Liviu Simion
89b50eecf8 video_common: edid: XVidC_EdidGetVpiIdProdCode->XVidC_EdidGetIdProdCode.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:07 +05:30
Andrei-Liviu Simion
1ac0efe730 video_common: edid: XVidC_EdidGetVpiIdManName->XVidC_EdidGetManName.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:06 +05:30
Andrei-Liviu Simion
051ddc74e5 video_common: edid: Use color depth enumeration type.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:05 +05:30
Andrei-Liviu Simion
9beb00b9b9 video_common: edid: Added function headers for documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:04 +05:30
Andrei-Liviu Simion
f6d7ad2d02 video_common: Added some common resolution name aliases.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:52 +05:30
Andrei-Liviu Simion
2331dad236 video_common: edid: example: Update to use new common video naming convention.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:11 +05:30
Andrei-Liviu Simion
64797f1a7c video_common: Updated macros to use new naming conventions.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:10 +05:30
Shadul Shaikh
e90fb4f1eb video_common: Merged Rohit Consul's additions.
Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:09 +05:30
Shadul Shaikh
325b946207 video_common: XVid->XVidC and adherence to Xilinx coding guidelines.
Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:08 +05:30
Andrei-Liviu Simion
c9ef03a85f video_common: Added pixel frequency computation function.
There are now two functions used for this purpose:
- u32 XVid_GetPixelClockHzByHVFr(u32 HTotal, u32 VTotal, u8 Fr);
- u32 XVid_GetPixelClockHzByVmId(XVid_VideoMode VmId);

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:02 +05:30
Andrei-Liviu Simion
2414cc6832 video_common: Removed video mode without an entry.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:01 +05:30
Andrei-Liviu Simion
43e9211d20 video_common: edid: XVID_VM_NUM_SUPPORT->XVID_VM_NUM_SUPPORTED.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:00 +05:30
Andrei-Liviu Simion
9bdd128712 video_common: F1PVTotal->F1VTotal.
Progressive video modes only have frame 0, no frame 1.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:59 +05:30
Andrei-Liviu Simion
88e805d29b video_common: Fixed video timing table.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:59 +05:30
Andrei-Liviu Simion
2bbd647caa video_common: Inverted polarity in video mode table.
Now, 0 is negative polarity and 1 is positive polarity.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:58 +05:30
Andrei-Liviu Simion
75cca5dda4 video_common: Added function to check whether the video format is interlaced.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:57 +05:30
Andrei-Liviu Simion
4284fbe285 video_mode: Fixed video mode enumeration and added start/end of modes.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:56 +05:30
Andrei-Liviu Simion
740c3ea65e video_common: Removed pixel clock from table and structure. Now computing.
Added a new function that computes the pixel clock frequency rather than having
it as part of the video mode table and structure. This saves some space.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:54 +05:30
Andrei-Liviu Simion
556a4ac05b video_common: Reduced size of XVid_VideoTiming structure.
No member requires u32.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:53 +05:30
Andrei-Liviu Simion
306eb87e96 video_common: Reordered progressive-interlaced video modes.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:52 +05:30
Andrei-Liviu Simion
b3c3846913 video_common: Updated commenting.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:51 +05:30
Andrei-Liviu Simion
c04264fd84 video_common: Updated XVid_VideoStream structure definition.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:50 +05:30
Andrei-Liviu Simion
7aceaaf86f video_common: Fixed XVid_PixelsPerClock structure definition.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:32:50 +05:30