summaryrefslogtreecommitdiff
path: root/drivers/smc91111.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-03-12 02:10:00 +0100
committerWolfgang Denk <wd@pollux.denx.de>2006-03-12 02:10:00 +0100
commit0afe519a433184fb1270ff0823971130353a807f (patch)
treedcf4e84ada0961ded5df9ebfc2804e882bca57b0 /drivers/smc91111.c
parentdc013d464000635a5b8ae841c6e683f94a6bee3d (diff)
Add ADI Blackfin support
- add support for Analog Devices Blackfin BF533 CPU - add support for the ADI BF533 Stamp uClinux board - add support for the ADI BF533 EZKit board Patches by Richard Klingler, June 11th 2005:
Diffstat (limited to 'drivers/smc91111.c')
-rw-r--r--drivers/smc91111.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/smc91111.c b/drivers/smc91111.c
index 84e243ddd52..f91e4b98436 100644
--- a/drivers/smc91111.c
+++ b/drivers/smc91111.c
@@ -160,6 +160,9 @@ extern void eth_halt(void);
extern int eth_rx(void);
extern int eth_send(volatile void *packet, int length);
+#ifdef SHARED_RESOURCES
+ extern void swap_to(int device_id);
+#endif
/*
. This is called by register_netdev(). It is responsible for
@@ -533,6 +536,9 @@ static void smc_shutdown()
SMC_SELECT_BANK( 0 );
SMC_outb( RCR_CLEAR, RCR_REG );
SMC_outb( TCR_CLEAR, TCR_REG );
+#ifdef SHARED_RESOURCES
+ swap_to(FLASH);
+#endif
}
@@ -1511,6 +1517,9 @@ static void print_packet( byte * buf, int length )
#endif
int eth_init(bd_t *bd) {
+#ifdef SHARED_RESOURCES
+ swap_to(ETHERNET);
+#endif
return (smc_open(bd));
}