Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
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
Show more breadcrumbs
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
487778b7
Commit
487778b7
authored
21 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Patch by Robert Schwebel, April 02, 2003:
fix for SMSC91111 driver
parent
8b601449
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
drivers/smc91111.c
+14
-0
14 additions, 0 deletions
drivers/smc91111.c
drivers/smc91111.h
+1
-1
1 addition, 1 deletion
drivers/smc91111.h
with
18 additions
and
1 deletion
CHANGELOG
+
3
−
0
View file @
487778b7
...
...
@@ -2,6 +2,9 @@
Changes since U-Boot 0.3.1:
======================================================================
* Patch by Robert Schwebel, April 02, 2003:
fix for SMSC91111 driver
* Patch by Vladimir Gurevich, 04 Jun 2003:
make ppc405 ethernet driver compatible with CONFIG_NET_MULTI option
...
...
This diff is collapsed.
Click to expand it.
drivers/smc91111.c
+
14
−
0
View file @
487778b7
...
...
@@ -317,6 +317,17 @@ static int poll4int( byte mask, int timeout ) {
return
0
;
}
/* Only one release command at a time, please */
static
inline
void
smc_wait_mmu_release_complete
(
void
)
{
int
count
=
0
;
/* assume bank 2 selected */
while
(
SMC_inw
(
MMU_CMD_REG
)
&
MC_BUSY
)
{
udelay
(
1
);
// Wait until not busy
if
(
++
count
>
200
)
break
;
}
}
/*
. Function: smc_reset( void )
. Purpose:
...
...
@@ -374,6 +385,7 @@ static void smc_reset( void )
/* Reset the MMU */
SMC_SELECT_BANK
(
2
);
smc_wait_mmu_release_complete
();
SMC_outw
(
MC_RESET
,
MMU_CMD_REG
);
while
(
SMC_inw
(
MMU_CMD_REG
)
&
MC_BUSY
)
udelay
(
1
);
/* Wait until not busy */
...
...
@@ -674,6 +686,8 @@ static int smc_open()
/* SMC_SELECT_BANK(0); */
/* SMC_outw(0, RPC_REG); */
SMC_SELECT_BANK
(
1
);
#ifdef USE_32_BIT
for
(
i
=
0
;
i
<
6
;
i
+=
2
)
{
word
address
;
...
...
This diff is collapsed.
Click to expand it.
drivers/smc91111.h
+
1
−
1
View file @
487778b7
...
...
@@ -80,7 +80,7 @@ typedef unsigned long int dword;
#define SMC_inw(r) (*((volatile word *)(SMC_BASE_ADDRESS+(r))))
#define SMC_inb(p) ({ \
unsigned int __p = (unsigned int)(SMC_BASE_ADDRESS + (p)); \
unsigned int __v = *(volatile unsigned short *)((
SMC_BASE_ADDRESS +
__p) & ~1); \
unsigned int __v = *(volatile unsigned short *)((__p) & ~1); \
if (__p & 1) __v >>= 8; \
else __v &= 0xff; \
__v; })
...
...
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