This shows you the differences between two versions of the page.
tutorials:expansion_boards_dvk:dvk521:documentations:a20:driver_porting_and_configuration [2014/07/23 11:06] waveshare |
tutorials:expansion_boards_dvk:dvk521:documentations:a20:driver_porting_and_configuration [2014/07/23 11:12] (current) waveshare |
||
---|---|---|---|
Line 79: | Line 79: | ||
Reboot the system. | Reboot the system. | ||
- | For more info about testing the AT24/FM24 module, like reading/writing data, please refer to the document [[tutorials:DVK521:Documentations:A20:DVK521 User Manual|DVK521 User Manual]] and Appendix 2 "Running API Demo". | + | For more info about testing the AT24/FM24 module, like reading/writing data, please refer to the document [[tutorials/expansion_boards_dvk/dvk521/documentations/a20/dvk521_user_manual|DVK521 User Manual]] and Appendix 2 "Running API Demo". |
==== Porting SPI Devices Driver ==== | ==== Porting SPI Devices Driver ==== | ||
=== Config the Kernel === | === Config the Kernel === | ||
- | The A20 SPI is not natively supported by linux-sunxi-sunxi-3.4.61 kernel. You should copy the spi-sun7i.c file [[http://dl.cubieboard.org/parteners/waveshare/Source_Code/A20/driver%20source|spi-sun7i.c]] to the drivers/spi directory in the kernel, and modify the related Makefile and Kconfig under the same directory. | + | The A20 SPI is not natively supported by linux-sunxi-sunxi-3.4.61 kernel. You should copy the spi-sun7i.c file [[http://dl.cubieboard.org/parteners/waveshare/Source_Code/a20-cubieboard-dvk/driver%20source/|spi-sun7i.c]] to the drivers/spi directory in the kernel, and modify the related Makefile and Kconfig under the same directory. |
Add the following line in Makefile: | Add the following line in Makefile: | ||
Line 274: | Line 274: | ||
==== Porting CTP Driver ==== | ==== Porting CTP Driver ==== | ||
=== Config the Kernel === | === Config the Kernel === | ||
- | Our capacitive touch screen integrates FT5206 as the touch controller, and the related driver file is ft5x_ts.c. Unfortunately the original ft5x_ts.c in linux-sunxi-sunxi-3.4.61 kernel doesn’t support A20, therefore, copy the new ft5x_ts.c [[http://dl.cubieboard.org/parteners/waveshare/Source_Code/A20/driver%20source/|ft5x_ts.c]] to the drivers/input/touchscreen directory in kernel and replace the original one. Besides, the touch screen interrupt pin ctp_int_port requires GPIO interrupts, make sure the GPIO driver is included when configuring. | + | Our capacitive touch screen integrates FT5206 as the touch controller, and the related driver file is ft5x_ts.c. Unfortunately the original ft5x_ts.c in linux-sunxi-sunxi-3.4.61 kernel doesn’t support A20, therefore, copy the new ft5x_ts.c [[http://dl.cubieboard.org/parteners/waveshare/Source_Code/a20-cubieboard-dvk/driver%20source//|ft5x_ts.c]] to the drivers/input/touchscreen directory in kernel and replace the original one. Besides, the touch screen interrupt pin ctp_int_port requires GPIO interrupts, make sure the GPIO driver is included when configuring. |
Config the Kernel to include touchscreen driver: | Config the Kernel to include touchscreen driver: |