A20 Lime2-4GB/ How to auto load touchscreen driver on bootup?

Started by AnkyB, October 12, 2017, 08:45:33 AM

Previous topic - Next topic

AnkyB

Hi,

We are using Newhaven NHD-7.0-800480EF-ASXN#-CTP LCD Touchscreen with A20 Lime2-4gb. We have made following changes in script fex file

[ctp_para]
ctp_used = 1
ctp_name = "ft5x_ts"
ctp_twi_id = 0
ctp_twi_addr = 0x38
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 1
ctp_firm = 1
ctp_int_port = port:PH0<6><default><default><default>
ctp_wakeup = port:PI0<1><default><default><default>
cto_io_port = port:PH0<0><default><default><default>

[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 0
gslX680 = 0
gt9xx_ts = 0
gt811 = 0

To enable this touchscreen we always need to set wakeup and int pin high and then reboot the board, but touchscreen stops working when we shutdown the board and remove power supply. Is there any way to keep it enabled all the time? How can we auto load the driver on bootup ?