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
5c1589a9
Commit
5c1589a9
authored
Mar 25, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Add support for dev->coherent_dma_mask
This adds AMBA and SA11xx support for dev->coherent_dma_mask.
parent
808f7931
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
0 deletions
+22
-0
arch/arm/common/amba.c
arch/arm/common/amba.c
+4
-0
arch/arm/common/sa1111.c
arch/arm/common/sa1111.c
+3
-0
arch/arm/mach-sa1100/adsbitsy.c
arch/arm/mach-sa1100/adsbitsy.c
+1
-0
arch/arm/mach-sa1100/badge4.c
arch/arm/mach-sa1100/badge4.c
+1
-0
arch/arm/mach-sa1100/generic.c
arch/arm/mach-sa1100/generic.c
+6
-0
arch/arm/mach-sa1100/graphicsmaster.c
arch/arm/mach-sa1100/graphicsmaster.c
+1
-0
arch/arm/mach-sa1100/jornada720.c
arch/arm/mach-sa1100/jornada720.c
+1
-0
arch/arm/mach-sa1100/neponset.c
arch/arm/mach-sa1100/neponset.c
+1
-0
arch/arm/mach-sa1100/pfs168.c
arch/arm/mach-sa1100/pfs168.c
+1
-0
arch/arm/mach-sa1100/system3.c
arch/arm/mach-sa1100/system3.c
+1
-0
arch/arm/mach-sa1100/xp860.c
arch/arm/mach-sa1100/xp860.c
+1
-0
include/asm-arm/hardware/amba.h
include/asm-arm/hardware/amba.h
+1
-0
No files found.
arch/arm/common/amba.c
View file @
5c1589a9
...
...
@@ -199,8 +199,12 @@ int amba_device_register(struct amba_device *dev, struct resource *parent)
dev
->
dev
.
release
=
amba_device_release
;
dev
->
dev
.
bus
=
&
amba_bustype
;
dev
->
dev
.
dma_mask
=
&
dev
->
dma_mask
;
dev
->
res
.
name
=
dev
->
dev
.
bus_id
;
if
(
!
dev
->
dev
.
coherent_dma_mask
&&
dev
->
dma_mask
)
dev_warn
(
&
dev
->
dev
,
"coherent dma mask is unset
\n
"
);
ret
=
request_resource
(
parent
,
&
dev
->
res
);
if
(
ret
==
0
)
{
tmp
=
ioremap
(
dev
->
res
.
start
,
SZ_4K
);
...
...
arch/arm/common/sa1111.c
View file @
5c1589a9
...
...
@@ -516,6 +516,8 @@ sa1111_configure_smc(struct sa1111 *sachip, int sdram, unsigned int drac,
*/
if
(
sachip
->
dev
->
dma_mask
)
*
sachip
->
dev
->
dma_mask
&=
sa1111_dma_mask
[
drac
>>
2
];
sachip
->
dev
->
coherent_dma_mask
&=
sa1111_dma_mask
[
drac
>>
2
];
}
#endif
...
...
@@ -558,6 +560,7 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent,
dev
->
dev
.
parent
=
sachip
->
dev
;
dev
->
dev
.
bus
=
&
sa1111_bus_type
;
dev
->
dev
.
release
=
sa1111_dev_release
;
dev
->
dev
.
coherent_dma_mask
=
sachip
->
dev
->
coherent_dma_mask
;
dev
->
res
.
start
=
sachip
->
phys
+
info
->
offset
;
dev
->
res
.
end
=
dev
->
res
.
start
+
511
;
dev
->
res
.
name
=
dev
->
dev
.
bus_id
;
...
...
arch/arm/mach-sa1100/adsbitsy.c
View file @
5c1589a9
...
...
@@ -47,6 +47,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
arch/arm/mach-sa1100/badge4.c
View file @
5c1589a9
...
...
@@ -55,6 +55,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
;
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
arch/arm/mach-sa1100/generic.c
View file @
5c1589a9
...
...
@@ -162,6 +162,7 @@ static struct platform_device sa11x0udc_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa11x0udc_dma_mask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa11x0udc_resources
),
.
resource
=
sa11x0udc_resources
,
...
...
@@ -212,6 +213,7 @@ static struct platform_device sa11x0mcp_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa11x0mcp_dma_mask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa11x0mcp_resources
),
.
resource
=
sa11x0mcp_resources
,
...
...
@@ -232,6 +234,7 @@ static struct platform_device sa11x0ssp_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa11x0ssp_dma_mask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa11x0ssp_resources
),
.
resource
=
sa11x0ssp_resources
,
...
...
@@ -253,6 +256,9 @@ static struct resource sa11x0fb_resources[] = {
static
struct
platform_device
sa11x0fb_device
=
{
.
name
=
"sa11x0-fb"
,
.
id
=
0
,
.
dev
=
{
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa11x0fb_resources
),
.
resource
=
sa11x0fb_resources
,
};
...
...
arch/arm/mach-sa1100/graphicsmaster.c
View file @
5c1589a9
...
...
@@ -44,6 +44,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
arch/arm/mach-sa1100/jornada720.c
View file @
5c1589a9
...
...
@@ -44,6 +44,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
arch/arm/mach-sa1100/neponset.c
View file @
5c1589a9
...
...
@@ -251,6 +251,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
arch/arm/mach-sa1100/pfs168.c
View file @
5c1589a9
...
...
@@ -38,6 +38,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
arch/arm/mach-sa1100/system3.c
View file @
5c1589a9
...
...
@@ -393,6 +393,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
arch/arm/mach-sa1100/xp860.c
View file @
5c1589a9
...
...
@@ -45,6 +45,7 @@ static struct platform_device sa1111_device = {
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
sa1111_dmamask
,
.
coherent_dma_mask
=
0xffffffff
,
},
.
num_resources
=
ARRAY_SIZE
(
sa1111_resources
),
.
resource
=
sa1111_resources
,
...
...
include/asm-arm/hardware/amba.h
View file @
5c1589a9
...
...
@@ -15,6 +15,7 @@
struct
amba_device
{
struct
device
dev
;
struct
resource
res
;
u64
dma_mask
;
unsigned
int
periphid
;
unsigned
int
irq
[
AMBA_NR_IRQS
];
};
...
...
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