Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha
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 ADC 100M 14b 4cha
Commits
46d52fa7
Commit
46d52fa7
authored
Mar 06, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: enable_auto_start is device-specific
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ad3e941e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
fa-irq.c
kernel/fa-irq.c
+1
-1
fa-zio-drv.c
kernel/fa-zio-drv.c
+1
-2
fmc-adc.h
kernel/fmc-adc.h
+4
-1
No files found.
kernel/fa-irq.c
View file @
46d52fa7
...
...
@@ -84,7 +84,7 @@ void zfad_dma_done(struct zio_cset *cset)
}
/* Automatic start next acquisition */
if
(
enable_auto_start
)
{
if
(
fa
->
enable_auto_start
)
{
dev_dbg
(
&
fa
->
fmc
->
dev
,
"Automatic start
\n
"
);
zfad_fsm_command
(
fa
,
ZFA_START
);
}
...
...
kernel/fa-zio-drv.c
View file @
46d52fa7
...
...
@@ -23,7 +23,6 @@
#include "fmc-adc.h"
int
enable_auto_start
=
0
;
static
int
enable_test_data
=
0
;
module_param
(
enable_test_data
,
int
,
0444
);
...
...
@@ -172,7 +171,7 @@ static int zfad_conf_set(struct device *dev, struct zio_attribute *zattr,
*/
case
ZFA_SW_R_NOADDERS_AUTO
:
enable_auto_start
=
usr_val
;
fa
->
enable_auto_start
=
usr_val
;
return
0
;
/* FIXME temporary until TLV control */
case
ZFA_CH1_OFFSET
:
...
...
kernel/fmc-adc.h
View file @
46d52fa7
...
...
@@ -10,10 +10,10 @@
#include <linux/scatterlist.h>
#include <linux/fmc.h>
#include <linux/zio.h>
#include "field-desc.h"
#define FA_GATEWARE_DEFAULT_NAME "fmc/adc-100m14b.bin"
extern
int
enable_auto_start
;
#define FA_NCHAN 4
/* We have 4 of them,no way out of it */
...
...
@@ -120,6 +120,9 @@ struct fa_dev {
/* Calibration Data */
struct
fa_calib
calib
;
/* flag */
int
enable_auto_start
;
/* DMA attributes */
struct
sg_table
sgt
;
struct
fa_dma_item
*
items
;
...
...
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