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
c894c026
Commit
c894c026
authored
Oct 16, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: first adaption of GPIO config. Not tested
Signed-off-by:
Samuel Iglesias Gonsalvez
<
siglesias@igalia.com
>
parent
12e94729
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tdc-fmc.c
drivers/tdc-fmc.c
+9
-0
No files found.
drivers/tdc-fmc.c
View file @
c894c026
...
...
@@ -31,6 +31,13 @@ DEFINE_MUTEX(fmc_dma_lock);
DECLARE_WAIT_QUEUE_HEAD
(
fmc_wait_dma
);
static
atomic_t
fmc_dma_end
;
static
struct
fmc_gpio
tdc_gpio
=
{
.
carrier_name
=
"spec"
,
.
gpio
=
FMC_GPIO_IRQ
(
0
),
.
mode
=
GPIOF_DIR_OUT
,
.
irqmode
=
IRQF_TRIGGER_LOW
,
};
static
void
tdc_fmc_gennum_setup_local_clock
(
struct
spec_tdc
*
tdc
,
int
freq
)
{
unsigned
int
divot
;
...
...
@@ -320,6 +327,8 @@ int tdc_fmc_probe(struct fmc_device *dev)
/* Prepare the irq work */
INIT_WORK
(
&
tdc
->
irq_work
,
tdc_fmc_irq_work
);
/* Setup GPIO to have IRQ */
dev
->
op
->
gpio_config
(
dev
,
&
tdc_gpio
,
1
);
/* Clear IRQ */
writel
(
0xF
,
tdc
->
base
+
TDC_IRQ_STATUS_REG
);
/* Request the IRQ */
...
...
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