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
323decec
Commit
323decec
authored
Sep 15, 2005
by
Romain Goyet
Committed by
Tony Lindgren
Sep 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ARM: OMAP: Reset DMA channels in init and add support for 330
Reset DMA channels in init and add support for 330
parent
58059552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/dma.c
+7
-3
No files found.
arch/arm/plat-omap/dma.c
View file @
323decec
...
...
@@ -951,7 +951,7 @@ void omap_clear_dma(int lch)
local_irq_save
(
flags
);
omap_writew
(
omap_readw
(
OMAP_DMA_CCR
(
lch
))
&
~
OMAP_DMA_CCR_EN
,
OMAP_DMA_CCR
(
lch
));
status
=
OMAP_DMA_CSR
(
lch
);
/* clear pending interrupts */
status
=
omap_readw
(
OMAP_DMA_CSR
(
lch
)
);
/* clear pending interrupts */
local_irq_restore
(
flags
);
}
...
...
@@ -1016,8 +1016,8 @@ static int __init omap_init_dma(void)
{
int
ch
,
r
;
if
(
cpu_is_omap15
10
())
{
printk
(
KERN_INFO
"DMA support for OMAP15
10
initialized
\n
"
);
if
(
cpu_is_omap15
xx
())
{
printk
(
KERN_INFO
"DMA support for OMAP15
xx
initialized
\n
"
);
dma_chan_count
=
9
;
enable_1510_mode
=
1
;
}
else
if
(
cpu_is_omap16xx
()
||
cpu_is_omap730
())
{
...
...
@@ -1048,6 +1048,10 @@ static int __init omap_init_dma(void)
spin_lock_init
(
&
dma_chan_lock
);
memset
(
&
dma_chan
,
0
,
sizeof
(
dma_chan
));
/* Disable and clear all DMA channels to avoid spurious IRQ */
for
(
ch
=
0
;
ch
<
dma_chan_count
;
ch
++
)
{
omap_clear_dma
(
ch
);
}
for
(
ch
=
0
;
ch
<
dma_chan_count
;
ch
++
)
{
dma_chan
[
ch
].
dev_id
=
-
1
;
dma_chan
[
ch
].
next_lch
=
-
1
;
...
...
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