Changed RAM speed calculation to fix RAM modules getting rejected only
[coreboot.git] / src / northbridge / amd / amdk8 / amdk8.h
index 56b92a2349aab6dd1aadb760333b4cdaf045d286..7e2f0b0fc3eec0dbaaa4a1fa02535f1306f36e19 100644 (file)
 #define         DCL_D_DRV         (1<<1)
 #define         DCL_QFC_EN        (1<<2)
 #define         DCL_DisDqsHys     (1<<3)
+#define         DCL_Burst2Opt     (1<<5)
 #define         DCL_DramInit      (1<<8)
+#define         DCL_DualDIMMen    (1<<9)
 #define         DCL_DramEnable    (1<<10)
 #define         DCL_MemClrStatus  (1<<11)
 #define         DCL_ESR           (1<<12)
 #define         DCL_DisInRcvrs    (1<<24)
 #define         DCL_BypMax_SHIFT  25
 #define         DCL_En2T          (1<<28)
-
+#define         DCL_UpperCSMap    (1<<29)
+       
 #define DRAM_CONFIG_HIGH   0x94
 #define         DCH_ASYNC_LAT_SHIFT  0
 #define         DCH_ASYNC_LAT_MASK   0xf
 #define NonCoherent       (1 << 2)
 #define ConnectionPending (1 << 4)
 
+#include "raminit.h"
+//struct definitions
+
+#if RAMINIT_SYSINFO==1
+struct link_pair_st {
+        device_t udev;
+        uint32_t upos;
+        uint32_t uoffs;
+        device_t dev;
+        uint32_t pos;
+        uint32_t offs;
+
+} __attribute__((packed));
+
+struct sys_info {
+        uint8_t ctrl_present[NODE_NUMS];
+        struct mem_controller ctrl[NODE_NUMS];
+
+        uint32_t nodes;
+        struct link_pair_st link_pair[16];// enough? only in_conherent
+        uint32_t link_pair_num;
+        uint32_t ht_c_num;
+        uint32_t sbdn;
+        uint32_t sblk;
+        uint32_t sbbusn;
+} __attribute__((packed));
+#endif
+
+
 #endif
 
 #endif /* AMDK8_H */