Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Simple PCIe FMC carrier SPEC - Software
Commits
4dc04e31
Commit
4dc04e31
authored
Oct 09, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr-nic: configure gpio in the carrier
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
f020b5dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
wr-nic-eth.c
kernel/wr-nic-eth.c
+10
-0
No files found.
kernel/wr-nic-eth.c
View file @
4dc04e31
...
...
@@ -161,6 +161,14 @@ static struct wrn_core wrn_cores2[] = {
}
};
struct
fmc_gpio
wrn_gpio_cfg
[]
=
{
{
.
gpio
=
FMC_GPIO_IRQ
(
1
),
.
mode
=
GPIOF_DIR_IN
,
.
irqmode
=
IRQF_TRIGGER_RISING
,
}
};
int
wrn_eth_init
(
struct
fmc_device
*
fmc
)
{
struct
device
*
dev
=
fmc
->
hwdev
;
...
...
@@ -179,6 +187,8 @@ int wrn_eth_init(struct fmc_device *fmc)
dev_err
(
dev
,
"Can't request interrupt
\n
"
);
return
ret
;
}
/* FIXME: we should request irq0, self-test and then move to irq1 */
fmc
->
op
->
gpio_config
(
fmc
,
wrn_gpio_cfg
,
ARRAY_SIZE
(
wrn_gpio_cfg
));
/* Make a copy of the platform device and register it */
ret
=
-
ENOMEM
;
...
...
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