coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
raminit_tables.c File Reference
#include <stdint.h>
#include "raminit.h"
Include dependency graph for raminit_tables.c:

Go to the source code of this file.

Variables

const struct dll_setting default_ddr2_667_ctrl [7]
 
const struct dll_setting default_ddr2_667_dqs [TOTAL_BYTELANES]
 
const struct dll_setting default_ddr2_667_dq [TOTAL_BYTELANES]
 
const struct dll_setting default_ddr2_800_ctrl [7]
 
const struct dll_setting default_ddr2_800_dqs [TOTAL_BYTELANES]
 
const struct dll_setting default_ddr2_800_dq [TOTAL_BYTELANES]
 
const struct dll_setting default_ddr3_800_ctrl [2][7]
 
const struct dll_setting default_ddr3_800_dqs [2][TOTAL_BYTELANES]
 
const struct dll_setting default_ddr3_800_dq [2][TOTAL_BYTELANES]
 
const struct dll_setting default_ddr3_1067_ctrl [2][7]
 
const struct dll_setting default_ddr3_1067_dqs [2][TOTAL_BYTELANES]
 
const struct dll_setting default_ddr3_1067_dq [2][TOTAL_BYTELANES]
 
const struct dll_setting default_ddr3_1333_ctrl [2][7]
 
const struct dll_setting default_ddr3_1333_dqs [2][TOTAL_BYTELANES]
 
const struct dll_setting default_ddr3_1333_dq [2][TOTAL_BYTELANES]
 
const u8 ddr3_emrs1_rtt_nom_config [16][4]
 
const u8 post_jedec_tab [3][4][2]
 
const u32 ddr3_c2_tab [2][3][6][2]
 
const u8 ddr3_c2_x264 [3][6]
 
const u16 ddr3_c2_x23c [3][6]
 

Variable Documentation

◆ ddr3_c2_tab

const u32 ddr3_c2_tab[2][3][6][2]

Definition at line 311 of file raminit_tables.c.

Referenced by power_settings().

◆ ddr3_c2_x23c

const u16 ddr3_c2_x23c[3][6]
Initial value:
={
{
0x9bbb,
0x8bbb,
},
{
0x0000,
0x9baa,
0x8caa,
0x7daa,
},
{
0x0000,
0x0000,
0x0000,
0xaecb,
0x9fcb,
0x8fcb,
},
}

Definition at line 376 of file raminit_tables.c.

Referenced by power_settings().

◆ ddr3_c2_x264

const u8 ddr3_c2_x264[3][6]
Initial value:
= {
{
0x78,
0x89,
},
{
0x00,
0xff,
0x8a,
0x9a,
},
{
0x00,
0x00,
0xff,
0xff,
0xff,
0xff,
},
}

Definition at line 355 of file raminit_tables.c.

Referenced by power_settings().

◆ ddr3_emrs1_rtt_nom_config

const u8 ddr3_emrs1_rtt_nom_config[16][4]
Initial value:
= {
{0x00, 0x00, 0x00, 0x00},
{0x11, 0x00, 0x00, 0x00},
{0x11, 0x11, 0x00, 0x00},
{0x11, 0x00, 0x00, 0x00},
{0x00, 0x00, 0x11, 0x00},
{0x81, 0x00, 0x81, 0x00},
{0x81, 0x81, 0x81, 0x00},
{0x81, 0x00, 0x81, 0x00},
{0x00, 0x00, 0x11, 0x11},
{0x81, 0x00, 0x81, 0x81},
{0x81, 0x81, 0x81, 0x81},
{0x81, 0x00, 0x81, 0x81},
{0x00, 0x00, 0x11, 0x00},
{0x81, 0x00, 0x81, 0x00},
{0x81, 0x81, 0x81, 0x00},
{0x81, 0x00, 0x81, 0x00},
}

Definition at line 274 of file raminit_tables.c.

Referenced by jedec_ddr3(), and set_rank_write_level().

◆ default_ddr2_667_ctrl

const struct dll_setting default_ddr2_667_ctrl[7]
Initial value:
= {
{13, 0, 1, 0, 0, 0},
{4, 1, 0, 0, 0, 0},
{13, 0, 1, 0, 0, 0},
{4, 5, 0, 0, 0, 0},
{4, 1, 0, 0, 0, 0},
{4, 1, 0, 0, 0, 0},
{4, 1, 0, 0, 0, 0},
}

Definition at line 1 of file raminit_tables.c.

Referenced by program_dll().

◆ default_ddr2_667_dq

