From aae96a29805bf517d29bfed78dfe18dc1f880c20 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 13 Nov 2002 15:34:39 +0000 Subject: 2002-11-13 Jay Monkman * 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. --- c/src/libchip/ChangeLog | 5 +++++ c/src/libchip/network/cs8900.c | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'c') 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 + + * 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 * 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) && -- cgit v1.2.3