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
824b16e6
Commit
824b16e6
authored
Jan 16, 2009
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] MX2: add pwm device/resources
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
166091b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
arch/arm/mach-mx2/devices.c
arch/arm/mach-mx2/devices.c
+20
-0
arch/arm/mach-mx2/devices.h
arch/arm/mach-mx2/devices.h
+1
-0
No files found.
arch/arm/mach-mx2/devices.c
View file @
824b16e6
...
@@ -281,6 +281,26 @@ struct platform_device mxc_fec_device = {
...
@@ -281,6 +281,26 @@ struct platform_device mxc_fec_device = {
};
};
#endif
#endif
static
struct
resource
mxc_pwm_resources
[]
=
{
[
0
]
=
{
.
start
=
PWM_BASE_ADDR
,
.
end
=
PWM_BASE_ADDR
+
0x0fff
,
.
flags
=
IORESOURCE_MEM
},
[
1
]
=
{
.
start
=
MXC_INT_PWM
,
.
end
=
MXC_INT_PWM
,
.
flags
=
IORESOURCE_IRQ
,
}
};
struct
platform_device
mxc_pwm_device
=
{
.
name
=
"mxc_pwm"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
mxc_pwm_resources
),
.
resource
=
mxc_pwm_resources
};
/* GPIO port description */
/* GPIO port description */
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
[
0
]
=
{
[
0
]
=
{
...
...
arch/arm/mach-mx2/devices.h
View file @
824b16e6
...
@@ -15,3 +15,4 @@ extern struct platform_device mxc_w1_master_device;
...
@@ -15,3 +15,4 @@ extern struct platform_device mxc_w1_master_device;
extern
struct
platform_device
mxc_nand_device
;
extern
struct
platform_device
mxc_nand_device
;
extern
struct
platform_device
mxc_fb_device
;
extern
struct
platform_device
mxc_fb_device
;
extern
struct
platform_device
mxc_fec_device
;
extern
struct
platform_device
mxc_fec_device
;
extern
struct
platform_device
mxc_pwm_device
;
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