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
a5d176a1
Commit
a5d176a1
authored
Oct 06, 2009
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: iPAQ: separate IrDA machine specifics
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
898e810e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
21 deletions
+41
-21
arch/arm/mach-sa1100/h3600.c
arch/arm/mach-sa1100/h3600.c
+41
-21
No files found.
arch/arm/mach-sa1100/h3600.c
View file @
a5d176a1
...
@@ -80,30 +80,9 @@ static struct resource h3xxx_flash_resource = {
...
@@ -80,30 +80,9 @@ static struct resource h3xxx_flash_resource = {
.
flags
=
IORESOURCE_MEM
,
.
flags
=
IORESOURCE_MEM
,
};
};
/*
* This turns the IRDA power on or off on the Compaq H3600
*/
static
int
h3600_irda_set_power
(
struct
device
*
dev
,
unsigned
int
state
)
{
assign_h3600_egpio
(
IPAQ_EGPIO_IR_ON
,
state
);
return
0
;
}
static
void
h3600_irda_set_speed
(
struct
device
*
dev
,
unsigned
int
speed
)
{
assign_h3600_egpio
(
IPAQ_EGPIO_IR_FSEL
,
!
(
speed
<
4000000
));
}
static
struct
irda_platform_data
h3600_irda_data
=
{
.
set_power
=
h3600_irda_set_power
,
.
set_speed
=
h3600_irda_set_speed
,
};
static
void
h3xxx_mach_init
(
void
)
static
void
h3xxx_mach_init
(
void
)
{
{
sa11x0_register_mtd
(
&
h3xxx_flash_data
,
&
h3xxx_flash_resource
,
1
);
sa11x0_register_mtd
(
&
h3xxx_flash_data
,
&
h3xxx_flash_resource
,
1
);
sa11x0_register_irda
(
&
h3600_irda_data
);
}
}
/*
/*
...
@@ -321,9 +300,30 @@ static void __init h3100_map_io(void)
...
@@ -321,9 +300,30 @@ static void __init h3100_map_io(void)
assign_h3600_egpio
=
h3100_control_egpio
;
assign_h3600_egpio
=
h3100_control_egpio
;
}
}
/*
* This turns the IRDA power on or off on the Compaq H3100
*/
static
int
h3100_irda_set_power
(
struct
device
*
dev
,
unsigned
int
state
)
{
assign_h3100_egpio
(
IPAQ_EGPIO_IR_ON
,
state
);
return
0
;
}
static
void
h3100_irda_set_speed
(
struct
device
*
dev
,
unsigned
int
speed
)
{
assign_h3100_egpio
(
IPAQ_EGPIO_IR_FSEL
,
!
(
speed
<
4000000
));
}
static
struct
irda_platform_data
h3100_irda_data
=
{
.
set_power
=
h3100_irda_set_power
,
.
set_speed
=
h3100_irda_set_speed
,
};
static
void
h3100_mach_init
(
void
)
static
void
h3100_mach_init
(
void
)
{
{
h3xxx_mach_init
();
h3xxx_mach_init
();
sa11x0_register_irda
(
&
h3100_irda_data
);
}
}
MACHINE_START
(
H3100
,
"Compaq iPAQ H3100"
)
MACHINE_START
(
H3100
,
"Compaq iPAQ H3100"
)
...
@@ -423,9 +423,29 @@ static void __init h3600_map_io(void)
...
@@ -423,9 +423,29 @@ static void __init h3600_map_io(void)
assign_h3600_egpio
=
h3600_control_egpio
;
assign_h3600_egpio
=
h3600_control_egpio
;
}
}
/*
* This turns the IRDA power on or off on the Compaq H3600
*/
static
int
h3600_irda_set_power
(
struct
device
*
dev
,
unsigned
int
state
)
{
assign_h3600_egpio
(
IPAQ_EGPIO_IR_ON
,
state
);
return
0
;
}
static
void
h3600_irda_set_speed
(
struct
device
*
dev
,
unsigned
int
speed
)
{
assign_h3600_egpio
(
IPAQ_EGPIO_IR_FSEL
,
!
(
speed
<
4000000
));
}
static
struct
irda_platform_data
h3600_irda_data
=
{
.
set_power
=
h3600_irda_set_power
,
.
set_speed
=
h3600_irda_set_speed
,
};
static
void
h3600_mach_init
(
void
)
static
void
h3600_mach_init
(
void
)
{
{
h3xxx_mach_init
();
h3xxx_mach_init
();
sa11x0_register_irda
(
&
h3600_irda_data
);
}
}
MACHINE_START
(
H3600
,
"Compaq iPAQ H3600"
)
MACHINE_START
(
H3600
,
"Compaq iPAQ H3600"
)
...
...
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