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
b303f963
Commit
b303f963
authored
Aug 28, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: export recently created functions in tdc.h
Signed-off-by:
Samuel Iglesias Gonsálvez
<
siglesias@igalia.com
>
parent
c6be45fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
tdc-core.c
tdc-core.c
+3
-3
tdc.h
tdc.h
+12
-0
No files found.
tdc-core.c
View file @
b303f963
...
...
@@ -40,16 +40,16 @@ static void tdc_fw_reset(struct spec_dev *dev)
}
/* XXX: Check that the value is properly written? */
static
int
tdc_set_utc_time
(
struct
spec_tdc
*
tdc
)
int
tdc_set_utc_time
(
struct
spec_tdc
*
tdc
)
{
u32
utc_time
;
/* TODO: fill the variable with a proper value */
u32
utc_time
=
0
;
/* TODO: fill the variable with a proper value */
writel
(
utc_time
,
tdc
->
base
+
TDC_START_UTC
);
writel
(
TDC_CTRL_LOAD_UTC
,
tdc
->
base
+
TDC_CTRL_REG
);
return
0
;
}
static
u32
tdc_get_utc_time
(
struct
spec_tdc
*
tdc
)
u32
tdc_get_utc_time
(
struct
spec_tdc
*
tdc
)
{
return
readl
(
tdc
->
base
+
TDC_CURRENT_UTC
);
}
...
...
tdc.h
View file @
b303f963
...
...
@@ -60,4 +60,16 @@ u32 tdc_acam_read_start01(struct spec_tdc *tdc);
/* Core functions */
int
tdc_probe
(
struct
spec_dev
*
dev
);
void
tdc_remove
(
struct
spec_dev
*
dev
);
int
tdc_set_utc_time
(
struct
spec_tdc
*
tdc
);
u32
tdc_get_utc_time
(
struct
spec_tdc
*
tdc
);
void
tdc_set_irq_tstamp_thresh
(
struct
spec_tdc
*
tdc
,
u32
val
);
void
tdc_set_irq_time_thresh
(
struct
spec_tdc
*
tdc
,
u32
val
);
u32
tdc_get_irq_time_thresh
(
struct
spec_tdc
*
tdc
);
void
tdc_set_dac_word
(
struct
spec_tdc
*
tdc
,
u32
val
);
void
tdc_clear_da_capo_flag
(
struct
spec_tdc
*
tdc
);
void
tdc_activate_adquisition
(
struct
spec_tdc
*
tdc
);
void
tdc_deactivate_adquisition
(
struct
spec_tdc
*
tdc
);
#endif
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