Discussion:
Porting android to EVM
Anil Sasidharan
2009-04-02 08:37:17 UTC
Permalink
Hi Haritha,

The patched (for Android on OMAP3 EVM ) version of
ads7846.c attached herewith. Please test this out and let me know.

Warm Regards,
Anil
Hi Anil
i did the changes..but no luck :(
 ads7846.c is like this
#################################3
 if (Rt) {
                struct input_dev *input = ts->input;
                if (!ts->pendown) {
                        input_report_key(input, BTN_TOUCH, 1);
                        ts->pendown = 1;
#ifdef VERBOSE
                        dev_dbg(&ts->spi->dev, "DOWN\n");
#endif
                }
                input_report_abs(input, ABS_X,pdata->x_max - x);
                input_report_abs(input, ABS_Y,pdata->y_max - y);
                input_report_abs(input, ABS_PRESSURE, Rt);
                input_sync(input);
#ifdef VERBOSE
                dev_dbg(&ts->spi->dev, "%4d/%4d/%4d\n", x, y, Rt);
#endif
        }
########################################
if you dont mind can you please share copy of ads7846.c
thanks and regards
Haritha
Hi Haritha,
              While I was porting Android onto Mistral's 3530 EVM, I
did not have to do any calibration for touchscreen. However the
default ads7846 driver needs to be modified to support Android.
Basically you will have to report the BTN_TOUCH and PRESSURE with a
valid value during pen_down and reset them during pen_up (in terms of
reporting the values as zero). Another important thing you need to see
if the co-ordinates are getting reported as per Android's co-ordinate
system (some thing like: report ABS_X, ABS_Y as [MAX_X - actual_X] and
[MAX_Y - actual_Y] respectively.
Hope this helps you someways. In case you still have issues, please
let me get back to some of my older mails and dig out some details I
had posted some time ago on this.
Warm Regards,
Anil
hi Anil
i was successful in porting android to mistral evm.
But touchscreen is not responding when i touch the apps.
what are the changes to be made to make touch screen work.Do i need to
do
any calibration.
Thanks for your help.
regards
Haritha
Hi,
       If this is Mistral's OMAP 3530 EVM, android has been ported
http://elinux.org/Android_on_OMAP
Warm Regards,
Anil
OMAP 3530 EVM
what is EVM ? :-)
Hi
I'm porting android to EVM.
Was success full with keypad and networking.But touchscreen is
not
responding.
If i run getevent /dev/input/event1 i can see values whenever i
touch
the screen.
but no response on the device.
Please share if you have any ideas.
And do we have to enable CONFIG_ANDROID_POWER for touchscreen to
work
thanks and regards
Haritha
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscribe-/***@public.gmane.org
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Loading...