diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-11-13 15:34:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-11-13 15:34:39 +0000 |
commit | aae96a29805bf517d29bfed78dfe18dc1f880c20 (patch) | |
tree | f13a0cb78086add4f0d13f21c3e28d37653c839a /c | |
parent | 2002-11-13 Paul Whitfield <paulw@microsol.iinet.net.au> (diff) | |
download | rtems-aae96a29805bf517d29bfed78dfe18dc1f880c20.tar.bz2 |
2002-11-13 Jay Monkman <jtm@smoothsmoothie.com>
* network/cs8900.c: I don't know why we have to SelfST register
twice on the EDB7312, but it doesn't work on the EDB7312 if we don't.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/libchip/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/libchip/network/cs8900.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/c/src/libchip/ChangeLog b/c/src/libchip/ChangeLog index a1b8a62a1c..302b3a4d83 100644 --- a/c/src/libchip/ChangeLog +++ b/c/src/libchip/ChangeLog @@ -1,3 +1,8 @@ +2002-11-13 Jay Monkman <jtm@smoothsmoothie.com> + + * network/cs8900.c: I don't know why we have to SelfST register + twice on the EDB7312, but it doesn't work on the EDB7312 if we don't. + 2002-10-31 Joel Sherrill <joel@OARcorp.com> * network/dec21140.c: Removed warnings. diff --git a/c/src/libchip/network/cs8900.c b/c/src/libchip/network/cs8900.c index 4a00853b1c..9bfd815aa3 100644 --- a/c/src/libchip/network/cs8900.c +++ b/c/src/libchip/network/cs8900.c @@ -261,6 +261,10 @@ cs8900_hardware_init (cs8900_device *cs) rtems_task_wake_after (TOD_MILLISECONDS_TO_TICKS (20)); status = io_pp_get_reg_16 (dev, CS8900_PP_SelfST); + if (status == 0) { + printf("Reading status register again\n"); + status = io_pp_get_reg_16 (dev, CS8900_PP_SelfST); + } if (((status & CS8900_SELF_STATUS_INITD) == 0) || ((status & CS8900_SELF_STATUS_INITD) && |