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
2adc1d65
Commit
2adc1d65
authored
Dec 19, 2008
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MX31: Add sdhc resources/platform devices
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
1a02be0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
arch/arm/mach-mx3/devices.c
arch/arm/mach-mx3/devices.c
+40
-0
arch/arm/mach-mx3/devices.h
arch/arm/mach-mx3/devices.h
+2
-0
No files found.
arch/arm/mach-mx3/devices.c
View file @
2adc1d65
...
@@ -245,6 +245,46 @@ struct platform_device mxc_i2c_device2 = {
...
@@ -245,6 +245,46 @@ struct platform_device mxc_i2c_device2 = {
.
resource
=
mxc_i2c2_resources
,
.
resource
=
mxc_i2c2_resources
,
};
};
#ifdef CONFIG_ARCH_MX31
static
struct
resource
mxcsdhc0_resources
[]
=
{
{
.
start
=
MMC_SDHC1_BASE_ADDR
,
.
end
=
MMC_SDHC1_BASE_ADDR
+
SZ_16K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_MMC_SDHC1
,
.
end
=
MXC_INT_MMC_SDHC1
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
resource
mxcsdhc1_resources
[]
=
{
{
.
start
=
MMC_SDHC2_BASE_ADDR
,
.
end
=
MMC_SDHC2_BASE_ADDR
+
SZ_16K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_MMC_SDHC2
,
.
end
=
MXC_INT_MMC_SDHC2
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mxcsdhc_device0
=
{
.
name
=
"mxc-mmc"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
mxcsdhc0_resources
),
.
resource
=
mxcsdhc0_resources
,
};
struct
platform_device
mxcsdhc_device1
=
{
.
name
=
"mxc-mmc"
,
.
id
=
1
,
.
num_resources
=
ARRAY_SIZE
(
mxcsdhc1_resources
),
.
resource
=
mxcsdhc1_resources
,
};
#endif
/* CONFIG_ARCH_MX31 */
/* i.MX31 Image Processing Unit */
/* i.MX31 Image Processing Unit */
/* The resource order is important! */
/* The resource order is important! */
...
...
arch/arm/mach-mx3/devices.h
View file @
2adc1d65
...
@@ -12,3 +12,5 @@ extern struct platform_device mxc_i2c_device2;
...
@@ -12,3 +12,5 @@ extern struct platform_device mxc_i2c_device2;
extern
struct
platform_device
mx3_ipu
;
extern
struct
platform_device
mx3_ipu
;
extern
struct
platform_device
mx3_fb
;
extern
struct
platform_device
mx3_fb
;
extern
struct
platform_device
mxc_fec_device
;
extern
struct
platform_device
mxc_fec_device
;
extern
struct
platform_device
mxcsdhc_device0
;
extern
struct
platform_device
mxcsdhc_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