FL2440 transplant LINUX-3.4.2--the kernel comes with touch screen driver porting

Source: Internet
Author: User

Modified two files/arch/arm/mach-s3c2440/mach-smdk2440.c

And

Linux-3.0-s3c2440/drivers/input/touchscreen/s3c2410_ts.c

1/arch/arm/mach-s3c2440/mach-smdk2440.c2 3 + #include <plat/ts.h>/*add by Guowenxue-to-support Touch screen, 2011.09.06*/45 +/*touch Screen Driver info add by Guowenxue 2011.09.04 */6 +static struct S3c2410_ts_mach_info smdk2440_ts_cfg __initd ATA = {7 +. Delay = 10000, 8 +. Presc = 9 +. Oversampling_shift = 2,10 +}; One+ A  -   -  Static structPlatform_device *smdk2440_devices[] __initdata = { the@@ -155, ++295, - @@ -&S3C_DEVICE_WDT, -&s3c_device_i2c0, -&S3c_device_iis,+ &S3C_DEVICE_ADC,/* Add Touch screen driver by Guowenxue, 2011.09.06*/27 + &s3c_device_ts,/ * ADD Touch Screen driver by Guowenxue, 2011.09.06*/ -+#endif to  }; +  -  the   *  Static void__init Smdk2440_machine_init (void) $  {Panax NotoginsengS3c24xx_fb_set_platdata (&smdk2440_fb_info); -+ S3c24xx_ts_set_platdata (&smdk2440_ts_cfg);/*Add Touch Screen info by Guowenxue, 2011.09.06*/ the S3c_i2c0_set_platdata (NULL); ++ I2c_register_board_info (0, Smdk2440_i2c_devs, Array_size (Smdk2440_i2c_devs)); A   the platform_add_devices (smdk2440_devices, Array_size (smdk2440_devices)); + smdk_machine_init (); -  $  $  -/drivers/input/touchscreen/S3C2410_TS.C -+ + linux-3.0-s3c2440/drivers/input/touchscreen/s3c2410_ts.c -- -- -  One: -:58.555435668+0800 the@@ -126,6+126,7 @@ - input_report_abs (Ts.input, abs_y, TS.YP);Wuyi   theInput_report_key (Ts.input, Btn_touch,1); -+ Input_report_abs (ts.input, Abs_pressure,1);/*Add by Guowenxue, 2012.03.30*/ Wu Input_sync (ts.input); -   AboutTS.XP =0; $@@ - $,6+141,7 @@ -Ts.count =0; -   -Input_report_key (Ts.input, Btn_touch,0);+ input_report_abs (ts.input, abs_pressure, 0);/* Add by Guowenxue, 2012.03.30 */ + Input_sync (ts.input); the   -Writel (Wait4int | Int_down, Ts.io +S3C2410_ADCTSC); $@@ -314,Ten+ the, One @@ the      } the   theTs.input =Input_dev; the-ts.input->evbit[0] = Bit_mask (Ev_key) |Bit_mask (ev_abs); -+ ts.input->evbit[0] = Bit_mask (Ev_key) | Bit_mask (Ev_abs) | BIT (Ev_syn);/*Modify by Guowenxue, 2012.03.30*/ inTs.input->keybit[bit_word (btn_touch)] =Bit_mask (Btn_touch); theInput_set_abs_params (Ts.input, Abs_x,0,0x3ff,0,0); theInput_set_abs_params (Ts.input, Abs_y,0,0x3ff,0,0); About+ Input_set_abs_params (ts.input, Abs_pressure,0,1,0,0);/*Add by Guowenxue, 2012.03.30*/ the   theTs.input->name ="s3c24xx touchscreen"; theTs.input->id.bustype = Bus_host;

FL2440 transplant LINUX-3.4.2--the kernel comes with touch screen driver porting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.