Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
37fbceef
Commit
37fbceef
authored
Mar 22, 2006
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge source.mvista.com:/home/git/linux-omap-2.6
parents
8e3d8c6f
adee4c09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/board-nokia770.c
+1
-1
drivers/input/touchscreen/ads7846.c
drivers/input/touchscreen/ads7846.c
+17
-0
No files found.
arch/arm/mach-omap1/board-nokia770.c
View file @
37fbceef
...
...
@@ -94,7 +94,7 @@ static struct ads7846_platform_data nokia770_ads7846_platform_data __initdata =
.
x_max
=
0x0fff
,
.
y_max
=
0x0fff
,
.
x_plate_ohms
=
180
,
.
pressure_max
=
2
00
,
.
pressure_max
=
2
55
,
.
debounce_max
=
10
,
.
debounce_tol
=
3
,
};
...
...
drivers/input/touchscreen/ads7846.c
View file @
37fbceef
...
...
@@ -80,10 +80,14 @@ struct ads7846 {
u16
model
;
u16
vref_delay_usecs
;
u16
x_plate_ohms
;
u16
pressure_max
;
u8
read_x
,
read_y
,
read_z1
,
read_z2
,
pwrdown
;
u16
dummy
;
/* for the pwrdown read */
struct
ts_event
tc
;
u16
last_x
;
u16
last_y
;
u16
last_pressure
;
struct
spi_transfer
xfer
[
10
];
struct
spi_message
msg
[
5
];
...
...
@@ -344,6 +348,18 @@ static void ads7846_rx(void *ads)
}
else
Rt
=
0
;
if
(
Rt
>
ts
->
pressure_max
)
{
if
(
ts
->
last_pressure
)
{
x
=
ts
->
last_x
;
y
=
ts
->
last_y
;
}
Rt
=
ts
->
pressure_max
;
}
ts
->
last_x
=
x
;
ts
->
last_y
=
y
;
ts
->
last_pressure
=
Rt
;
/* NOTE: "pendown" is inferred from pressure; we don't rely on
* being able to check nPENIRQ status, or "friendly" trigger modes
* (both-edges is much better than just-falling or low-level).
...
...
@@ -593,6 +609,7 @@ static int __devinit ads7846_probe(struct spi_device *spi)
ts
->
model
=
pdata
->
model
?
:
7846
;
ts
->
vref_delay_usecs
=
pdata
->
vref_delay_usecs
?
:
100
;
ts
->
x_plate_ohms
=
pdata
->
x_plate_ohms
?
:
400
;
ts
->
pressure_max
=
pdata
->
pressure_max
?
:
~
0
;
ts
->
debounce_max
=
pdata
->
debounce_max
?
:
1
;
ts
->
debounce_tol
=
pdata
->
debounce_tol
?
:
10
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment