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
7ad43a14
Commit
7ad43a14
authored
Jan 15, 2018
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
de21dc1d
499ed50f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-esdhc-imx.c
+14
-0
No files found.
drivers/mmc/host/sdhci-esdhc-imx.c
View file @
7ad43a14
...
...
@@ -688,6 +688,20 @@ static inline void esdhc_pltfm_set_clock(struct sdhci_host *host,
return
;
}
/* For i.MX53 eSDHCv3, SYSCTL.SDCLKFS may not be set to 0. */
if
(
is_imx53_esdhc
(
imx_data
))
{
/*
* According to the i.MX53 reference manual, if DLLCTRL[10] can
* be set, then the controller is eSDHCv3, else it is eSDHCv2.
*/
val
=
readl
(
host
->
ioaddr
+
ESDHC_DLL_CTRL
);
writel
(
val
|
BIT
(
10
),
host
->
ioaddr
+
ESDHC_DLL_CTRL
);
temp
=
readl
(
host
->
ioaddr
+
ESDHC_DLL_CTRL
);
writel
(
val
,
host
->
ioaddr
+
ESDHC_DLL_CTRL
);
if
(
temp
&
BIT
(
10
))
pre_div
=
2
;
}
temp
=
sdhci_readl
(
host
,
ESDHC_SYSTEM_CONTROL
);
temp
&=
~
(
ESDHC_CLOCK_IPGEN
|
ESDHC_CLOCK_HCKEN
|
ESDHC_CLOCK_PEREN
|
ESDHC_CLOCK_MASK
);
...
...
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