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
Kirill Smelkov
linux
Commits
6fac4a3c
Commit
6fac4a3c
authored
Jan 20, 2020
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
9e84a2e6
2a187d03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
drivers/mmc/host/sdhci-tegra.c
drivers/mmc/host/sdhci-tegra.c
+1
-1
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.c
+6
-4
No files found.
drivers/mmc/host/sdhci-tegra.c
View file @
6fac4a3c
...
...
@@ -386,7 +386,7 @@ static void tegra_sdhci_reset(struct sdhci_host *host, u8 mask)
misc_ctrl
|=
SDHCI_MISC_CTRL_ENABLE_DDR50
;
if
(
soc_data
->
nvquirks
&
NVQUIRK_ENABLE_SDR104
)
misc_ctrl
|=
SDHCI_MISC_CTRL_ENABLE_SDR104
;
if
(
soc_data
->
nvquirks
&
SDHCI_MISC_CTRL
_ENABLE_SDR50
)
if
(
soc_data
->
nvquirks
&
NVQUIRK
_ENABLE_SDR50
)
clk_ctrl
|=
SDHCI_CLOCK_CTRL_SDR50_TUNING_OVERRIDE
;
}
...
...
drivers/mmc/host/sdhci.c
View file @
6fac4a3c
...
...
@@ -4133,11 +4133,13 @@ int sdhci_setup_host(struct sdhci_host *host)
if
(
host
->
ops
->
get_min_clock
)
mmc
->
f_min
=
host
->
ops
->
get_min_clock
(
host
);
else
if
(
host
->
version
>=
SDHCI_SPEC_300
)
{
if
(
host
->
clk_mul
)
{
mmc
->
f_min
=
(
host
->
max_clk
*
host
->
clk_mul
)
/
1024
;
if
(
host
->
clk_mul
)
max_clk
=
host
->
max_clk
*
host
->
clk_mul
;
}
else
mmc
->
f_min
=
host
->
max_clk
/
SDHCI_MAX_DIV_SPEC_300
;
/*
* Divided Clock Mode minimum clock rate is always less than
* Programmable Clock Mode minimum clock rate.
*/
mmc
->
f_min
=
host
->
max_clk
/
SDHCI_MAX_DIV_SPEC_300
;
}
else
mmc
->
f_min
=
host
->
max_clk
/
SDHCI_MAX_DIV_SPEC_200
;
...
...
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