coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c File Reference
#include <soc/romstage.h>
#include <string.h>
#include <fsp/api.h>
#include <fsp/soc_binding.h>
Include dependency graph for romstage.c:

Go to the source code of this file.

Functions

static void rvp1_fill_memory_params (FSPM_UPD *mupd)
 
static void rvp2_fill_memory_params (FSPM_UPD *mupd)
 
void mainboard_memory_init_params (FSPM_UPD *mupd)
 

Variables

static const uint8_t swizzling_rvp1 []
 
static const uint8_t swizzling0_rvp2 []
 
static const uint8_t swizzling1_rvp2 []
 
static const uint8_t swizzling2_rvp2 []
 
static const uint8_t swizzling3_rvp2 []
 

Function Documentation

◆ mainboard_memory_init_params()

void mainboard_memory_init_params ( FSPM_UPD *  mupd)

Definition at line 91 of file romstage.c.

References CONFIG, rvp1_fill_memory_params(), and rvp2_fill_memory_params().

Here is the call graph for this function:

◆ rvp1_fill_memory_params()

static void rvp1_fill_memory_params ( FSPM_UPD *  mupd)
static

Definition at line 33 of file romstage.c.

References memcpy(), and swizzling_rvp1.

Referenced by mainboard_memory_init_params().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rvp2_fill_memory_params()

static void rvp2_fill_memory_params ( FSPM_UPD *  mupd)
static

Definition at line 60 of file romstage.c.

References memcpy(), swizzling0_rvp2, swizzling1_rvp2, swizzling2_rvp2, and swizzling3_rvp2.

Referenced by mainboard_memory_init_params().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ swizzling0_rvp2

const uint8_t swizzling0_rvp2[]
static
Initial value:
= {
23, 21, 16, 17, 18, 19, 22, 20, 3, 5, 2, 4, 7, 0, 6, 1,
24, 27, 26, 30, 28, 25, 29, 31, 13, 8, 12, 15, 10, 14, 11, 9,
}

Definition at line 13 of file romstage.c.

Referenced by rvp2_fill_memory_params().

◆ swizzling1_rvp2

const uint8_t swizzling1_rvp2[]
static
Initial value:
= {
10, 14, 12, 13, 9, 11, 15, 8, 1, 6, 2, 5, 0, 7, 3, 4,
21, 18, 19, 22, 20, 17, 16, 23, 29, 28, 24, 27, 31, 30, 26, 25,
}

Definition at line 18 of file romstage.c.

Referenced by rvp2_fill_memory_params().

◆ swizzling2_rvp2

const uint8_t swizzling2_rvp2[]
static
Initial value:
= {
13, 15, 10, 14, 9, 12, 8, 11, 22, 19, 16, 23, 21, 17, 20, 18,
26, 24, 28, 29, 31, 30, 27, 25, 4, 5, 1, 0, 3, 6, 7, 2,
}

Definition at line 23 of file romstage.c.

Referenced by rvp2_fill_memory_params().

◆ swizzling3_rvp2

const uint8_t swizzling3_rvp2[]
static
Initial value:
= {
0, 3, 6, 7, 4, 5, 1, 2, 20, 17, 21, 16, 23, 18, 22, 19,
15, 9, 11, 14, 12, 8, 13, 10, 26, 29, 24, 31, 25, 30, 27, 28,
}

Definition at line 28 of file romstage.c.

Referenced by rvp2_fill_memory_params().

◆ swizzling_rvp1

const uint8_t swizzling_rvp1[]
static
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
}

Definition at line 8 of file romstage.c.

Referenced by rvp1_fill_memory_params().