Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
398cd3ee
Commit
398cd3ee
authored
Aug 21, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: restore buffer burst size configuration
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
bf09403f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ft-core.c
kernel/ft-core.c
+14
-0
No files found.
kernel/ft-core.c
View file @
398cd3ee
...
...
@@ -113,6 +113,19 @@ int ft_enable_termination(struct fmctdc_dev *ft, int channel, int enable)
return
0
;
}
static
void
ft_buffer_burst_size_set
(
struct
fmctdc_dev
*
ft
,
unsigned
int
chan
,
uint32_t
size
)
{
const
uint32_t
base
=
ft
->
ft_dma_base
+
(
0x40
*
chan
);
uint32_t
tmp
;
tmp
=
ft_ioread
(
ft
,
base
+
TDC_BUF_REG_CSR
);
tmp
&=
~
TDC_BUF_CSR_BURST_SIZE_MASK
;
tmp
|=
TDC_BUF_CSR_BURST_SIZE_W
(
size
);
ft_iowrite
(
ft
,
tmp
,
base
+
TDC_BUF_REG_CSR
);
}
static
void
ft_buffer_burst_enable
(
struct
fmctdc_dev
*
ft
,
unsigned
int
chan
)
{
...
...
@@ -173,6 +186,7 @@ static void ft_buffer_init(struct fmctdc_dev *ft, int channel)
val
|=
TDC_BUF_NEXT_SIZE_VALID
;
ft_iowrite
(
ft
,
val
,
base
+
TDC_BUF_REG_NEXT_SIZE
);
ft_buffer_burst_size_set
(
ft
,
channel
,
dma_buf_ddr_burst_size_default
);
ft_buffer_burst_enable
(
ft
,
channel
);
dev_info
(
&
ft
->
fmc
->
dev
,
...
...
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