![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <baseboard/variants.h>
#include <console/console.h>
#include <gpio.h>
#include <variant/gpio.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | MEM_ID(x) (1 << ((x) - 1)) |
Functions | |
static void | fill_lpddr3_memory_params (struct memory_params *p) |
static void | fill_ddr4_memory_params (struct memory_params *p) |
void | variant_memory_params (struct memory_params *p) |
Variables | |
static const u16 | rcomp_resistor_ddp [] = { 121, 81, 100 } |
static const u16 | rcomp_resistor_sdp [] = { 200, 81, 100 } |
static const u16 | rcomp_resistor_lpddr3 [] = { 200, 81, 162 } |
static const u16 | rcomp_target [] = { 100, 40, 20, 20, 26 } |
static const u16 | rcomp_target_lpddr3 [] = { 100, 40, 40, 23, 40 } |
static const u8 | dq_map_lpddr3 [][12] |
static const u8 | dqs_map_lpddr3 [][8] |
static const uint16_t | ddp_bitmap = MEM_ID(4) |
|
static |
Definition at line 52 of file memory.c.
References ddp_bitmap, die(), MEM_ID, MEMORY_DDR4, memory_params::rcomp_resistor, rcomp_resistor_ddp, rcomp_resistor_sdp, memory_params::rcomp_resistor_size, memory_params::rcomp_target, rcomp_target, memory_params::rcomp_target_size, spd_index, memory_params::type, memory_params::use_sec_spd, and variant_memory_sku().
Referenced by variant_memory_params().
|
static |
Definition at line 38 of file memory.c.
References memory_params::dq_map, dq_map_lpddr3, memory_params::dq_map_size, memory_params::dqs_map, dqs_map_lpddr3, memory_params::dqs_map_size, MEMORY_LPDDR3, memory_params::rcomp_resistor, rcomp_resistor_lpddr3, memory_params::rcomp_resistor_size, memory_params::rcomp_target, rcomp_target_lpddr3, memory_params::rcomp_target_size, memory_params::type, and memory_params::use_sec_spd.
Referenced by variant_memory_params().
void variant_memory_params | ( | struct memory_params * | p | ) |
Definition at line 74 of file memory.c.
References fill_ddr4_memory_params(), fill_lpddr3_memory_params(), gpio_get(), gpio_input_pulldown(), GPIO_MEM_CONFIG_4, GPP_D10, memset(), and memory_params::single_channel.
Definition at line 36 of file memory.c.
Referenced by fill_ddr4_memory_params().
|
static |
Definition at line 19 of file memory.c.
Referenced by fill_lpddr3_memory_params().
|
static |
Definition at line 27 of file memory.c.
Referenced by fill_lpddr3_memory_params().
|
static |
Definition at line 10 of file memory.c.
Referenced by fill_ddr4_memory_params().
|
static |
Definition at line 12 of file memory.c.
Referenced by fill_lpddr3_memory_params().
|
static |
Definition at line 11 of file memory.c.
Referenced by fill_ddr4_memory_params().
|
static |
Definition at line 15 of file memory.c.
Referenced by fill_ddr4_memory_params().
|
static |
Definition at line 16 of file memory.c.
Referenced by fill_lpddr3_memory_params().