Hi Haritha,
I've missed out one crucial point in my last mail. The
android input subsystem accepts and interprets the x,y co-ordinates
reported by the touch-driver (ads7846) properly if and only if the
Power Management support is enabled in Android. Hence please enable
CONFIG_PM while configuring the kernel for OMAP3 EVM.
Hope this would solve the issue.
On Thu, Apr 2, 2009 at 11:37 PM, haritha uppalapati <[email protected]> wrote:
> Hi Anil
>
> Thanks for the file.
> But its not working for me.
> with this file Whereever i touch the screen i see display of month and yesr
> on the left most part of the screen .
> and i observed that x and y coordinates are something like this( i
> uncommented printk befre input_report_abs)
>
>
> [ads7846_rx]: x=4353, y=7438, Pressure= 180
> [ads7846_rx]: x=4610, y=4353, Pressure= 114
> [ads7846_rx]: x=4353, y=4353, Pressure= 96
> [ads7846_rx]: x=7694, y=4353, Pressure= 143
> [ads7846_rx]: x=7437, y=7694, Pressure= 156
>
> Please let me know whats goig wrong and thanks for all the help
> regards
> Haritha
>
>
>
>
>
>
> On Thu, Apr 2, 2009 at 1:37 AM, Anil Sasidharan <[email protected]> wrote:
>>
>> 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
>>
>> On Thu, Apr 2, 2009 at 1:04 AM, haritha uppalapati <[email protected]>
>> wrote:
>> > 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
>> >
>> > On Wed, Apr 1, 2009 at 9:05 AM, Anil Sasidharan <[email protected]>
>> > wrote:
>> >>
>> >> 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
>> >>
>> >> On Wed, Apr 1, 2009 at 4:45 AM, haritha uppalapati <[email protected]>
>> >> wrote:
>> >> > 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
>> >> >
>> >> > On Thu, Mar 26, 2009 at 11:07 PM, Anil Sasidharan <[email protected]>
>> >> > wrote:
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> If this is Mistral's OMAP 3530 EVM, android has been ported
>> >> >> already. Please check the following URL:
>> >> >>
>> >> >> http://elinux.org/Android_on_OMAP
>> >> >>
>> >> >> Warm Regards,
>> >> >> Anil
>> >> >>
>> >> >> On 3/27/09, haritha <[email protected]> wrote:
>> >> >> >
>> >> >> > OMAP 3530 EVM
>> >> >> >
>> >> >> > On Mar 26, 4:31 pm, David Turner <[email protected]> wrote:
>> >> >> > > what is EVM ? :-)
>> >> >> > >
>> >> >> > > On Fri, Mar 27, 2009 at 12:28 AM, haritha <[email protected]>
>> >> >> > > wrote:
>> >> >> > >
>> >> >> > > > 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: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---