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
5479a013
Commit
5479a013
authored
Dec 14, 2021
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
50c4ef6b
4fc7261d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
17 deletions
+26
-17
drivers/mmc/host/sdhci-tegra.c
drivers/mmc/host/sdhci-tegra.c
+26
-17
No files found.
drivers/mmc/host/sdhci-tegra.c
View file @
5479a013
...
...
@@ -356,23 +356,6 @@ static void tegra_sdhci_set_tap(struct sdhci_host *host, unsigned int tap)
}
}
static
void
tegra_sdhci_hs400_enhanced_strobe
(
struct
mmc_host
*
mmc
,
struct
mmc_ios
*
ios
)
{
struct
sdhci_host
*
host
=
mmc_priv
(
mmc
);
u32
val
;
val
=
sdhci_readl
(
host
,
SDHCI_TEGRA_VENDOR_SYS_SW_CTRL
);
if
(
ios
->
enhanced_strobe
)
val
|=
SDHCI_TEGRA_SYS_SW_CTRL_ENHANCED_STROBE
;
else
val
&=
~
SDHCI_TEGRA_SYS_SW_CTRL_ENHANCED_STROBE
;
sdhci_writel
(
host
,
val
,
SDHCI_TEGRA_VENDOR_SYS_SW_CTRL
);
}
static
void
tegra_sdhci_reset
(
struct
sdhci_host
*
host
,
u8
mask
)
{
struct
sdhci_pltfm_host
*
pltfm_host
=
sdhci_priv
(
host
);
...
...
@@ -793,6 +776,32 @@ static void tegra_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
}
}
static
void
tegra_sdhci_hs400_enhanced_strobe
(
struct
mmc_host
*
mmc
,
struct
mmc_ios
*
ios
)
{
struct
sdhci_host
*
host
=
mmc_priv
(
mmc
);
u32
val
;
val
=
sdhci_readl
(
host
,
SDHCI_TEGRA_VENDOR_SYS_SW_CTRL
);
if
(
ios
->
enhanced_strobe
)
{
val
|=
SDHCI_TEGRA_SYS_SW_CTRL_ENHANCED_STROBE
;
/*
* When CMD13 is sent from mmc_select_hs400es() after
* switching to HS400ES mode, the bus is operating at
* either MMC_HIGH_26_MAX_DTR or MMC_HIGH_52_MAX_DTR.
* To meet Tegra SDHCI requirement at HS400ES mode, force SDHCI
* interface clock to MMC_HS200_MAX_DTR (200 MHz) so that host
* controller CAR clock and the interface clock are rate matched.
*/
tegra_sdhci_set_clock
(
host
,
MMC_HS200_MAX_DTR
);
}
else
{
val
&=
~
SDHCI_TEGRA_SYS_SW_CTRL_ENHANCED_STROBE
;
}
sdhci_writel
(
host
,
val
,
SDHCI_TEGRA_VENDOR_SYS_SW_CTRL
);
}
static
unsigned
int
tegra_sdhci_get_max_clock
(
struct
sdhci_host
*
host
)
{
struct
sdhci_pltfm_host
*
pltfm_host
=
sdhci_priv
(
host
);
...
...
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