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
5118aaac
Commit
5118aaac
authored
Oct 14, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc-bus is now a standalone project: fix accordingly
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
fcddc1cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
Makefile
Makefile
+11
-2
fine-delay.in
doc/fine-delay.in
+15
-1
fd-core.c
fd-core.c
+4
-0
No files found.
Makefile
View file @
5118aaac
...
...
@@ -2,10 +2,19 @@
LINUX
?=
/lib/modules/
$(
shell
uname
-r
)
/build
ZIO
?=
$(HOME)
/zio
SPEC_SW
?=
$(HOME)
/spec-sw
FMC_BUS
?=
$(HOME)
/fmc-bus
KBUILD_EXTRA_SYMBOLS
:=
$(ZIO)
/Module.symvers
$(SPEC_SW)
/kernel/Module.symvers
KBUILD_EXTRA_SYMBOLS
:=
\
$(ZIO)
/Module.symvers
\
$(SPEC_SW)
/kernel/Module.symvers
\
$(FMC_BUS)
/kernel/Module.sysmvers
ccflags-y
=
-I
$(ZIO)
/include
-I
$(SPEC_SW)
/kernel
-I
$(SPEC_SW)
/kernel/include
\
ccflags-y
=
\
-I
$(ZIO)
/include
\
-I
$(SPEC_SW)
/kernel
\
-I
$(SPEC_SW)
/kernel/include
\
-I
$(FMC_BUS)
/kernel/include
\
-I
$M
#ccflags-y += -DDEBUG
...
...
doc/fine-delay.in
View file @
5118aaac
...
...
@@ -420,6 +420,13 @@ branch of ZIO, until I'll attack backporting as needed.
Similarly, this is a sub-module for the SPEC board, and thus relies
on code from the @i{spec-sw} package, again from @code{ohwr.org}.
Finally, the driver depends on the @i{fmc-bus} abstraction, which used
to be part of @i{spec-sw} but it is now a separate @code{ohwr}
project.
@b{Note}: this setup is temporary, because we are going to use @i{git}
submodules to simplify the installation for fine-delay users.
@c ==========================================================================
@node Software Installation
@section Software Installation
...
...
@@ -442,6 +449,10 @@ them are assumed to be already set when running the commands shown.
The top-level directory of the @i{spec-sw} repository checkout.
@item FMC_BUS
The top level directory of the @i{fmc-bus} repository checkout.
@end table
To install ZIO you should download it and install it. For this
...
...
@@ -472,6 +483,9 @@ the official version 2.1.
sudo
make
modules_install
@
end
example
The
procedure
for
@
i
{
fmc
-
bus
}
is
the
same
,
using
the
current
master
branch
.
At
this
point
all
the
software
modules
are
ready
to
be
loaded
.
Unlikely
what
happened
with
previous
versions
of
this
package
,
if
you
@
i
{
modprobe
}
for
@
code
{
spec
-
fine
-
delay
}
you
won
't have
...
...
@@ -567,7 +581,7 @@ framework:
match the @i{busid} parameters, in the same order. This
means that you can'
t
make
the
driver
load
a
different
gateware
file
without
passing
the
respective
@
i
{
busid
}.
Actually
,
to
change
the
gateware
for
all
boards
,
you
ma
t
just
replace
change
the
gateware
for
all
boards
,
you
ma
y
just
replace
the
file
in
@
file
{/
lib
/
firmware
}.
(
Maybe
I
'll add an
option to change the name at load time for all boards).
@c FIXME: name for gateware file
...
...
fd-core.c
View file @
5118aaac
...
...
@@ -21,6 +21,9 @@
#include <linux/list.h>
#include <linux/io.h>
#include <linux/fmc.h>
#include <linux/fmc-sdb.h>
#include "spec.h"
#include "fine-delay.h"
#include "hw/fd_main_regs.h"
...
...
@@ -250,6 +253,7 @@ int fd_remove(struct fmc_device *fmc)
}
static
struct
fmc_driver
fd_drv
=
{
.
version
=
FMC_VERSION
,
.
driver
.
name
=
KBUILD_MODNAME
,
.
probe
=
fd_probe
,
.
remove
=
fd_remove
,
...
...
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