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
1ad65115
Commit
1ad65115
authored
Feb 21, 2017
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/zx' into for-linus
parents
8a3ec583
067fdeb2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
drivers/dma/Kconfig
drivers/dma/Kconfig
+2
-2
drivers/dma/Makefile
drivers/dma/Makefile
+1
-1
drivers/dma/zx_dma.c
drivers/dma/zx_dma.c
+4
-2
No files found.
drivers/dma/Kconfig
View file @
1ad65115
...
...
@@ -571,12 +571,12 @@ config XILINX_ZYNQMP_DMA
Enable support for Xilinx ZynqMP DMA controller.
config ZX_DMA
tristate "ZTE ZX
296702
DMA support"
tristate "ZTE ZX DMA support"
depends on ARCH_ZX || COMPILE_TEST
select DMA_ENGINE
select DMA_VIRTUAL_CHANNELS
help
Support the DMA engine for ZTE ZX
296702
platform devices.
Support the DMA engine for ZTE ZX
family
platform devices.
# driver files
...
...
drivers/dma/Makefile
View file @
1ad65115
...
...
@@ -66,7 +66,7 @@ obj-$(CONFIG_TI_CPPI41) += cppi41.o
obj-$(CONFIG_TI_DMA_CROSSBAR)
+=
ti-dma-crossbar.o
obj-$(CONFIG_TI_EDMA)
+=
edma.o
obj-$(CONFIG_XGENE_DMA)
+=
xgene-dma.o
obj-$(CONFIG_ZX_DMA)
+=
zx
296702
_dma.o
obj-$(CONFIG_ZX_DMA)
+=
zx_dma.o
obj-$(CONFIG_ST_FDMA)
+=
st_fdma.o
obj-y
+=
qcom/
...
...
drivers/dma/zx
296702
_dma.c
→
drivers/dma/zx_dma.c
View file @
1ad65115
...
...
@@ -26,7 +26,7 @@
#define DRIVER_NAME "zx-dma"
#define DMA_ALIGN 4
#define DMA_MAX_SIZE (0x10000 -
PAGE_SIZE
)
#define DMA_MAX_SIZE (0x10000 -
512
)
#define LLI_BLOCK_SIZE (4 * PAGE_SIZE)
#define REG_ZX_SRC_ADDR 0x00
...
...
@@ -365,7 +365,8 @@ static enum dma_status zx_dma_tx_status(struct dma_chan *chan,
bytes
=
0
;
clli
=
zx_dma_get_curr_lli
(
p
);
index
=
(
clli
-
ds
->
desc_hw_lli
)
/
sizeof
(
struct
zx_desc_hw
);
index
=
(
clli
-
ds
->
desc_hw_lli
)
/
sizeof
(
struct
zx_desc_hw
)
+
1
;
for
(;
index
<
ds
->
desc_num
;
index
++
)
{
bytes
+=
ds
->
desc_hw
[
index
].
src_x
;
/* end of lli */
...
...
@@ -812,6 +813,7 @@ static int zx_dma_probe(struct platform_device *op)
INIT_LIST_HEAD
(
&
d
->
slave
.
channels
);
dma_cap_set
(
DMA_SLAVE
,
d
->
slave
.
cap_mask
);
dma_cap_set
(
DMA_MEMCPY
,
d
->
slave
.
cap_mask
);
dma_cap_set
(
DMA_CYCLIC
,
d
->
slave
.
cap_mask
);
dma_cap_set
(
DMA_PRIVATE
,
d
->
slave
.
cap_mask
);
d
->
slave
.
dev
=
&
op
->
dev
;
d
->
slave
.
device_free_chan_resources
=
zx_dma_free_chan_resources
;
...
...
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