Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3e36c0de
Commit
3e36c0de
authored
Feb 06, 2009
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa: make ads7846 on corgi and spitz to sync on HSYNC
Signed-off-by:
Eric Miao
<
eric.miao@marvell.com
>
parent
36b5437f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
arch/arm/mach-pxa/corgi.c
arch/arm/mach-pxa/corgi.c
+10
-0
arch/arm/mach-pxa/spitz.c
arch/arm/mach-pxa/spitz.c
+10
-0
No files found.
arch/arm/mach-pxa/corgi.c
View file @
3e36c0de
...
...
@@ -427,12 +427,22 @@ static struct pxa2xx_spi_master corgi_spi_info = {
.
num_chipselect
=
3
,
};
static
void
corgi_wait_for_hsync
(
void
)
{
while
(
gpio_get_value
(
CORGI_GPIO_HSYNC
))
cpu_relax
();
while
(
!
gpio_get_value
(
CORGI_GPIO_HSYNC
))
cpu_relax
();
}
static
struct
ads7846_platform_data
corgi_ads7846_info
=
{
.
model
=
7846
,
.
vref_delay_usecs
=
100
,
.
x_plate_ohms
=
419
,
.
y_plate_ohms
=
486
,
.
gpio_pendown
=
CORGI_GPIO_TP_INT
,
.
wait_for_sync
=
corgi_wait_for_hsync
,
};
static
void
corgi_ads7846_cs
(
u32
command
)
...
...
arch/arm/mach-pxa/spitz.c
View file @
3e36c0de
...
...
@@ -299,12 +299,22 @@ static struct pxa2xx_spi_master spitz_spi_info = {
.
num_chipselect
=
3
,
};
static
void
spitz_wait_for_hsync
(
void
)
{
while
(
gpio_get_value
(
SPITZ_GPIO_HSYNC
))
cpu_relax
();
while
(
!
gpio_get_value
(
SPITZ_GPIO_HSYNC
))
cpu_relax
();
}
static
struct
ads7846_platform_data
spitz_ads7846_info
=
{
.
model
=
7846
,
.
vref_delay_usecs
=
100
,
.
x_plate_ohms
=
419
,
.
y_plate_ohms
=
486
,
.
gpio_pendown
=
SPITZ_GPIO_TP_INT
,
.
wait_for_sync
=
spitz_wait_for_hsync
,
};
static
void
spitz_ads7846_cs
(
u32
command
)
...
...
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