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
f2cb641f
Commit
f2cb641f
authored
Nov 11, 2008
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm037: Add sdhc support
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
2adc1d65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
arch/arm/mach-mx3/pcm037.c
arch/arm/mach-mx3/pcm037.c
+28
-0
No files found.
arch/arm/mach-mx3/pcm037.c
View file @
f2cb641f
...
...
@@ -39,6 +39,7 @@
#include <mach/iomux-mx3.h>
#include <mach/board-pcm037.h>
#include <mach/mxc_nand.h>
#include <mach/mmc.h>
#ifdef CONFIG_I2C_IMX
#include <mach/i2c.h>
#endif
...
...
@@ -162,6 +163,32 @@ static struct i2c_board_info pcm037_i2c_devices[] = {
};
#endif
static
int
sdhc1_pins
[]
=
{
MX31_PIN_SD1_DATA3__SD1_DATA3
,
MX31_PIN_SD1_DATA2__SD1_DATA2
,
MX31_PIN_SD1_DATA1__SD1_DATA1
,
MX31_PIN_SD1_DATA0__SD1_DATA0
,
MX31_PIN_SD1_CLK__SD1_CLK
,
MX31_PIN_SD1_CMD__SD1_CMD
,
};
static
int
pcm970_sdhc1_init
(
struct
device
*
dev
,
irq_handler_t
h
,
void
*
data
)
{
return
mxc_iomux_setup_multiple_pins
(
sdhc1_pins
,
ARRAY_SIZE
(
sdhc1_pins
),
"sdhc-1"
);
}
static
void
pcm970_sdhc1_exit
(
struct
device
*
dev
,
void
*
data
)
{
mxc_iomux_release_multiple_pins
(
sdhc1_pins
,
ARRAY_SIZE
(
sdhc1_pins
));
}
/* No card and rw detection at the moment */
static
struct
imxmmc_platform_data
sdhc_pdata
=
{
.
init
=
pcm970_sdhc1_init
,
.
exit
=
pcm970_sdhc1_exit
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
pcm037_flash
,
&
pcm037_eth
,
...
...
@@ -208,6 +235,7 @@ static void __init mxc_board_init(void)
mxc_register_device
(
&
mxc_i2c_device1
,
&
pcm037_i2c_1_data
);
#endif
mxc_register_device
(
&
mxc_nand_device
,
&
pcm037_nand_board_info
);
mxc_register_device
(
&
mxcsdhc_device0
,
&
sdhc_pdata
);
}
static
void
__init
pcm037_timer_init
(
void
)
...
...
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