Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED U-Boot Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
KED Software Projects
Miscellaneous
KED U-Boot Fork
Commits
d283a570
Commit
d283a570
authored
10 years ago
by
Tom Rini
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-mmc
parents
052a681b
3a48944b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
drivers/mmc/mv_sdhci.c
+2
-2
2 additions, 2 deletions
drivers/mmc/mv_sdhci.c
drivers/mmc/s5p_sdhci.c
+1
-1
1 addition, 1 deletion
drivers/mmc/s5p_sdhci.c
drivers/mmc/sdhci.c
+4
-4
4 additions, 4 deletions
drivers/mmc/sdhci.c
with
7 additions
and
7 deletions
drivers/mmc/mv_sdhci.c
+
2
−
2
View file @
d283a570
...
...
@@ -12,7 +12,7 @@ static struct sdhci_ops mv_ops;
static
inline
void
mv_sdhci_writeb
(
struct
sdhci_host
*
host
,
u8
val
,
int
reg
)
{
struct
mmc
*
mmc
=
host
->
mmc
;
u32
ata
=
(
u
32
)
host
->
ioaddr
+
SD_CE_ATA_2
;
u32
ata
=
(
u
nsigned
long
)
host
->
ioaddr
+
SD_CE_ATA_2
;
if
(
!
IS_SD
(
mmc
)
&&
reg
==
SDHCI_HOST_CONTROL
)
{
if
(
mmc
->
bus_width
==
8
)
...
...
@@ -30,7 +30,7 @@ static inline void mv_sdhci_writeb(struct sdhci_host *host, u8 val, int reg)
#endif
/* CONFIG_MMC_SDHCI_IO_ACCESSORS */
static
char
*
MVSDH_NAME
=
"mv_sdh"
;
int
mv_sdh_init
(
u
32
regbase
,
u32
max_clk
,
u32
min_clk
,
u32
quirks
)
int
mv_sdh_init
(
u
nsigned
long
regbase
,
u32
max_clk
,
u32
min_clk
,
u32
quirks
)
{
struct
sdhci_host
*
host
=
NULL
;
host
=
(
struct
sdhci_host
*
)
malloc
(
sizeof
(
struct
sdhci_host
));
...
...
This diff is collapsed.
Click to expand it.
drivers/mmc/s5p_sdhci.c
+
1
−
1
View file @
d283a570
...
...
@@ -30,7 +30,7 @@ static void s5p_sdhci_set_control_reg(struct sdhci_host *host)
sdhci_writel
(
host
,
SDHCI_CTRL4_DRIVE_MASK
(
0x3
),
SDHCI_CONTROL4
);
val
=
sdhci_readl
(
host
,
SDHCI_CONTROL2
);
val
&=
SDHCI_CTRL2_SELBASECLK_
SHIFT
;
val
&=
SDHCI_CTRL2_SELBASECLK_
MASK
(
3
)
;
val
|=
SDHCI_CTRL2_ENSTAASYNCCLR
|
SDHCI_CTRL2_ENCMDCNFMSK
|
...
...
This diff is collapsed.
Click to expand it.
drivers/mmc/sdhci.c
+
4
−
4
View file @
d283a570
...
...
@@ -194,13 +194,13 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
#ifdef CONFIG_MMC_SDMA
if
(
data
->
flags
==
MMC_DATA_READ
)
start_addr
=
(
unsigned
int
)
data
->
dest
;
start_addr
=
(
unsigned
long
)
data
->
dest
;
else
start_addr
=
(
unsigned
int
)
data
->
src
;
start_addr
=
(
unsigned
long
)
data
->
src
;
if
((
host
->
quirks
&
SDHCI_QUIRK_32BIT_DMA_ADDR
)
&&
(
start_addr
&
0x7
)
!=
0x0
)
{
is_aligned
=
0
;
start_addr
=
(
unsigned
int
)
aligned_buffer
;
start_addr
=
(
unsigned
long
)
aligned_buffer
;
if
(
data
->
flags
!=
MMC_DATA_READ
)
memcpy
(
aligned_buffer
,
data
->
src
,
trans_bytes
);
}
...
...
@@ -412,7 +412,7 @@ static int sdhci_init(struct mmc *mmc)
if
(
host
->
quirks
&
SDHCI_QUIRK_NO_CD
)
{
unsigned
int
status
;
sdhci_write
l
(
host
,
SDHCI_CTRL_CD_TEST_INS
|
SDHCI_CTRL_CD_TEST
,
sdhci_write
b
(
host
,
SDHCI_CTRL_CD_TEST_INS
|
SDHCI_CTRL_CD_TEST
,
SDHCI_HOST_CONTROL
);
status
=
sdhci_readl
(
host
,
SDHCI_PRESENT_STATE
);
...
...
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