notro / fbtft_tools

27 stars 17 forks source link

Made irq handling more portable (use of gpio_to_irq()) #1

Closed Angus71 closed 10 years ago

Angus71 commented 10 years ago

With this change the ads7846_device.c also compiles for the Beaglebone linux 3.8.13 kernel.

After modifying this file I was able to get a HY28A display up and running (Graphics and Touchscreen) with a Beaglebone Black and without any visible problems (I had a pixel problem, but it was gone after turning the cursor_blink off with the following command)

echo 0 > /sys/class/graphics/fbcon/cursor_blink
notro commented 10 years ago

I will pull this when I get the time. I have to test it first. Another solution on the BBB, is to use Device Tree. In 3.12, ads7846 have DT support. I have used it successfully on 3.10. It might work on 3.8 as well.

notro commented 10 years ago

Committed: https://github.com/notro/fbtft_tools/commit/013d9b93fc79f3992626b1ce7c4fb7980e2fb778 Thanks!