const struct dll_setting default_ddr2_667_dq[TOTAL_BYTELANES]
Initial value:
= {
{9, 0, 0, 0, 1, 0},
{9, 1, 0, 0, 1, 0},
{9, 2, 0, 0, 1, 0},
{9, 2, 0, 0, 1, 0},
{9, 1, 0, 0, 1, 0},
{6, 4, 0, 0, 1, 0},
{6, 2, 0, 0, 1, 0},
{5, 4, 0, 0, 1, 0},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr2_667_dqs

const struct dll_setting default_ddr2_667_dqs[TOTAL_BYTELANES]
Initial value:
= {
{1, 5, 1, 1, 1, 0},
{1, 6, 1, 1, 1, 0},
{2, 0, 1, 1, 1, 0},
{2, 1, 1, 1, 1, 0},
{2, 1, 1, 1, 1, 0},
{14, 6, 1, 0, 0, 0},
{14, 3, 1, 0, 0, 0},
{14, 0, 1, 0, 0, 0},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr2_800_ctrl

const struct dll_setting default_ddr2_800_ctrl[7]
Initial value:
= {
{11, 5, 1, 0, 0, 0},
{0, 5, 1, 1, 0, 0},
{11, 5, 1, 0, 0, 0},
{1, 4, 1, 1, 0, 0},
{0, 5, 1, 1, 0, 0},
{0, 5, 1, 1, 0, 0},
{0, 5, 1, 1, 0, 0},
}

Definition at line 1 of file raminit_tables.c.

Referenced by program_dll().

◆ default_ddr2_800_dq

const struct dll_setting default_ddr2_800_dq[TOTAL_BYTELANES]
Initial value:
= {
{9, 3, 0, 0, 1, 0},
{9, 4, 0, 0, 1, 0},
{9, 5, 0, 0, 1, 0},
{9, 6, 0, 0, 1, 0},
{10, 0, 0, 0, 1, 0},
{8, 1, 0, 0, 1, 0},
{7, 5, 0, 0, 1, 0},
{6, 2, 0, 0, 1, 0},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr2_800_dqs

const struct dll_setting default_ddr2_800_dqs[TOTAL_BYTELANES]
Initial value:
= {
{2, 5, 1, 1, 1, 0},
{2, 6, 1, 1, 1, 0},
{3, 0, 1, 1, 1, 0},
{3, 0, 1, 1, 1, 0},
{3, 3, 1, 1, 1, 0},
{2, 0, 1, 1, 1, 0},
{1, 3, 1, 1, 1, 0},
{0, 3, 1, 1, 1, 0},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr3_1067_ctrl

const struct dll_setting default_ddr3_1067_ctrl[2][7]
Initial value:
= {
{
{8, 5, 0, 0, 0, 0},
{7, 6, 0, 0, 0, 0},
{10, 2, 1, 0, 0, 0},
{4, 4, 0, 0, 0, 0},
{7, 6, 0, 0, 0, 0},
{9, 2, 1, 0, 0, 0},
{9, 2, 1, 0, 0, 0},
},
{
{1, 5, 1, 1, 0, 0},
{0, 6, 1, 1, 0, 0},
{3, 2, 0, 0, 0, 0},
{2, 6, 1, 1, 0, 0},
{0, 6, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by program_dll().

◆ default_ddr3_1067_dq

const struct dll_setting default_ddr3_1067_dq[2][TOTAL_BYTELANES]
Initial value:
= {
{
{6, 5, 0, 0, 1, 0},
{9, 3, 1, 0, 1, 0},
{0, 2, 1, 1, 0, 1},
{1, 0, 1, 1, 0, 1},
{2, 0, 1, 1, 0, 1},
{2, 5, 1, 1, 0, 1},
{3, 2, 0, 0, 0, 1},
{4, 1, 0, 0, 0, 1},
},
{
{10, 5, 1, 0, 0, 0},
{2, 3, 1, 1, 1, 0},
{4, 1, 0, 0, 1, 0},
{5, 0, 0, 0, 1, 0},
{6, 0, 0, 0, 1, 0},
{6, 5, 0, 0, 1, 0},
{7, 2, 0, 0, 1, 0},
{8, 1, 0, 0, 1, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr3_1067_dqs

const struct dll_setting default_ddr3_1067_dqs[2][TOTAL_BYTELANES]
Initial value:
= {
{
{2, 5, 1, 1, 1, 0},
{5, 1, 0, 0, 1, 0},
{6, 6, 0, 0, 1, 0},
{8, 0, 0, 0, 1, 0},
{8, 6, 0, 0, 1, 0},
{9, 6, 1, 0, 1, 0},
{10, 6, 1, 0, 1, 0},
{0, 1, 1, 1, 0, 1},
},
{
{6, 4, 0, 0, 0, 0},
{9, 1, 1, 0, 0, 0},
{10, 6, 1, 0, 0, 0},
{1, 0, 1, 1, 1, 0},
{1, 6, 1, 1, 1, 0},
{2, 5, 1, 1, 1, 0},
{3, 5, 0, 0, 1, 0},
{4, 1, 0, 0, 1, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr3_1333_ctrl

const struct dll_setting default_ddr3_1333_ctrl[2][7]
Initial value:
= {
{
{8, 5, 0, 0, 0, 0},
{9, 0, 1, 0, 0, 0},
{10, 2, 1, 0, 0, 0},
{0, 0, 1, 1, 0, 0},
{9, 0, 1, 0, 0, 0},
{10, 4, 1, 0, 0, 0},
{10, 4, 1, 0, 0, 0},
},
{
{1, 6, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0},
{4, 2, 0, 0, 0, 0},
{3, 1, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0},
{4, 5, 0, 0, 0, 0},
{4, 5, 0, 0, 0, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by program_dll().

◆ default_ddr3_1333_dq

const struct dll_setting default_ddr3_1333_dq[2][TOTAL_BYTELANES]
Initial value:
= {
{
{6, 5, 0, 0, 1, 0},
{9, 3, 1, 0, 1, 0},
{0, 2, 1, 1, 0, 1},
{1, 0, 1, 1, 0, 1},
{2, 0, 1, 1, 0, 1},
{2, 5, 1, 1, 0, 1},
{3, 2, 0, 0, 0, 1},
{4, 1, 0, 0, 0, 1},
},
{
{1, 3, 1, 1, 1, 0},
{5, 6, 0, 0, 1, 0},
{8, 5, 0, 0, 1, 0},
{10, 2, 0, 0, 1, 0},
{11, 1, 0, 0, 1, 0},
{12, 3, 1, 0, 1, 0},
{13, 6, 1, 0, 1, 0},
{0, 3, 1, 1, 0, 1},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr3_1333_dqs

const struct dll_setting default_ddr3_1333_dqs[2][TOTAL_BYTELANES]
Initial value:
= {
{
{2, 4, 1, 1, 1, 0},
{5, 1, 0, 0, 1, 0},
{6, 6, 0, 0, 1, 0},
{8, 0, 0, 0, 1, 0},
{8, 6, 0, 0, 1, 0},
{9, 5, 1, 0, 1, 0},
{10, 6, 1, 0, 1, 0},
{0, 1, 1, 1, 0, 1},
},
{
{10, 4, 0, 0, 0, 0},
{0, 3, 1, 1, 1, 0},
{3, 2, 1, 1, 1, 0},
{5, 0, 0, 0, 1, 0},
{6, 1, 0, 0, 1, 0},
{7, 4, 0, 0, 1, 0},
{9, 2, 0, 0, 1, 0},
{9, 6, 0, 0, 1, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr3_800_ctrl

const struct dll_setting default_ddr3_800_ctrl[2][7]
Initial value:
= {
{
{8, 2, 0, 0, 0, 0},
{8, 4, 0, 0, 0, 0},
{9, 5, 0, 0, 0, 0},
{6, 1, 0, 0, 0, 0},
{8, 4, 0, 0, 0, 0},
{10, 0, 0, 0, 0, 0},
{10, 0, 0, 0, 0, 0},
},
{
{2, 2, 1, 1, 0, 0},
{2, 4, 1, 1, 0, 0},
{3, 5, 0, 0, 0, 0},
{3, 2, 1, 1, 0, 0},
{2, 4, 1, 1, 0, 0},
{3, 6, 0, 0, 0, 0},
{3, 6, 0, 0, 0, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by program_dll().

◆ default_ddr3_800_dq

const struct dll_setting default_ddr3_800_dq[2][TOTAL_BYTELANES]
Initial value:
= {
{
{4, 1, 0, 0, 1, 0},
{6, 4, 0, 0, 1, 0},
{8, 1, 0, 0, 1, 0},
{8, 6, 0, 0, 1, 0},
{9, 5, 0, 0, 1, 0},
{10, 2, 0, 0, 1, 0},
{10, 6, 1, 0, 1, 0},
{11, 4, 1, 0, 1, 0},
},
{
{11, 0, 1, 0, 0, 0},
{0, 3, 1, 1, 1, 0},
{2, 1, 1, 1, 1, 0},
{2, 5, 1, 1, 1, 0},
{3, 5, 0, 0, 1, 0},
{4, 2, 0, 0, 1, 0},
{4, 6, 0, 0, 1, 0},
{5, 4, 0, 0, 1, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ default_ddr3_800_dqs

const struct dll_setting default_ddr3_800_dqs[2][TOTAL_BYTELANES]
Initial value:
= {
{
{12, 0, 1, 0, 0, 0},
{1, 1, 1, 1, 1, 0},
{2, 4, 1, 1, 1, 0},
{3, 5, 0, 0, 1, 0},
{4, 3, 0, 0, 1, 0},
{5, 2, 0, 0, 1, 0},
{6, 1, 0, 0, 1, 0},
{6, 4, 0, 0, 1, 0},
},
{
{5, 6, 0, 0, 0, 0},
{8, 0, 0, 0, 0, 0},
{9, 4, 0, 0, 0, 0},
{10, 4, 1, 0, 0, 0},
{11, 3, 1, 0, 0, 0},
{12, 1, 1, 0, 0, 0},
{0, 1, 1, 1, 1, 0},
{0, 3, 1, 1, 1, 0},
},
}

Definition at line 1 of file raminit_tables.c.

Referenced by select_default_dq_dqs_settings().

◆ post_jedec_tab

const u8 post_jedec_tab[3][4][2]
Initial value:
= {
{
{0x3, 0x5},
{0x3, 0x4},
},
{
{0x4, 0x8},
{0x4, 0x6},
{0x3, 0x5},
},
{
{0x5, 0x9},
{0x4, 0x7},
{0x4, 0x7},
{0x4, 0x7},
},
}

Definition at line 293 of file raminit_tables.c.

Referenced by do_raminit().