Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - 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 DEL 1ns 4cha - Software
Commits
eac6a850
Commit
eac6a850
authored
May 19, 2014
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: ugly hacks to get a carrier with FD in one slot and FMC-TDC in the other to work
parent
440342bc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
Makefile
kernel/Makefile
+1
-1
fd-core.c
kernel/fd-core.c
+3
-3
fine-delay.h
kernel/fine-delay.h
+3
-0
No files found.
kernel/Makefile
View file @
eac6a850
...
...
@@ -25,7 +25,7 @@ obj-m := fmc-fine-delay.o
fmc-fine-delay-objs
=
fd-zio.o fd-irq.o fd-core.o
fmc-fine-delay-objs
+=
onewire.o spi.o i2c.o gpio.o
fmc-fine-delay-objs
+=
acam.o calibrate.o pll.o time.o
fmc-fine-delay-objs
+=
calibration.o
fmc-fine-delay-objs
+=
calibration.o
fmc-util.o
fmc-fine-delay-objs
+=
../sdb-lib/access.o
fmc-fine-delay-objs
+=
../sdb-lib/glue.o
...
...
kernel/fd-core.c
View file @
eac6a850
...
...
@@ -170,13 +170,13 @@ int fd_probe(struct fmc_device *fmc)
/* Now use SDB to find the base addresses */
fd
->
fd_regs_base
=
fmc_find_sdb_device
(
fmc
->
sdb
,
0xce42
,
0xf19ede1a
,
NULL
);
fmc_find_sdb_device
_ext
(
fmc
->
sdb
,
0xce42
,
0xf19ede1a
,
0
,
NULL
);
/* ugly hack for svec testing*/
/* FIXME: this depends on 0x10000/0x20000 being the FD cores
* base addresses */
if
(
!
strcmp
(
fmc
->
carrier_name
,
"SVEC"
)
&&
fmc
->
slot_id
==
1
)
fd
->
fd_regs_base
+=
0x10000
;
//
if (!strcmp(fmc->carrier_name, "SVEC") && fmc->slot_id == 1)
//
fd->fd_regs_base += 0x10000;
dev_info
(
dev
,
"fd_regs_base is %x
\n
"
,
fd
->
fd_regs_base
);
fd
->
fd_owregs_base
=
fd
->
fd_regs_base
+
0x500
;
...
...
kernel/fine-delay.h
View file @
eac6a850
...
...
@@ -383,5 +383,8 @@ extern int fd_eeprom_write(struct fd_dev *fd, int i2c_addr, uint32_t offset,
/* Function exported by calibration.c */
int
fd_handle_eeprom_calibration
(
struct
fd_dev
*
fd
);
signed
long
fmc_find_sdb_device_ext
(
struct
sdb_array
*
tree
,
uint64_t
vid
,
uint32_t
did
,
int
index
,
unsigned
long
*
sz
);
#endif
/* __KERNEL__ */
#endif
/* __FINE_DELAY_H__ */
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