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
18a76621
Commit
18a76621
authored
Sep 10, 2012
by
igalia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: added ACAM status check
Signed-off-by:
igalia
<
igalia@ostest.(none)
>
parent
12f59d4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
Makefile
drivers/Makefile
+4
-4
tdc-core.c
drivers/tdc-core.c
+9
-0
No files found.
drivers/Makefile
View file @
18a76621
#
LINUX ?= /lib/modules/$(shell uname -r)/build
LINUX
?=
/lib/modules/
$(
shell
uname
-r
)
/build
LINUX
?=
../../kernel-3.5
#
LINUX ?= ../../kernel-3.5
ZIO
?=
$(HOME)
/de
vel/cern
/zio
ZIO
?=
$(HOME)
/de
pendencies
/zio
SPEC_SW
?=
$(HOME)
/de
vel/cern
/spec-sw
SPEC_SW
?=
$(HOME)
/de
pendencies
/spec-sw
KBUILD_EXTRA_SYMBOLS
:=
$(ZIO)
/Module.symvers
$(SPEC_SW)
/kernel/Module.symvers
KBUILD_EXTRA_SYMBOLS
:=
$(ZIO)
/Module.symvers
$(SPEC_SW)
/kernel/Module.symvers
...
...
drivers/tdc-core.c
View file @
18a76621
...
@@ -77,8 +77,17 @@ void tdc_clear_da_capo_flag(struct spec_tdc *tdc)
...
@@ -77,8 +77,17 @@ void tdc_clear_da_capo_flag(struct spec_tdc *tdc)
void
tdc_activate_acquisition
(
struct
spec_tdc
*
tdc
)
void
tdc_activate_acquisition
(
struct
spec_tdc
*
tdc
)
{
{
u32
acam_status_test
;
/* Before activate the adquisition is required to reset the ACAM chip */
/* Before activate the adquisition is required to reset the ACAM chip */
tdc_acam_reset
(
tdc
);
tdc_acam_reset
(
tdc
);
acam_status_test
=
tdc_acam_status
(
tdc
)
-
0xC4000800
;
if
(
acam_status_test
==
0
)
pr_err
(
"ACAM status OK! 0x%x
\n
"
,
acam_status_test
);
else
pr_err
(
"ACAM status Not OK! 0x%x
\n
"
,
acam_status_test
+
0xC4000800
);
/* Enable IRQ */
/* Enable IRQ */
writel
(
0xC
,
tdc
->
base
+
TDC_IRQ_REG
+
0x8
);
writel
(
0xC
,
tdc
->
base
+
TDC_IRQ_REG
+
0x8
);
writel
(
TDC_CTRL_EN_ACQ
,
tdc
->
base
+
TDC_CTRL_REG
);
writel
(
TDC_CTRL_EN_ACQ
,
tdc
->
base
+
TDC_CTRL_REG
);
...
...
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