cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
7,202 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
Highlighted
Scholar
Scholar
7,198 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
Highlighted
Explorer
Explorer
7,193 Views
Registered: ‎02-05-2008

Re: VTC drivers

Hi,

 

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

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
7,175 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
Highlighted
Adventurer
Adventurer
7,148 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
Highlighted
Voyager
Voyager
627 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