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
nexedi
linux
Commits
01875d56
Commit
01875d56
authored
Sep 17, 2009
by
Ben Dooks
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'next-s3c64xx-fixes' into next-s3c-fixes
parents
d23b3517
b93011e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
arch/arm/plat-s3c64xx/dma.c
arch/arm/plat-s3c64xx/dma.c
+3
-3
arch/arm/plat-s3c64xx/include/plat/dma-plat.h
arch/arm/plat-s3c64xx/include/plat/dma-plat.h
+1
-1
arch/arm/plat-s3c64xx/s3c6400-clock.c
arch/arm/plat-s3c64xx/s3c6400-clock.c
+5
-3
No files found.
arch/arm/plat-s3c64xx/dma.c
View file @
01875d56
...
...
@@ -345,13 +345,13 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
if
(
!
chan
)
return
-
EINVAL
;
buff
=
kzalloc
(
sizeof
(
struct
s3c64xx_dma_buff
),
GFP_
KERNEL
);
buff
=
kzalloc
(
sizeof
(
struct
s3c64xx_dma_buff
),
GFP_
ATOMIC
);
if
(
!
buff
)
{
printk
(
KERN_ERR
"%s: no memory for buffer
\n
"
,
__func__
);
return
-
ENOMEM
;
}
lli
=
dma_pool_alloc
(
dma_pool
,
GFP_
KERNEL
,
&
buff
->
lli_dma
);
lli
=
dma_pool_alloc
(
dma_pool
,
GFP_
ATOMIC
,
&
buff
->
lli_dma
);
if
(
!
lli
)
{
printk
(
KERN_ERR
"%s: no memory for lli
\n
"
,
__func__
);
ret
=
-
ENOMEM
;
...
...
@@ -697,7 +697,7 @@ static int __init s3c64xx_dma_init(void)
printk
(
KERN_INFO
"%s: Registering DMA channels
\n
"
,
__func__
);
dma_pool
=
dma_pool_create
(
"DMA-LLI"
,
NULL
,
32
,
16
,
0
);
dma_pool
=
dma_pool_create
(
"DMA-LLI"
,
NULL
,
sizeof
(
struct
pl080s_lli
)
,
16
,
0
);
if
(
!
dma_pool
)
{
printk
(
KERN_ERR
"%s: failed to create pool
\n
"
,
__func__
);
return
-
ENOMEM
;
...
...
arch/arm/plat-s3c64xx/include/plat/dma-plat.h
View file @
01875d56
...
...
@@ -26,7 +26,7 @@ struct s3c64xx_dma_buff {
struct
s3c64xx_dma_buff
*
next
;
void
*
pw
;
struct
pl080_lli
*
lli
;
struct
pl080
s
_lli
*
lli
;
dma_addr_t
lli_dma
;
};
...
...
arch/arm/plat-s3c64xx/s3c6400-clock.c
View file @
01875d56
...
...
@@ -302,8 +302,8 @@ static int s3c64xx_setrate_clksrc(struct clk *clk, unsigned long rate)
return
-
EINVAL
;
val
=
__raw_readl
(
reg
);
val
&=
~
(
0xf
<<
sclk
->
shift
);
val
|=
(
div
-
1
)
<<
sclk
->
shift
;
val
&=
~
(
0xf
<<
sclk
->
divider_
shift
);
val
|=
(
div
-
1
)
<<
sclk
->
divider_
shift
;
__raw_writel
(
val
,
reg
);
return
0
;
...
...
@@ -328,6 +328,8 @@ static int s3c64xx_setparent_clksrc(struct clk *clk, struct clk *parent)
clksrc
|=
src_nr
<<
sclk
->
shift
;
__raw_writel
(
clksrc
,
S3C_CLK_SRC
);
clk
->
parent
=
parent
;
return
0
;
}
...
...
@@ -343,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
if
(
rate
>
parent_rate
)
rate
=
parent_rate
;
else
{
div
=
rate
/
parent_
rate
;
div
=
parent_rate
/
rate
;
if
(
div
==
0
)
div
=
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