2、 目标机:FS_S5PC100平台
3、 交叉编译工具:arm-none-linux-gnueabi-4.5.1
tristate "Samsung S3C2410/generic touchscreen input driver"
depends on ARCH_S3C2410 || SAMSUNG_DEV_TS
select S3C_ADC
tristate "Samsung S3C2410/generic touchscreen input driver"
depends on ARCH_S3C2410 || SAMSUNG_DEV_TS || ARCH_S5PC100
select S3C_ADC
bool
help
Compile in platform device definition for ADC controller
config SAMSUNG_DEV_TS
bool
help
Common in platform device definitions for touchscreen device
bool
default y
help
Compile in platform device definition for ADC controller
config SAMSUNG_DEV_TS
bool
default y
help
Common in platform device definitions for touchscreen device
{
.name = "s3c24xx-adc",
.driver_data = TYPE_S3C24XX,
}, {
.name = "s3c64xx-adc",
.driver_data = TYPE_S3C64XX,
},
{}
};
{
.name = "s3c24xx-adc",
.driver_data = TYPE_S3C24XX,
}, {
.name = "s3c64xx-adc",
.driver_data = TYPE_S3C64XX,
},{
.name = "samsung-adc"
.driver_data = TYPE_S3C64XX,
},
{}
};
#include <plat/ts.h>
#endif
staticstruct s3c2410_ts_mach_info s5pc100_ts_cfg __initdata = {
.delay = 20000,
.presc = 49,
.oversampling_shift = 2,
};
#endif
……
……
};
&s3c_device_adc,
&s3c_device_ts,
#endif
{
……
}
s3c24xx_ts_set_platdata(&s5pc100_ts_cfg);
#endif
Device Drivers --->
Input device support --->
<*> Event interface
[*] Touchscreens --->
<*> Samsung S3C2410/generic touchscreen input driver
$ cp arch/arm/boot/zImage /tftpboo