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
08682ec4
Commit
08682ec4
authored
Jun 26, 2009
by
Sudhakar Rajashekhara
Committed by
Kevin Hilman
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MMC: davinci: EDMA API changes
Signed-off-by:
Kevin Hilman
<
khilman@deeprootsystems.com
>
parent
fff4943a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/mmc/host/davinci_mmc.c
drivers/mmc/host/davinci_mmc.c
+5
-5
No files found.
drivers/mmc/host/davinci_mmc.c
View file @
08682ec4
...
...
@@ -178,7 +178,7 @@ struct mmc_davinci_host {
u32
buffer_bytes_left
;
u32
bytes_left
;
u
8
rxdma
,
txdma
;
u
32
rxdma
,
txdma
;
bool
use_dma
;
bool
do_dma
;
...
...
@@ -190,7 +190,7 @@ struct mmc_davinci_host {
struct
edmacc_param
tx_template
;
struct
edmacc_param
rx_template
;
unsigned
n_link
;
u
8
links
[
NR_SG
-
1
];
u
32
links
[
NR_SG
-
1
];
/* For PIO we walk scatterlists one segment at a time. */
unsigned
int
sg_len
;
...
...
@@ -460,7 +460,7 @@ static void __init mmc_davinci_dma_setup(struct mmc_davinci_host *host,
edma_read_slot
(
sync_dev
,
template
);
/* don't bother with irqs or chaining */
template
->
opt
|=
sync_dev
<<
12
;
template
->
opt
|=
EDMA_CHAN_SLOT
(
sync_dev
)
<<
12
;
}
static
void
mmc_davinci_send_dma_request
(
struct
mmc_davinci_host
*
host
,
...
...
@@ -495,7 +495,7 @@ static void mmc_davinci_send_dma_request(struct mmc_davinci_host *host,
unsigned
count
=
sg_dma_len
(
sg
);
template
->
link_bcntrld
=
sg_len
?
(
host
->
links
[
link
]
<<
5
)
?
(
EDMA_CHAN_SLOT
(
host
->
links
[
link
])
<<
5
)
:
0xffff
;
if
(
count
>
bytes_left
)
...
...
@@ -589,7 +589,7 @@ static int __init davinci_acquire_dma_channels(struct mmc_davinci_host *host)
* channel as needed to handle a scatterlist.
*/
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
host
->
links
);
i
++
)
{
r
=
edma_alloc_slot
(
EDMA_SLOT_ANY
);
r
=
edma_alloc_slot
(
EDMA_
CTLR
(
host
->
txdma
),
EDMA_
SLOT_ANY
);
if
(
r
<
0
)
{
dev_dbg
(
mmc_dev
(
host
->
mmc
),
"dma PaRAM alloc --> %d
\n
"
,
r
);
...
...
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