Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/AM5718: GPIO debounce error

$
0
0

Part Number: AM5718

Tool/software: Linux

Hi, 

I am using AM5718 IDK EVM,and ti-processor-sdk-linux-am57xx-evm-05.03.00.07.

I'm connecting a switch to J51 to check debouncing in GPIO. GPIO2_22 (GPIO no 54) is used here.

When I insert the driver with the call, 

 int_Result = gpio_set_debounce(54, 30);

 

 I get kernel error which is given in the attached file.

As I understand, function clock needs to be enabled for GPIO to activate debouncing.


If I write the value to enable function clock to the appropriate register (addr = 0x4A009760, Value = 0x20101), it is working. ( gpio_set_debounce(54, 30); does not give any error and it seems debounce is enabled).


Please tell me how to enable function clock for GPIO debounce (Please visit the site to view this file) through linux?

regards,

Anupama


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>