Author: stepan
Date: Sat Dec 11 23:12:32 2010
New Revision: 6163
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6163

Log:
catch some illegal configurations (trivial)
Signed-off-by: Stefan Reinauer <[email protected]>
Acked-by: Stefan Reinauer <[email protected]>

Modified:
   trunk/src/northbridge/intel/i945/raminit.c

Modified: trunk/src/northbridge/intel/i945/raminit.c
==============================================================================
--- trunk/src/northbridge/intel/i945/raminit.c  Sat Dec 11 23:07:07 2010        
(r6162)
+++ trunk/src/northbridge/intel/i945/raminit.c  Sat Dec 11 23:12:32 2010        
(r6163)
@@ -541,6 +541,8 @@
                                        highest_supported_cas = 4;
                                } else if (current_cas_mask & 
SPD_CAS_LATENCY_DDR2_3) {
                                        highest_supported_cas = 3;
+                               } else {
+                                       die("Invalid max. CAS.\n");
                                }
                                if (current_cas_mask & SPD_CAS_LATENCY_DDR2_3) {
                                        current_cas = 3;
@@ -548,6 +550,8 @@
                                        current_cas = 4;
                                } else if (current_cas_mask & 
SPD_CAS_LATENCY_DDR2_5) {
                                        current_cas = 5;
+                               } else {
+                                       die("Invalid CAS.\n");
                                }
 
                                idx = highest_supported_cas - current_cas;

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to