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
c5d4dbff
Commit
c5d4dbff
authored
Jan 28, 2009
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] MX2: Add I2C devices / resources
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
824b16e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
arch/arm/mach-mx2/devices.c
arch/arm/mach-mx2/devices.c
+42
-0
arch/arm/mach-mx2/devices.h
arch/arm/mach-mx2/devices.h
+2
-0
No files found.
arch/arm/mach-mx2/devices.c
View file @
c5d4dbff
...
...
@@ -281,6 +281,48 @@ struct platform_device mxc_fec_device = {
};
#endif
static
struct
resource
mxc_i2c_1_resources
[]
=
{
[
0
]
=
{
.
start
=
I2C_BASE_ADDR
,
.
end
=
I2C_BASE_ADDR
+
0x0fff
,
.
flags
=
IORESOURCE_MEM
},
[
1
]
=
{
.
start
=
MXC_INT_I2C
,
.
end
=
MXC_INT_I2C
,
.
flags
=
IORESOURCE_IRQ
}
};
struct
platform_device
mxc_i2c_device0
=
{
.
name
=
"imx-i2c"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
mxc_i2c_1_resources
),
.
resource
=
mxc_i2c_1_resources
};
#ifdef CONFIG_MACH_MX27
static
struct
resource
mxc_i2c_2_resources
[]
=
{
[
0
]
=
{
.
start
=
I2C2_BASE_ADDR
,
.
end
=
I2C2_BASE_ADDR
+
0x0fff
,
.
flags
=
IORESOURCE_MEM
},
[
1
]
=
{
.
start
=
MXC_INT_I2C2
,
.
end
=
MXC_INT_I2C2
,
.
flags
=
IORESOURCE_IRQ
}
};
struct
platform_device
mxc_i2c_device1
=
{
.
name
=
"imx-i2c"
,
.
id
=
1
,
.
num_resources
=
ARRAY_SIZE
(
mxc_i2c_2_resources
),
.
resource
=
mxc_i2c_2_resources
};
#endif
static
struct
resource
mxc_pwm_resources
[]
=
{
[
0
]
=
{
.
start
=
PWM_BASE_ADDR
,
...
...
arch/arm/mach-mx2/devices.h
View file @
c5d4dbff
...
...
@@ -16,3 +16,5 @@ extern struct platform_device mxc_nand_device;
extern
struct
platform_device
mxc_fb_device
;
extern
struct
platform_device
mxc_fec_device
;
extern
struct
platform_device
mxc_pwm_device
;
extern
struct
platform_device
mxc_i2c_device0
;
extern
struct
platform_device
mxc_i2c_device1
;
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