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
8dd006ee
Commit
8dd006ee
authored
Sep 12, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: reorder IRQ enable and setup some constants
parent
b0bdfd58
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
tdc_regs.h
drivers/hw/tdc_regs.h
+2
-0
tdc-core.c
drivers/tdc-core.c
+0
-2
tdc-fmc.c
drivers/tdc-fmc.c
+3
-1
No files found.
drivers/hw/tdc_regs.h
View file @
8dd006ee
...
...
@@ -93,6 +93,8 @@
#define TDC_INPUT_ENABLE_FLAG BIT(7)
/* IRQ register*/
#define TDC_IRQ_REG 0xA0000
#define TDC_IRQ_STATUS_REG 0xA0004
#define TDC_IRQ_ENABLE_REG 0xA0008
#define TDC_IRQ_GNUM_CORE_0 BIT(0)
#define TDC_IRQ_GNUM_CORE_1 BIT(1)
#define TDC_IRQ_TDC_TSTAMP BIT(2)
...
...
drivers/tdc-core.c
View file @
8dd006ee
...
...
@@ -87,8 +87,6 @@ int tdc_activate_acquisition(struct spec_tdc *tdc)
return
-
EBUSY
;
}
/* Enable IRQ */
writel
(
0xC
,
tdc
->
base
+
TDC_IRQ_REG
+
0x8
);
writel
(
TDC_CTRL_EN_ACQ
,
tdc
->
base
+
TDC_CTRL_REG
);
return
0
;
}
...
...
drivers/tdc-fmc.c
View file @
8dd006ee
...
...
@@ -166,7 +166,7 @@ irqreturn_t tdc_fmc_irq_handler(int irq, void *dev_id)
u32
irq_code
;
/* Check the source of the interrupt */
irq_code
=
readl
(
fmc
->
base
+
TDC_IRQ_
REG
+
0x4
);
irq_code
=
readl
(
fmc
->
base
+
TDC_IRQ_
STATUS_REG
);
/* Tstamp threshold or time threshold */
if
((
irq_code
&
TDC_IRQ_TDC_TSTAMP
)
||
...
...
@@ -247,6 +247,8 @@ int tdc_fmc_probe(struct fmc_device *dev)
INIT_WORK
(
&
tdc
->
irq_work
,
tdc_fmc_irq_work
);
/* Request the IRQ */
dev
->
op
->
irq_request
(
dev
,
tdc_fmc_irq_handler
,
"spec-tdc"
,
IRQF_SHARED
);
/* Enable IRQ */
writel
(
0xC
,
tdc
->
base
+
TDC_IRQ_ENABLE_REG
);
/* FIXME: define constant 0xC */
return
tdc_zio_register_device
(
tdc
);
}
...
...
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