UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
6,948 Views
Registered: ‎02-05-2008

VTC drivers

Hi,

 

I am seeing two drivers for vtc in petalinux. drivers/media/platform/xilinx/xilinx-vtc.c and drivers/gpu/drm/xilinx/xilinx_vtc.c. I am using vivado 2015.2(vtc 6.1). Which one I should use. What are the differences between them?

 

Jothi

0 Kudos
5 Replies
Scholar sampatd
Scholar
6,944 Views
Registered: ‎09-05-2011

Re: VTC drivers

Links to description of both the drivers are here:

http://www.wiki.xilinx.com/Linux+Drivers


0 Kudos
Explorer
Explorer
6,939 Views
Registered: ‎02-05-2008

Re: VTC drivers

Hi,

 

So, the harware vtc 6.1 can use either of the drivers?

0 Kudos
Xilinx Employee
Xilinx Employee
6,921 Views
Registered: ‎07-31-2012

Re: VTC drivers

From the description and BD - http://www.wiki.xilinx.com/Xilinx+DRM+KMS+driver, it looks like the DRM_KMS drivers can be used. However I would wait for a confirmation.
Thanks,
Anirudh

PS: Please MARK this as an answer in case it helped resolve your query.Give kudos in case the post guided you to a solution.
0 Kudos
Adventurer
Adventurer
6,894 Views
Registered: ‎02-14-2014

Re: VTC drivers

The difference would be in the API - use the driver which matches the API the rest of your pipeline and software uses, or will use.   If you're starting from scratch, DRM/KMS is newer.

 

drivers/gpu/drm/xilinx/xilinx_vtc.c would be the DRM/KMS API

drivers/media/platform/xilinx/xilinx-vtc.c would be the (older) v4l API.

 

 

 

0 Kudos
Explorer
Explorer
373 Views
Registered: ‎10-21-2015

Re: VTC drivers

Be careful, when you use vtc driver. 

 

When the clk(for video timing) is not running, don't access register.

It causes kernel fault to access register due to axi bus error

You should enable clock before you access vtc register.

 

https://www.xilinx.com/support/documentation/ip_documentation/v_tc/v6_1/pg016_v_tc.pdf

page 20 describes

"If the clk signal is not running, the AXI4-Lite interface asserts the slave error response (0x2) for all addresses."

 

 

0 Kudos