Error when Samsung S3C2410/generic touchscreen disabled

  • Hello,


    we use a I2C touchscreen and it is available in the system as /dev/input/event1 to use ts_calibrate it has to be event0.
    So I tried to compile the Kernel with disabled "Samsung S3C2410/generic touchscreen input driver"
    If I do so I get errors in the methode

    Code
    1. static struct s3c2410_ts_mach_info default_ts_data /*__initdata*/ = {
    2. .setup_cycles = CONFIG_TOUCHSCREEN_S3C_SETUP_CYCLES,
    3. .samples = CONFIG_TOUCHSCREEN_S3C_SAMPLES,
    4. .debounce = CONFIG_TOUCHSCREEN_S3C_DEBOUNCE,
    5. .interval = CONFIG_TOUCHSCREEN_S3C_INTERVAL,
    6. .threshold_p = CONFIG_TOUCHSCREEN_S3C_THRESHOLD_P,
    7. .jitter_p = CONFIG_TOUCHSCREEN_S3C_JITTER_P,
    8. .jitter_x = CONFIG_TOUCHSCREEN_S3C_JITTER_X,
    9. .jitter_y = CONFIG_TOUCHSCREEN_S3C_JITTER_Y
    10. };


    in /arch/arm/plat-s3c24xx/devs.c


    I also looked into the .config and the constants are indeed not in .config, when I enable the "Samsung S3C2410/generic touchscreen input driver" everything is also in .config


    Any idea how to fix this?


    Kind regards,


    Christian Moll

  • OK, two solutions.


    1. You can set TSLIB_TSDEVICE to the according input event, then you can also use event1.


    Code
    1. export TSLIB_TSDEVICE=/dev/input/event1
    2. ts_calibrate


    2. Apply the patch below (relative to PicoCOM4 release V1.4). This will remove any compilation errors.


    Your F&S Support Team

  • Hello,


    just tried the patch, but I now become the error:


    Code
    1. CC arch/arm/plat-s3c24xx/devs.o
    2. arch/arm/plat-s3c24xx/devs.c:212:8: error: macro names must be identifiers
    3. make[1]: *** [arch/arm/plat-s3c24xx/devs.o] Error 1
    4. make: *** [arch/arm/plat-s3c24xx] Error 2


    In .config it is commented CONFIG_TOUCHSCREEN_S3C2410

  • Sorry, the patch is slightly wrong. In file arch/arm/plat-s3c24xx/devs.c it creates


    Code
    1. #ifdef (defined (CONFIG_TOUCHSCREEN_S3C2410) || defined (CONFIG_TOUCHSCREEN_S3C2410_MODULE))


    This should of course read


    Code
    1. #if (defined (CONFIG_TOUCHSCREEN_S3C2410) || defined (CONFIG_TOUCHSCREEN_S3C2410_MODULE))


    Sorry.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.