Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
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
1
Merge Requests
1
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
Commits
a2adf871
Commit
a2adf871
authored
Mar 25, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: get FMC slot number
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
7899352e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
ft-core.c
kernel/ft-core.c
+1
-1
tdc_regs.h
kernel/hw/tdc_regs.h
+1
-0
No files found.
kernel/ft-core.c
View file @
a2adf871
...
...
@@ -723,7 +723,7 @@ int ft_probe(struct platform_device *pdev)
goto
err_mode_selection
;
}
slot_nr
=
ft_readl
(
ft
,
FT_REG_FMC_SLOT_ID
)
+
1
;
slot_nr
=
stat
&
TDC_STAT_FMC_SLOT
?
2
:
1
;
ft
->
slot
=
fmc_slot_get
(
pdev
->
dev
.
parent
->
parent
,
slot_nr
);
if
(
IS_ERR
(
ft
->
slot
))
{
dev_err
(
&
ft
->
pdev
->
dev
,
...
...
kernel/hw/tdc_regs.h
View file @
a2adf871
...
...
@@ -44,6 +44,7 @@
/* TDC_REG_STAT bits */
#define TDC_STAT_DMA BIT(0)
#define TDC_STAT_FIFO BIT(1)
#define TDC_STAT_FMC_SLOT BIT(2)
#define TDC_FIFO_OFFSET 0x100
...
...
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