Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spec-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
fmc-projects
spec
spec-sw
Commits
f1a948ae
Commit
f1a948ae
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
wr-nic: scan and print sdb
parent
e8772c6a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/wr-nic-core.c
+9
-2
9 additions, 2 deletions
kernel/wr-nic-core.c
with
9 additions
and
2 deletions
kernel/wr-nic-core.c
+
9
−
2
View file @
f1a948ae
...
...
@@ -12,6 +12,7 @@
#include
<linux/interrupt.h>
#include
<linux/firmware.h>
#include
<linux/fmc.h>
#include
<linux/fmc-sdb.h>
#include
"wr-nic.h"
#include
"spec.h"
...
...
@@ -29,7 +30,7 @@ irqreturn_t wrn_handler(int irq, void *dev_id)
int
wrn_probe
(
struct
fmc_device
*
fmc
)
{
int
ret
;
int
ret
=
0
;
struct
device
*
dev
=
fmc
->
hwdev
;
const
struct
firmware
*
fw
;
struct
wrn_drvdata
*
dd
;
...
...
@@ -57,7 +58,7 @@ int wrn_probe(struct fmc_device *fmc)
}
}
/* Verify that we have SDB at offset 0x3
0
000 */
/* Verify that we have SDB at offset 0x
6
3000 */
if
(
fmc_readl
(
fmc
,
0x63000
)
!=
0x5344422d
)
{
dev_err
(
dev
,
"Can't find SDB magic
\n
"
);
ret
=
-
ENODEV
;
...
...
@@ -65,6 +66,12 @@ int wrn_probe(struct fmc_device *fmc)
}
dev_info
(
dev
,
"Gateware successfully loaded
\n
"
);
if
(
(
ret
=
fmc_scan_sdb_tree
(
fmc
,
0x63000
))
<
0
)
{
dev_err
(
dev
,
"scan fmc failed %i
\n
"
,
ret
);
goto
out_fw
;
}
fmc_show_sdb_tree
(
fmc
);
/* Register the gpio stuff, if we have kernel support */
ret
=
wrn_gpio_init
(
fmc
);
if
(
ret
<
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment