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
415 Views
Registered: ‎02-08-2017

Missing Linux gpio Function

According to this library (gpiolib), there should be one function to get values for group of gpio pins.

However, I tried to build my module using this function, I got error "Implicit declaration of function gpiod_get_array_value"

 

I am working on ZynqMP, so my linux kernel is downloaded from here https://github.com/Xilinx/linux-xlnx.git

I checked downloaded linux kernel (linux-xlnx/include/linux/gpio), It is not defined. (you can check it here)

 

I checked header file (consumer.h) which shall have definitions of gpiolib in main linux stream, it is defined.

 

So it seems that linux version downloaded from xilinx has a missing function.

 

Could you please advise how to fix that.

 

Thanks in Advance

 

0 Kudos
1 Reply
Explorer
Explorer
377 Views
Registered: ‎02-08-2017

Re: Missing Linux gpio Function

I know that I can use gpiod_get_value in a for loop. But I thought it is better If the library is fully implemented in Xilinx distribution.

 

Any support please.

0 Kudos