Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
6b9097e5
Commit
6b9097e5
authored
17 years ago
by
Mike Frysinger
Browse files
Options
Downloads
Patches
Plain Diff
use C code rather than inline assembly
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
97c26e00
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/smc91111_eeprom.c
+8
-11
8 additions, 11 deletions
examples/smc91111_eeprom.c
with
8 additions
and
11 deletions
examples/smc91111_eeprom.c
+
8
−
11
View file @
6b9097e5
...
...
@@ -33,6 +33,11 @@
#ifdef CONFIG_DRIVER_SMC91111
#ifdef pFIO0_DIR
# define pFIO_DIR pFIO0_DIR
# define pFIO_FLAG_S pFIO0_FLAG_S
#endif
#define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
#define EEPROM 0x1;
#define MAC 0x2;
...
...
@@ -61,17 +66,9 @@ int smc91111_eeprom (int argc, char *argv[])
return
(
0
);
}
asm
(
"p2.h = 0xFFC0;"
);
asm
(
"p2.l = 0x0730;"
);
asm
(
"r0 = 0x01;"
);
asm
(
"w[p2] = r0;"
);
asm
(
"ssync;"
);
asm
(
"p2.h = 0xffc0;"
);
asm
(
"p2.l = 0x0708;"
);
asm
(
"r0 = 0x01;"
);
asm
(
"w[p2] = r0;"
);
asm
(
"ssync;"
);
*
pFIO_DIR
=
0x01
;
*
pFIO_FLAG_S
=
0x01
;
SSYNC
();
if
((
SMC_inw
(
BANK_SELECT
)
&
0xFF00
)
!=
0x3300
)
{
printf
(
"Can't find SMSC91111
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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