cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
470 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
Highlighted
Explorer
Explorer
432 Views
Registered: ‎02-08-2017

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