| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/variants.h> |
| 4 |
#include <gpio.h> |
| 5 |
#include <soc/meminit.h> |
| 6 |
#include <soc/romstage.h> |
| 7 |
|
| 8 |
static const struct mb_cfg ehlcrb_lpddr4x_memcfg_cfg = { |
| 9 |
.dq_map[DDR_CH0] = { |
| 10 |
{0xf, 0xf0}, |
| 11 |
{0xf, 0xf0}, |
| 12 |
{0xff, 0x0}, |
| 13 |
{0x0, 0x0}, |
| 14 |
{0x0, 0x0}, |
| 15 |
{0x0, 0x0} |
| 16 |
}, |
| 17 |
|
| 18 |
.dq_map[DDR_CH1] = { |
| 19 |
{0xf, 0xf0}, |
| 20 |
{0xf, 0xf0}, |
| 21 |
{0xff, 0x0}, |
| 22 |
{0x0, 0x0}, |
| 23 |
{0x0, 0x0}, |
| 24 |
{0x0, 0x0} |
| 25 |
}, |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
.dqs_map[DDR_CH0] = {3, 0, 1, 2, 7, 4, 5, 6}, |
| 35 |
.dqs_map[DDR_CH1] = {3, 0, 1, 2, 7, 4, 5, 6}, |
| 36 |
|
| 37 |
|
| 38 |
.rcomp_resistor = {100, 100, 100}, |
| 39 |
|
| 40 |
.rcomp_targets = {60, 40, 30, 20, 30}, |
| 41 |
|
| 42 |
|
| 43 |
.dq_pins_interleaved = 0, |
| 44 |
|
| 45 |
|
| 46 |
.vref_ca_config = 2, |
| 47 |
|
| 48 |
|
| 49 |
.ect = 1, |
| 50 |
|
| 51 |
|
| 52 |
.UserBd = BOARD_TYPE_MOBILE, |
| 53 |
}; |
| 54 |
|
| 55 |
const struct mb_cfg *variant_memcfg_config(void) |
| 56 |
{ |
| 57 |
return &ehlcrb_lpddr4x_memcfg_cfg; |
| 58 |
} |