Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
onny
uboot-i9100
Commits
f78cb2ab
Commit
f78cb2ab
authored
11 years ago
by
Tom Rini
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-mmc
parents
2a693605
a61da72b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/mmc/dw_mmc.c
+0
-1
0 additions, 1 deletion
drivers/mmc/dw_mmc.c
drivers/mmc/fsl_esdhc.c
+4
-4
4 additions, 4 deletions
drivers/mmc/fsl_esdhc.c
with
4 additions
and
5 deletions
drivers/mmc/dw_mmc.c
+
0
−
1
View file @
f78cb2ab
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include
<malloc.h>
#include
<malloc.h>
#include
<mmc.h>
#include
<mmc.h>
#include
<dwmmc.h>
#include
<dwmmc.h>
#include
<asm/arch/clk.h>
#include
<asm-generic/errno.h>
#include
<asm-generic/errno.h>
#define PAGE_SIZE 4096
#define PAGE_SIZE 4096
...
...
This diff is collapsed.
Click to expand it.
drivers/mmc/fsl_esdhc.c
+
4
−
4
View file @
f78cb2ab
...
@@ -100,7 +100,7 @@ static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)
...
@@ -100,7 +100,7 @@ static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)
else
if
(
cmd
->
resp_type
&
MMC_RSP_PRESENT
)
else
if
(
cmd
->
resp_type
&
MMC_RSP_PRESENT
)
xfertyp
|=
XFERTYP_RSPTYP_48
;
xfertyp
|=
XFERTYP_RSPTYP_48
;
#ifdef
CONFIG_MX53
#if
def
ined(
CONFIG_MX53
) || defined(CONFIG_T4240QDS)
if
(
cmd
->
cmdidx
==
MMC_CMD_STOP_TRANSMISSION
)
if
(
cmd
->
cmdidx
==
MMC_CMD_STOP_TRANSMISSION
)
xfertyp
|=
XFERTYP_CMDTYP_ABORT
;
xfertyp
|=
XFERTYP_CMDTYP_ABORT
;
#endif
#endif
...
@@ -470,7 +470,7 @@ static int esdhc_init(struct mmc *mmc)
...
@@ -470,7 +470,7 @@ static int esdhc_init(struct mmc *mmc)
int
timeout
=
1000
;
int
timeout
=
1000
;
/* Reset the entire host controller */
/* Reset the entire host controller */
esdhc_
wr
it
e
32
(
&
regs
->
sysctl
,
SYSCTL_RSTA
);
esdhc_
setb
it
s
32
(
&
regs
->
sysctl
,
SYSCTL_RSTA
);
/* Wait until the controller is available */
/* Wait until the controller is available */
while
((
esdhc_read32
(
&
regs
->
sysctl
)
&
SYSCTL_RSTA
)
&&
--
timeout
)
while
((
esdhc_read32
(
&
regs
->
sysctl
)
&
SYSCTL_RSTA
)
&&
--
timeout
)
...
@@ -481,7 +481,7 @@ static int esdhc_init(struct mmc *mmc)
...
@@ -481,7 +481,7 @@ static int esdhc_init(struct mmc *mmc)
esdhc_write32
(
&
regs
->
scr
,
0x00000040
);
esdhc_write32
(
&
regs
->
scr
,
0x00000040
);
#endif
#endif
esdhc_
wr
it
e
32
(
&
regs
->
sysctl
,
SYSCTL_HCKEN
|
SYSCTL_IPGEN
);
esdhc_
setb
it
s
32
(
&
regs
->
sysctl
,
SYSCTL_HCKEN
|
SYSCTL_IPGEN
);
/* Set the initial clock speed */
/* Set the initial clock speed */
mmc_set_clock
(
mmc
,
400000
);
mmc_set_clock
(
mmc
,
400000
);
...
@@ -515,7 +515,7 @@ static void esdhc_reset(struct fsl_esdhc *regs)
...
@@ -515,7 +515,7 @@ static void esdhc_reset(struct fsl_esdhc *regs)
unsigned
long
timeout
=
100
;
/* wait max 100 ms */
unsigned
long
timeout
=
100
;
/* wait max 100 ms */
/* reset the controller */
/* reset the controller */
esdhc_
wr
it
e
32
(
&
regs
->
sysctl
,
SYSCTL_RSTA
);
esdhc_
setb
it
s
32
(
&
regs
->
sysctl
,
SYSCTL_RSTA
);
/* hardware clears the bit when it is done */
/* hardware clears the bit when it is done */
while
((
esdhc_read32
(
&
regs
->
sysctl
)
&
SYSCTL_RSTA
)
&&
--
timeout
)
while
((
esdhc_read32
(
&
regs
->
sysctl
)
&
SYSCTL_RSTA
)
&&
--
timeout
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment