We're much closer.
Added a stepping enum to k8.h. This will allow us to do things like this: if (cpu_stepping(node) < E0) and so on instead of is_cpu_pre_e0_in_bsp or whatever it is. Added and fixed Kconfig variables. Broke out northbridge by function, so we can see what goes with what. This tree still builds a working DBE62 coreboot that boots a kernel; no harm done to existing ports. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@781 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
9342d1be4e
commit
7102949d76
7 changed files with 95 additions and 1369 deletions
|
|
@ -304,6 +304,16 @@
|
|||
#define ConnectionPending (1 << 4)
|
||||
|
||||
#ifndef ASSEMBLY
|
||||
|
||||
/* Steppings of the K8 cpu */
|
||||
enum steppings {
|
||||
A0,
|
||||
A1,
|
||||
A2,
|
||||
B0,
|
||||
C0,
|
||||
CG,
|
||||
};
|
||||
/* cpu version -- no support for f0 yet */
|
||||
static inline int is_cpu_rev_a0(void)
|
||||
{
|
||||
|
|
@ -391,22 +401,22 @@ struct mem_controller {
|
|||
};
|
||||
|
||||
struct link_pair_st {
|
||||
u32 udev;
|
||||
u32 upos;
|
||||
u32 uoffs;
|
||||
u32 dev;
|
||||
u32 pos;
|
||||
u32 offs;
|
||||
u32 udev;
|
||||
u32 upos;
|
||||
u32 uoffs;
|
||||
u32 dev;
|
||||
u32 pos;
|
||||
u32 offs;
|
||||
|
||||
} __attribute__((packed));
|
||||
|
||||
struct sys_info {
|
||||
u8 ctrl_present[NODE_NUMS];
|
||||
struct mem_info meminfo[NODE_NUMS];
|
||||
u8 ctrl_present[NODE_NUMS];
|
||||
struct mem_info meminfo[NODE_NUMS];
|
||||
struct mem_controller ctrl[NODE_NUMS];
|
||||
u8 mem_trained[NODE_NUMS]; //0: no dimm, 1: trained, 0x80: not started, 0x81: recv1 fail, 0x82: Pos Fail, 0x83:recv2 fail
|
||||
u32 tom_k;
|
||||
u32 tom2_k;
|
||||
u32 tom_k;
|
||||
u32 tom2_k;
|
||||
|
||||
u32 mem_base[NODE_NUMS];
|
||||
u32 cs_base[NODE_NUMS*8]; //8 cs_idx
|
||||
|
|
@ -415,9 +425,9 @@ struct sys_info {
|
|||
u8 dqs_delay_a[NODE_NUMS*2*2*9]; //8 node channel 2, direction 2 , bytelane *9
|
||||
u8 dqs_rcvr_dly_a[NODE_NUMS*2*8]; //8 node, channel 2, receiver 8
|
||||
u32 nodes;
|
||||
struct link_pair_st link_pair[16];// enough? only in_conherent
|
||||
u32 link_pair_num;
|
||||
u32 ht_c_num;
|
||||
struct link_pair_st link_pair[16];// enough? only in_conherent
|
||||
u32 link_pair_num;
|
||||
u32 ht_c_num;
|
||||
u32 sbdn;
|
||||
u32 sblk;
|
||||
u32 sbbusn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue