Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
53a366ec
Commit
53a366ec
authored
Feb 26, 2009
by
Kevin Hilman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MMC: davinci: drop cpu_is_* in favor of platform_data
Signed-off-by:
Kevin Hilman
<
khilman@deeprootsystems.com
>
parent
c951c42f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
arch/arm/mach-davinci/board-dm355-evm.c
arch/arm/mach-davinci/board-dm355-evm.c
+2
-0
arch/arm/mach-davinci/include/mach/mmc.h
arch/arm/mach-davinci/include/mach/mmc.h
+6
-0
drivers/mmc/host/davinci_mmc.c
drivers/mmc/host/davinci_mmc.c
+4
-4
No files found.
arch/arm/mach-davinci/board-dm355-evm.c
View file @
53a366ec
...
...
@@ -213,6 +213,8 @@ static struct davinci_mmc_config dm355evm_mmc_config = {
.
get_cd
=
dm355evm_mmc_get_cd
,
.
get_ro
=
dm355evm_mmc_get_ro
,
.
wires
=
4
,
.
max_freq
=
50000000
,
.
caps
=
MMC_CAP_MMC_HIGHSPEED
|
MMC_CAP_SD_HIGHSPEED
,
};
/* Don't connect anything to J10 unless you're only using USB host
...
...
arch/arm/mach-davinci/include/mach/mmc.h
View file @
53a366ec
...
...
@@ -6,6 +6,7 @@
#define _DAVINCI_MMC_H
#include <linux/types.h>
#include <linux/mmc/host.h>
struct
davinci_mmc_config
{
/* get_cd()/get_wp() may sleep */
...
...
@@ -13,6 +14,11 @@ struct davinci_mmc_config {
int
(
*
get_ro
)(
int
module
);
/* wires == 0 is equivalent to wires == 4 (4-bit parallel) */
u8
wires
;
u32
max_freq
;
/* any additional host capabilities: OR'd in to mmc->f_caps */
u32
caps
;
};
void
davinci_setup_mmc
(
int
module
,
struct
davinci_mmc_config
*
config
);
...
...
drivers/mmc/host/davinci_mmc.c
View file @
53a366ec
...
...
@@ -1158,10 +1158,10 @@ static int __init davinci_mmcsd_probe(struct platform_device *pdev)
mmc
->
ops
=
&
mmc_davinci_ops
;
mmc
->
f_min
=
312500
;
mmc
->
f_max
=
25000000
;
if
(
cpu_is_davinci_dm355
())
{
mmc
->
f_max
=
50000000
;
mmc
->
caps
|=
MMC_CAP_MMC_HIGHSPEED
|
MMC_CAP_SD_HIGHSPEED
;
}
if
(
pdata
->
max_freq
)
mmc
->
f_max
=
pdata
->
max_freq
;
if
(
pdata
->
caps
)
mmc
->
caps
|=
pdata
->
caps
;
mmc
->
ocr_avail
=
MMC_VDD_32_33
|
MMC_VDD_33_34
;
/* With no iommu coalescing pages, each phys_seg is a hw_seg.
...
...
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