Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 - Software
Commits
123e5c97
Commit
123e5c97
authored
Jul 23, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fa-zio-drv.c: add UTC core registers
parent
e5c2291e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
fa-zio-drv.c
fa-zio-drv.c
+20
-1
fmc-adc.h
fmc-adc.h
+19
-1
No files found.
fa-zio-drv.c
View file @
123e5c97
...
...
@@ -97,7 +97,26 @@ const struct zio_reg_desc zfad_regs[] = {
/* IRQ */
[
ZFA_IRQ_MULTI
]
=
{
FA_IRQ_MEM_OFF
+
0x00
,
0x000F
,
0
},
[
ZFA_IRQ_SRC
]
=
{
FA_IRQ_MEM_OFF
+
0x04
,
0x000F
,
0
},
[
ZFA_IRQ_MASK
]
=
{
FA_IRQ_MEM_OFF
+
0x08
,
0x000F
,
0
}
[
ZFA_IRQ_MASK
]
=
{
FA_IRQ_MEM_OFF
+
0x08
,
0x000F
,
0
},
/* UTC */
[
ZFA_UTC_SECONDS
]
=
{
FA_UTC_MEM_OFF
+
0x00
,
~
0x0
,
0
},
[
ZFA_UTC_COARSE
]
=
{
FA_UTC_MEM_OFF
+
0x04
,
~
0x0
,
0
},
[
ZFA_UTC_TRIG_META
]
=
{
FA_UTC_MEM_OFF
+
0x08
,
~
0x0
,
0
},
[
ZFA_UTC_TRIG_SECONDS
]
=
{
FA_UTC_MEM_OFF
+
0x0C
,
~
0x0
,
0
},
[
ZFA_UTC_TRIG_COARSE
]
=
{
FA_UTC_MEM_OFF
+
0x10
,
~
0x0
,
0
},
[
ZFA_UTC_TRIG_FINE
]
=
{
FA_UTC_MEM_OFF
+
0x14
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_START_META
]
{
FA_UTC_MEM_OFF
+
0x18
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_START_SECONDS
]
=
{
FA_UTC_MEM_OFF
+
0x1C
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_START_COARSE
]
=
{
FA_UTC_MEM_OFF
+
0x20
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_START_FINE
]
=
{
FA_UTC_MEM_OFF
+
0x24
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_STOP_META
]
=
{
FA_UTC_MEM_OFF
+
0x28
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_STOP_SECONDS
]
=
{
FA_UTC_MEM_OFF
+
0x2C
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_STOP_COARSE
]
=
{
FA_UTC_MEM_OFF
+
0x30
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_STOP_FINE
]
=
{
FA_UTC_MEM_OFF
+
0x34
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_END_META
]
=
{
FA_UTC_MEM_OFF
+
0x38
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_END_SECONDS
]
=
{
FA_UTC_MEM_OFF
+
0x3C
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_END_COARSE
]
=
{
FA_UTC_MEM_OFF
+
0x40
,
~
0x0
,
0
},
[
ZFA_UTC_ACQ_END_FINE
]
=
{
FA_UTC_MEM_OFF
+
0x44
,
~
0x0
,
0
},
};
/* zio device attributes */
...
...
fmc-adc.h
View file @
123e5c97
...
...
@@ -115,7 +115,25 @@ enum zfadc_dregs_enum {
ZFA_IRQ_MULTI
,
ZFA_IRQ_SRC
,
ZFA_IRQ_MASK
,
/* UTC core */
ZFA_UTC_SECONDS
,
ZFA_UTC_COARSE
,
ZFA_UTC_TRIG_META
,
ZFA_UTC_TRIG_SECONDS
,
ZFA_UTC_TRIG_COARSE
,
ZFA_UTC_TRIG_FINE
,
ZFA_UTC_ACQ_START_META
,
ZFA_UTC_ACQ_START_SECONDS
,
ZFA_UTC_ACQ_START_COARSE
,
ZFA_UTC_ACQ_START_FINE
,
ZFA_UTC_ACQ_STOP_META
,
ZFA_UTC_ACQ_STOP_SECONDS
,
ZFA_UTC_ACQ_STOP_COARSE
,
ZFA_UTC_ACQ_STOP_FINE
,
ZFA_UTC_ACQ_END_META
,
ZFA_UTC_ACQ_END_SECONDS
,
ZFA_UTC_ACQ_END_COARSE
,
ZFA_UTC_ACQ_END_FINE
,
};
/* All possible state of the state machine, other values are invalid*/
enum
zfa_fsm_state
{
...
...
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