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
8e6c1db3
Commit
8e6c1db3
authored
Nov 14, 2017
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/ti' into for-linus
parents
d2045ba3
288e7560
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
drivers/dma/edma.c
drivers/dma/edma.c
+5
-0
drivers/dma/omap-dma.c
drivers/dma/omap-dma.c
+5
-0
drivers/dma/ti-dma-crossbar.c
drivers/dma/ti-dma-crossbar.c
+4
-4
No files found.
drivers/dma/edma.c
View file @
8e6c1db3
...
...
@@ -891,6 +891,10 @@ static int edma_slave_config(struct dma_chan *chan,
cfg
->
dst_addr_width
==
DMA_SLAVE_BUSWIDTH_8_BYTES
)
return
-
EINVAL
;
if
(
cfg
->
src_maxburst
>
chan
->
device
->
max_burst
||
cfg
->
dst_maxburst
>
chan
->
device
->
max_burst
)
return
-
EINVAL
;
memcpy
(
&
echan
->
cfg
,
cfg
,
sizeof
(
echan
->
cfg
));
return
0
;
...
...
@@ -1855,6 +1859,7 @@ static void edma_dma_init(struct edma_cc *ecc, bool legacy_mode)
s_ddev
->
dst_addr_widths
=
EDMA_DMA_BUSWIDTHS
;
s_ddev
->
directions
|=
(
BIT
(
DMA_DEV_TO_MEM
)
|
BIT
(
DMA_MEM_TO_DEV
));
s_ddev
->
residue_granularity
=
DMA_RESIDUE_GRANULARITY_BURST
;
s_ddev
->
max_burst
=
SZ_32K
-
1
;
/* CIDX: 16bit signed */
s_ddev
->
dev
=
ecc
->
dev
;
INIT_LIST_HEAD
(
&
s_ddev
->
channels
);
...
...
drivers/dma/omap-dma.c
View file @
8e6c1db3
...
...
@@ -1288,6 +1288,10 @@ static int omap_dma_slave_config(struct dma_chan *chan, struct dma_slave_config
cfg
->
dst_addr_width
==
DMA_SLAVE_BUSWIDTH_8_BYTES
)
return
-
EINVAL
;
if
(
cfg
->
src_maxburst
>
chan
->
device
->
max_burst
||
cfg
->
dst_maxburst
>
chan
->
device
->
max_burst
)
return
-
EINVAL
;
memcpy
(
&
c
->
cfg
,
cfg
,
sizeof
(
c
->
cfg
));
return
0
;
...
...
@@ -1482,6 +1486,7 @@ static int omap_dma_probe(struct platform_device *pdev)
od
->
ddev
.
dst_addr_widths
=
OMAP_DMA_BUSWIDTHS
;
od
->
ddev
.
directions
=
BIT
(
DMA_DEV_TO_MEM
)
|
BIT
(
DMA_MEM_TO_DEV
);
od
->
ddev
.
residue_granularity
=
DMA_RESIDUE_GRANULARITY_BURST
;
od
->
ddev
.
max_burst
=
SZ_16M
-
1
;
/* CCEN: 24bit unsigned */
od
->
ddev
.
dev
=
&
pdev
->
dev
;
INIT_LIST_HEAD
(
&
od
->
ddev
.
channels
);
spin_lock_init
(
&
od
->
lock
);
...
...
drivers/dma/ti-dma-crossbar.c
View file @
8e6c1db3
...
...
@@ -49,12 +49,12 @@ struct ti_am335x_xbar_data {
struct
ti_am335x_xbar_map
{
u16
dma_line
;
u
16
mux_val
;
u
8
mux_val
;
};
static
inline
void
ti_am335x_xbar_write
(
void
__iomem
*
iomem
,
int
event
,
u
16
val
)
static
inline
void
ti_am335x_xbar_write
(
void
__iomem
*
iomem
,
int
event
,
u
8
val
)
{
writeb_relaxed
(
val
&
0x1f
,
iomem
+
event
);
writeb_relaxed
(
val
,
iomem
+
event
);
}
static
void
ti_am335x_xbar_free
(
struct
device
*
dev
,
void
*
route_data
)
...
...
@@ -105,7 +105,7 @@ static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec,
}
map
->
dma_line
=
(
u16
)
dma_spec
->
args
[
0
];
map
->
mux_val
=
(
u
16
)
dma_spec
->
args
[
2
];
map
->
mux_val
=
(
u
8
)
dma_spec
->
args
[
2
];
dma_spec
->
args
[
2
]
=
0
;
dma_spec
->
args_count
=
2
;
...
...
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