Hardware/LPC/LPCGroup.cs
changeset 103 0845adc5402e
parent 93 99fbbbf50357
child 108 4f569432e14b
     1.1 --- a/Hardware/LPC/LPCGroup.cs	Tue Apr 27 07:31:46 2010 +0000
     1.2 +++ b/Hardware/LPC/LPCGroup.cs	Tue Apr 27 18:43:56 2010 +0000
     1.3 @@ -156,7 +156,7 @@
     1.4            case 0x07:
     1.5              switch (revision) {
     1.6                case 0x23:
     1.7 -                chip = Chip.F71889;
     1.8 +                chip = Chip.F71889F;
     1.9                  logicalDeviceNumber = FINTEK_HARDWARE_MONITOR_LDN;
    1.10                  break;              
    1.11              } break;
    1.12 @@ -167,6 +167,13 @@
    1.13                  logicalDeviceNumber = FINTEK_HARDWARE_MONITOR_LDN;
    1.14                  break;              
    1.15              } break;
    1.16 +          case 0x09:
    1.17 +            switch (revision) {
    1.18 +              case 0x09:
    1.19 +                chip = Chip.F71889ED;
    1.20 +                logicalDeviceNumber = FINTEK_HARDWARE_MONITOR_LDN;
    1.21 +                break;              
    1.22 +            } break;
    1.23            case 0x52:
    1.24              switch (revision) {
    1.25                case 0x17:
    1.26 @@ -241,10 +248,7 @@
    1.27            Thread.Sleep(1);
    1.28            ushort verify = ReadWord(BASE_ADDRESS_REGISTER);
    1.29  
    1.30 -          ushort vendorID = FINTEK_VENDOR_ID;
    1.31 -          if (chip == Chip.F71858 || chip == Chip.F71862 || 
    1.32 -            chip == Chip.F71882 || chip == Chip.F71889)
    1.33 -            vendorID = ReadWord(FINTEK_VENDOR_ID_REGISTER);
    1.34 +          ushort vendorID = ReadWord(FINTEK_VENDOR_ID_REGISTER);
    1.35  
    1.36            WinbondFintekExit();
    1.37  
    1.38 @@ -288,9 +292,20 @@
    1.39                break;
    1.40              case Chip.F71858:
    1.41              case Chip.F71862:
    1.42 +            case Chip.F71869:
    1.43              case Chip.F71882:
    1.44 -            case Chip.F71889: 
    1.45 -            case Chip.F71869:
    1.46 +            case Chip.F71889ED:
    1.47 +            case Chip.F71889F:
    1.48 +              if (vendorID != FINTEK_VENDOR_ID) {
    1.49 +                report.Append("Chip ID: 0x");
    1.50 +                report.AppendLine(chip.ToString("X"));
    1.51 +                report.Append("Chip revision: 0x");
    1.52 +                report.AppendLine(revision.ToString("X"));
    1.53 +                report.Append("Error: Invalid vendor ID 0x");
    1.54 +                report.AppendLine(vendorID.ToString("X"));
    1.55 +                report.AppendLine();
    1.56 +                return;
    1.57 +              }
    1.58                hardware.Add(new F718XX(chip, address));
    1.59                break;
    1.60              default: break;