Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
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
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 ADC 100M 14b 4cha - Software
Commits
353f92ed
Commit
353f92ed
authored
Oct 15, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc-adc: update the driver to fmc-bus version 1.0
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
48dc3381
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
Makefile
Makefile
+1
-1
fa-core.c
fa-core.c
+1
-0
fa-zio-trg.c
fa-zio-trg.c
+13
-0
No files found.
Makefile
View file @
353f92ed
...
...
@@ -5,7 +5,7 @@ SPEC_SW ?= $(HOME)/spec-sw
KBUILD_EXTRA_SYMBOLS
:=
$(ZIO)
/Module.symvers
$(SPEC_SW)
/kernel/Module.symvers
ccflags-y
=
-I
$(ZIO)
/include
-I
$(SPEC_SW)
/
kernel
-I
$(SPEC_SW)
/kernel/include
-I
$M
ccflags-y
=
-I
$(ZIO)
/include
-I
$(SPEC_SW)
/
fmc-bus/kernel/include
-I
$(SPEC_SW)
/kernel
-I
$M
ccflags-y
+=
-DDEBUG
# temporary
...
...
fa-core.c
View file @
353f92ed
...
...
@@ -85,6 +85,7 @@ int fa_remove(struct fmc_device *fmc)
return
0
;
}
static
struct
fmc_driver
fa_dev__drv
=
{
.
version
=
FMC_VERSION
,
.
driver
.
name
=
KBUILD_MODNAME
,
.
probe
=
fa_probe
,
.
remove
=
fa_remove
,
...
...
fa-zio-trg.c
View file @
353f92ed
...
...
@@ -412,6 +412,14 @@ static irqreturn_t zfadc_irq(int irq, void *ptr)
return
IRQ_HANDLED
;
}
struct
fmc_gpio
zfat_gpio_cfg
[]
=
{
{
.
gpio
=
FMC_GPIO_IRQ
(
0
),
.
mode
=
GPIOF_DIR_IN
,
.
irqmode
=
IRQF_TRIGGER_RISING
,
}
};
/* create an instance of the FMC-ADC trigger */
static
struct
zio_ti
*
zfat_create
(
struct
zio_trigger_type
*
trig
,
struct
zio_cset
*
cset
,
...
...
@@ -431,6 +439,11 @@ static struct zio_ti *zfat_create(struct zio_trigger_type *trig,
return
ERR_PTR
(
-
ENOMEM
);
zfat
->
fa
=
fa
;
/* Configure GPIO for IRQ */
fa
->
fmc
->
op
->
gpio_config
(
fa
->
fmc
,
zfat_gpio_cfg
,
ARRAY_SIZE
(
zfat_gpio_cfg
));
/* Request IRQ */
err
=
fa
->
fmc
->
op
->
irq_request
(
fa
->
fmc
,
zfadc_irq
,
"fmc-adc"
,
IRQF_SHARED
);
if
(
err
)
{
...
...
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